From 7775fb0a028f1aaedc0db8be949810f54b60d613 Mon Sep 17 00:00:00 2001
From: SGS Sandhu
Date: Sat, 20 May 2023 13:39:35 +0530
Subject: [PATCH] Update 2.1.0.0
---
CHANGELOG.md | 9 +-
admin/class-template-edit.php | 6 +-
aione-app-builder.php | 4 +-
includes/class-aione-app-builder.php | 4 -
public/twilio-php/Dockerfile | 12 -
public/twilio-php/Services/Twilio.php | 74 -
public/twilio-php/Twilio/Deserialize.php | 22 -
public/twilio-php/Twilio/Domain.php | 83 -
.../Exceptions/ConfigurationException.php | 9 -
.../Exceptions/DeserializeException.php | 9 -
.../Exceptions/EnvironmentException.php | 9 -
.../Twilio/Exceptions/HttpException.php | 9 -
.../Twilio/Exceptions/RestException.php | 32 -
.../Twilio/Exceptions/TwilioException.php | 9 -
.../Twilio/Exceptions/TwimlException.php | 9 -
public/twilio-php/Twilio/Http/Client.php | 11 -
public/twilio-php/Twilio/Http/CurlClient.php | 186 -
public/twilio-php/Twilio/Http/Response.php | 43 -
public/twilio-php/Twilio/InstanceContext.php | 19 -
public/twilio-php/Twilio/InstanceResource.php | 24 -
public/twilio-php/Twilio/Jwt/AccessToken.php | 142 -
.../twilio-php/Twilio/Jwt/Client/ScopeURI.php | 67 -
public/twilio-php/Twilio/Jwt/ClientToken.php | 128 -
.../Twilio/Jwt/Grants/ChatGrant.php | 128 -
.../Twilio/Jwt/Grants/ConversationsGrant.php | 55 -
public/twilio-php/Twilio/Jwt/Grants/Grant.php | 21 -
.../Twilio/Jwt/Grants/IpMessagingGrant.php | 132 -
.../Twilio/Jwt/Grants/SyncGrant.php | 138 -
.../Twilio/Jwt/Grants/TaskRouterGrant.php | 110 -
.../Twilio/Jwt/Grants/VideoGrant.php | 80 -
.../Twilio/Jwt/Grants/VoiceGrant.php | 178 -
public/twilio-php/Twilio/Jwt/JWT.php | 156 -
.../Twilio/Jwt/TaskRouter/CapabilityToken.php | 160 -
.../Twilio/Jwt/TaskRouter/Policy.php | 54 -
.../Jwt/TaskRouter/TaskQueueCapability.php | 20 -
.../Jwt/TaskRouter/WorkerCapability.php | 48 -
.../Jwt/TaskRouter/WorkspaceCapability.php | 15 -
public/twilio-php/Twilio/ListResource.php | 19 -
public/twilio-php/Twilio/Options.php | 13 -
public/twilio-php/Twilio/Page.php | 192 -
public/twilio-php/Twilio/Rest/Accounts.php | 94 -
public/twilio-php/Twilio/Rest/Accounts/V1.php | 85 -
.../Accounts/V1/Credential/AwsContext.php | 96 -
.../Accounts/V1/Credential/AwsInstance.php | 130 -
.../Rest/Accounts/V1/Credential/AwsList.php | 164 -
.../Accounts/V1/Credential/AwsOptions.php | 115 -
.../Rest/Accounts/V1/Credential/AwsPage.php | 34 -
.../V1/Credential/PublicKeyContext.php | 96 -
.../V1/Credential/PublicKeyInstance.php | 131 -
.../Accounts/V1/Credential/PublicKeyList.php | 164 -
.../V1/Credential/PublicKeyOptions.php | 118 -
.../Accounts/V1/Credential/PublicKeyPage.php | 34 -
.../Rest/Accounts/V1/CredentialInstance.php | 59 -
.../Rest/Accounts/V1/CredentialList.php | 104 -
.../Rest/Accounts/V1/CredentialPage.php | 34 -
public/twilio-php/Twilio/Rest/Api.php | 457 ---
public/twilio-php/Twilio/Rest/Api/V2010.php | 347 --
.../Address/DependentPhoneNumberInstance.php | 121 -
.../Address/DependentPhoneNumberList.php | 131 -
.../Address/DependentPhoneNumberPage.php | 39 -
.../Rest/Api/V2010/Account/AddressContext.php | 174 -
.../Api/V2010/Account/AddressInstance.php | 163 -
.../Rest/Api/V2010/Account/AddressList.php | 190 -
.../Rest/Api/V2010/Account/AddressOptions.php | 334 --
.../Rest/Api/V2010/Account/AddressPage.php | 34 -
.../Api/V2010/Account/ApplicationContext.php | 124 -
.../Api/V2010/Account/ApplicationInstance.php | 163 -
.../Api/V2010/Account/ApplicationList.php | 183 -
.../Api/V2010/Account/ApplicationOptions.php | 540 ---
.../Api/V2010/Account/ApplicationPage.php | 34 -
.../Account/AuthorizedConnectAppContext.php | 69 -
.../Account/AuthorizedConnectAppInstance.php | 125 -
.../Account/AuthorizedConnectAppList.php | 143 -
.../Account/AuthorizedConnectAppPage.php | 34 -
.../LocalInstance.php | 94 -
.../AvailablePhoneNumberCountry/LocalList.php | 153 -
.../LocalOptions.php | 356 --
.../AvailablePhoneNumberCountry/LocalPage.php | 39 -
.../MachineToMachineInstance.php | 94 -
.../MachineToMachineList.php | 153 -
.../MachineToMachineOptions.php | 302 --
.../MachineToMachinePage.php | 39 -
.../MobileInstance.php | 94 -
.../MobileList.php | 153 -
.../MobileOptions.php | 353 --
.../MobilePage.php | 39 -
.../NationalInstance.php | 94 -
.../NationalList.php | 153 -
.../NationalOptions.php | 302 --
.../NationalPage.php | 39 -
.../SharedCostInstance.php | 94 -
.../SharedCostList.php | 153 -
.../SharedCostOptions.php | 302 --
.../SharedCostPage.php | 39 -
.../TollFreeInstance.php | 94 -
.../TollFreeList.php | 153 -
.../TollFreeOptions.php | 353 --
.../TollFreePage.php | 39 -
.../VoipInstance.php | 94 -
.../AvailablePhoneNumberCountry/VoipList.php | 153 -
.../VoipOptions.php | 302 --
.../AvailablePhoneNumberCountry/VoipPage.php | 39 -
.../AvailablePhoneNumberCountryContext.php | 247 --
.../AvailablePhoneNumberCountryInstance.php | 185 -
.../AvailablePhoneNumberCountryList.php | 145 -
.../AvailablePhoneNumberCountryPage.php | 38 -
.../Api/V2010/Account/BalanceInstance.php | 72 -
.../Rest/Api/V2010/Account/BalanceList.php | 59 -
.../Rest/Api/V2010/Account/BalancePage.php | 34 -
.../V2010/Account/Call/FeedbackContext.php | 133 -
.../V2010/Account/Call/FeedbackInstance.php | 139 -
.../Api/V2010/Account/Call/FeedbackList.php | 53 -
.../V2010/Account/Call/FeedbackOptions.php | 101 -
.../Api/V2010/Account/Call/FeedbackPage.php | 39 -
.../Account/Call/FeedbackSummaryContext.php | 79 -
.../Account/Call/FeedbackSummaryInstance.php | 141 -
.../Account/Call/FeedbackSummaryList.php | 86 -
.../Account/Call/FeedbackSummaryOptions.php | 95 -
.../Account/Call/FeedbackSummaryPage.php | 34 -
.../Account/Call/NotificationContext.php | 81 -
.../Account/Call/NotificationInstance.php | 152 -
.../V2010/Account/Call/NotificationList.php | 153 -
.../Account/Call/NotificationOptions.php | 100 -
.../V2010/Account/Call/NotificationPage.php | 39 -
.../V2010/Account/Call/RecordingContext.php | 111 -
.../V2010/Account/Call/RecordingInstance.php | 166 -
.../Api/V2010/Account/Call/RecordingList.php | 186 -
.../V2010/Account/Call/RecordingOptions.php | 243 --
.../Api/V2010/Account/Call/RecordingPage.php | 39 -
.../Rest/Api/V2010/Account/CallContext.php | 215 -
.../Rest/Api/V2010/Account/CallInstance.php | 205 -
.../Rest/Api/V2010/Account/CallList.php | 255 --
.../Rest/Api/V2010/Account/CallOptions.php | 699 ----
.../Rest/Api/V2010/Account/CallPage.php | 34 -
.../Account/Conference/ParticipantContext.php | 123 -
.../Conference/ParticipantInstance.php | 154 -
.../Account/Conference/ParticipantList.php | 213 -
.../Account/Conference/ParticipantOptions.php | 675 ----
.../Account/Conference/ParticipantPage.php | 39 -
.../Account/Conference/RecordingContext.php | 115 -
.../Account/Conference/RecordingInstance.php | 166 -
.../Account/Conference/RecordingList.php | 153 -
.../Account/Conference/RecordingOptions.php | 132 -
.../Account/Conference/RecordingPage.php | 39 -
.../Api/V2010/Account/ConferenceContext.php | 180 -
.../Api/V2010/Account/ConferenceInstance.php | 154 -
.../Rest/Api/V2010/Account/ConferenceList.php | 151 -
.../Api/V2010/Account/ConferenceOptions.php | 233 --
.../Rest/Api/V2010/Account/ConferencePage.php | 34 -
.../Api/V2010/Account/ConnectAppContext.php | 107 -
.../Api/V2010/Account/ConnectAppInstance.php | 134 -
.../Rest/Api/V2010/Account/ConnectAppList.php | 137 -
.../Api/V2010/Account/ConnectAppOptions.php | 168 -
.../Rest/Api/V2010/Account/ConnectAppPage.php | 34 -
.../AssignedAddOnExtensionContext.php | 81 -
.../AssignedAddOnExtensionInstance.php | 130 -
.../AssignedAddOnExtensionList.php | 156 -
.../AssignedAddOnExtensionPage.php | 43 -
.../AssignedAddOnContext.php | 142 -
.../AssignedAddOnInstance.php | 152 -
.../IncomingPhoneNumber/AssignedAddOnList.php | 172 -
.../IncomingPhoneNumber/AssignedAddOnPage.php | 42 -
.../IncomingPhoneNumber/LocalInstance.php | 123 -
.../Account/IncomingPhoneNumber/LocalList.php | 179 -
.../IncomingPhoneNumber/LocalOptions.php | 436 --
.../Account/IncomingPhoneNumber/LocalPage.php | 34 -
.../IncomingPhoneNumber/MobileInstance.php | 123 -
.../IncomingPhoneNumber/MobileList.php | 179 -
.../IncomingPhoneNumber/MobileOptions.php | 436 --
.../IncomingPhoneNumber/MobilePage.php | 34 -
.../IncomingPhoneNumber/TollFreeInstance.php | 123 -
.../IncomingPhoneNumber/TollFreeList.php | 179 -
.../IncomingPhoneNumber/TollFreeOptions.php | 436 --
.../IncomingPhoneNumber/TollFreePage.php | 34 -
.../Account/IncomingPhoneNumberContext.php | 189 -
.../Account/IncomingPhoneNumberInstance.php | 195 -
.../V2010/Account/IncomingPhoneNumberList.php | 273 --
.../Account/IncomingPhoneNumberOptions.php | 845 ----
.../V2010/Account/IncomingPhoneNumberPage.php | 34 -
.../Rest/Api/V2010/Account/KeyContext.php | 107 -
.../Rest/Api/V2010/Account/KeyInstance.php | 132 -
.../Twilio/Rest/Api/V2010/Account/KeyList.php | 138 -
.../Rest/Api/V2010/Account/KeyOptions.php | 61 -
.../Twilio/Rest/Api/V2010/Account/KeyPage.php | 34 -
.../Account/Message/FeedbackInstance.php | 80 -
.../V2010/Account/Message/FeedbackList.php | 70 -
.../V2010/Account/Message/FeedbackOptions.php | 58 -
.../V2010/Account/Message/FeedbackPage.php | 39 -
.../V2010/Account/Message/MediaContext.php | 81 -
.../V2010/Account/Message/MediaInstance.php | 131 -
.../Api/V2010/Account/Message/MediaList.php | 152 -
.../V2010/Account/Message/MediaOptions.php | 86 -
.../Api/V2010/Account/Message/MediaPage.php | 39 -
.../Rest/Api/V2010/Account/MessageContext.php | 183 -
.../Api/V2010/Account/MessageInstance.php | 184 -
.../Rest/Api/V2010/Account/MessageList.php | 188 -
.../Rest/Api/V2010/Account/MessageOptions.php | 383 --
.../Rest/Api/V2010/Account/MessagePage.php | 34 -
.../Rest/Api/V2010/Account/NewKeyInstance.php | 78 -
.../Rest/Api/V2010/Account/NewKeyList.php | 65 -
.../Rest/Api/V2010/Account/NewKeyOptions.php | 58 -
.../Rest/Api/V2010/Account/NewKeyPage.php | 34 -
.../V2010/Account/NewSigningKeyInstance.php | 78 -
.../Api/V2010/Account/NewSigningKeyList.php | 65 -
.../V2010/Account/NewSigningKeyOptions.php | 58 -
.../Api/V2010/Account/NewSigningKeyPage.php | 34 -
.../Api/V2010/Account/NotificationContext.php | 79 -
.../V2010/Account/NotificationInstance.php | 145 -
.../Api/V2010/Account/NotificationList.php | 147 -
.../Api/V2010/Account/NotificationOptions.php | 100 -
.../Api/V2010/Account/NotificationPage.php | 34 -
.../V2010/Account/OutgoingCallerIdContext.php | 107 -
.../Account/OutgoingCallerIdInstance.php | 138 -
.../V2010/Account/OutgoingCallerIdList.php | 144 -
.../V2010/Account/OutgoingCallerIdOptions.php | 115 -
.../V2010/Account/OutgoingCallerIdPage.php | 34 -
.../Api/V2010/Account/Queue/MemberContext.php | 102 -
.../V2010/Account/Queue/MemberInstance.php | 129 -
.../Api/V2010/Account/Queue/MemberList.php | 143 -
.../Api/V2010/Account/Queue/MemberPage.php | 39 -
.../Rest/Api/V2010/Account/QueueContext.php | 168 -
.../Rest/Api/V2010/Account/QueueInstance.php | 152 -
.../Rest/Api/V2010/Account/QueueList.php | 162 -
.../Rest/Api/V2010/Account/QueueOptions.php | 115 -
.../Rest/Api/V2010/Account/QueuePage.php | 34 -
.../Recording/AddOnResult/PayloadContext.php | 88 -
.../Recording/AddOnResult/PayloadInstance.php | 141 -
.../Recording/AddOnResult/PayloadList.php | 149 -
.../Recording/AddOnResult/PayloadPage.php | 40 -
.../Account/Recording/AddOnResultContext.php | 144 -
.../Account/Recording/AddOnResultInstance.php | 149 -
.../Account/Recording/AddOnResultList.php | 143 -
.../Account/Recording/AddOnResultPage.php | 39 -
.../Recording/TranscriptionContext.php | 85 -
.../Recording/TranscriptionInstance.php | 142 -
.../Account/Recording/TranscriptionList.php | 143 -
.../Account/Recording/TranscriptionPage.php | 39 -
.../Api/V2010/Account/RecordingContext.php | 158 -
.../Api/V2010/Account/RecordingInstance.php | 168 -
.../Rest/Api/V2010/Account/RecordingList.php | 148 -
.../Api/V2010/Account/RecordingOptions.php | 114 -
.../Rest/Api/V2010/Account/RecordingPage.php | 34 -
.../Api/V2010/Account/ShortCodeContext.php | 104 -
.../Api/V2010/Account/ShortCodeInstance.php | 137 -
.../Rest/Api/V2010/Account/ShortCodeList.php | 144 -
.../Api/V2010/Account/ShortCodeOptions.php | 191 -
.../Rest/Api/V2010/Account/ShortCodePage.php | 34 -
.../Api/V2010/Account/SigningKeyContext.php | 107 -
.../Api/V2010/Account/SigningKeyInstance.php | 132 -
.../Rest/Api/V2010/Account/SigningKeyList.php | 138 -
.../Api/V2010/Account/SigningKeyOptions.php | 58 -
.../Rest/Api/V2010/Account/SigningKeyPage.php | 34 -
.../Sip/CredentialList/CredentialContext.php | 114 -
.../Sip/CredentialList/CredentialInstance.php | 143 -
.../Sip/CredentialList/CredentialList.php | 170 -
.../Sip/CredentialList/CredentialOptions.php | 58 -
.../Sip/CredentialList/CredentialPage.php | 39 -
.../Account/Sip/CredentialListContext.php | 162 -
.../Account/Sip/CredentialListInstance.php | 149 -
.../V2010/Account/Sip/CredentialListList.php | 158 -
.../V2010/Account/Sip/CredentialListPage.php | 34 -
.../AuthCallsCredentialListMappingContext.php | 82 -
...AuthCallsCredentialListMappingInstance.php | 128 -
.../AuthCallsCredentialListMappingList.php | 173 -
.../AuthCallsCredentialListMappingPage.php | 39 -
...CallsIpAccessControlListMappingContext.php | 82 -
...allsIpAccessControlListMappingInstance.php | 128 -
...uthCallsIpAccessControlListMappingList.php | 174 -
...uthCallsIpAccessControlListMappingPage.php | 39 -
.../AuthTypes/AuthTypeCallsInstance.php | 61 -
.../Domain/AuthTypes/AuthTypeCallsList.php | 114 -
.../Domain/AuthTypes/AuthTypeCallsPage.php | 39 -
...istrationsCredentialListMappingContext.php | 82 -
...strationsCredentialListMappingInstance.php | 128 -
...RegistrationsCredentialListMappingList.php | 174 -
...RegistrationsCredentialListMappingPage.php | 39 -
.../AuthTypeRegistrationsInstance.php | 61 -
.../AuthTypes/AuthTypeRegistrationsList.php | 95 -
.../AuthTypes/AuthTypeRegistrationsPage.php | 39 -
.../Account/Sip/Domain/AuthTypesInstance.php | 61 -
.../Account/Sip/Domain/AuthTypesList.php | 112 -
.../Account/Sip/Domain/AuthTypesPage.php | 39 -
.../Domain/CredentialListMappingContext.php | 81 -
.../Domain/CredentialListMappingInstance.php | 132 -
.../Sip/Domain/CredentialListMappingList.php | 172 -
.../Sip/Domain/CredentialListMappingPage.php | 39 -
.../IpAccessControlListMappingContext.php | 82 -
.../IpAccessControlListMappingInstance.php | 133 -
.../Domain/IpAccessControlListMappingList.php | 173 -
.../Domain/IpAccessControlListMappingPage.php | 39 -
.../Api/V2010/Account/Sip/DomainContext.php | 217 -
.../Api/V2010/Account/Sip/DomainInstance.php | 189 -
.../Rest/Api/V2010/Account/Sip/DomainList.php | 174 -
.../Api/V2010/Account/Sip/DomainOptions.php | 343 --
.../Rest/Api/V2010/Account/Sip/DomainPage.php | 34 -
.../IpAccessControlList/IpAddressContext.php | 118 -
.../IpAccessControlList/IpAddressInstance.php | 148 -
.../Sip/IpAccessControlList/IpAddressList.php | 181 -
.../IpAccessControlList/IpAddressOptions.php | 129 -
.../Sip/IpAccessControlList/IpAddressPage.php | 39 -
.../Sip/IpAccessControlListContext.php | 162 -
.../Sip/IpAccessControlListInstance.php | 147 -
.../Account/Sip/IpAccessControlListList.php | 159 -
.../Account/Sip/IpAccessControlListPage.php | 34 -
.../Rest/Api/V2010/Account/SipInstance.php | 61 -
.../Twilio/Rest/Api/V2010/Account/SipList.php | 124 -
.../Twilio/Rest/Api/V2010/Account/SipPage.php | 34 -
.../Rest/Api/V2010/Account/TokenInstance.php | 81 -
.../Rest/Api/V2010/Account/TokenList.php | 64 -
.../Rest/Api/V2010/Account/TokenOptions.php | 58 -
.../Rest/Api/V2010/Account/TokenPage.php | 34 -
.../V2010/Account/TranscriptionContext.php | 79 -
.../V2010/Account/TranscriptionInstance.php | 137 -
.../Api/V2010/Account/TranscriptionList.php | 137 -
.../Api/V2010/Account/TranscriptionPage.php | 34 -
.../Account/Usage/Record/AllTimeInstance.php | 96 -
.../Account/Usage/Record/AllTimeList.php | 138 -
.../Account/Usage/Record/AllTimeOptions.php | 106 -
.../Account/Usage/Record/AllTimePage.php | 34 -
.../Account/Usage/Record/DailyInstance.php | 96 -
.../V2010/Account/Usage/Record/DailyList.php | 138 -
.../Account/Usage/Record/DailyOptions.php | 106 -
.../V2010/Account/Usage/Record/DailyPage.php | 34 -
.../Usage/Record/LastMonthInstance.php | 96 -
.../Account/Usage/Record/LastMonthList.php | 138 -
.../Account/Usage/Record/LastMonthOptions.php | 106 -
.../Account/Usage/Record/LastMonthPage.php | 34 -
.../Account/Usage/Record/MonthlyInstance.php | 96 -
.../Account/Usage/Record/MonthlyList.php | 138 -
.../Account/Usage/Record/MonthlyOptions.php | 106 -
.../Account/Usage/Record/MonthlyPage.php | 34 -
.../Usage/Record/ThisMonthInstance.php | 96 -
.../Account/Usage/Record/ThisMonthList.php | 138 -
.../Account/Usage/Record/ThisMonthOptions.php | 106 -
.../Account/Usage/Record/ThisMonthPage.php | 34 -
.../Account/Usage/Record/TodayInstance.php | 96 -
.../V2010/Account/Usage/Record/TodayList.php | 138 -
.../Account/Usage/Record/TodayOptions.php | 106 -
.../V2010/Account/Usage/Record/TodayPage.php | 34 -
.../Account/Usage/Record/YearlyInstance.php | 96 -
.../V2010/Account/Usage/Record/YearlyList.php | 138 -
.../Account/Usage/Record/YearlyOptions.php | 106 -
.../V2010/Account/Usage/Record/YearlyPage.php | 34 -
.../Usage/Record/YesterdayInstance.php | 96 -
.../Account/Usage/Record/YesterdayList.php | 138 -
.../Account/Usage/Record/YesterdayOptions.php | 106 -
.../Account/Usage/Record/YesterdayPage.php | 34 -
.../V2010/Account/Usage/RecordInstance.php | 96 -
.../Api/V2010/Account/Usage/RecordList.php | 287 --
.../Api/V2010/Account/Usage/RecordOptions.php | 103 -
.../Api/V2010/Account/Usage/RecordPage.php | 34 -
.../V2010/Account/Usage/TriggerContext.php | 111 -
.../V2010/Account/Usage/TriggerInstance.php | 156 -
.../Api/V2010/Account/Usage/TriggerList.php | 179 -
.../V2010/Account/Usage/TriggerOptions.php | 248 --
.../Api/V2010/Account/Usage/TriggerPage.php | 34 -
.../Rest/Api/V2010/Account/UsageInstance.php | 61 -
.../Rest/Api/V2010/Account/UsageList.php | 105 -
.../Rest/Api/V2010/Account/UsagePage.php | 34 -
.../Account/ValidationRequestInstance.php | 77 -
.../V2010/Account/ValidationRequestList.php | 73 -
.../Account/ValidationRequestOptions.php | 132 -
.../V2010/Account/ValidationRequestPage.php | 34 -
.../Twilio/Rest/Api/V2010/AccountContext.php | 533 ---
.../Twilio/Rest/Api/V2010/AccountInstance.php | 369 --
.../Twilio/Rest/Api/V2010/AccountList.php | 165 -
.../Twilio/Rest/Api/V2010/AccountOptions.php | 172 -
.../Twilio/Rest/Api/V2010/AccountPage.php | 34 -
public/twilio-php/Twilio/Rest/Authy.php | 120 -
public/twilio-php/Twilio/Rest/Authy/V1.php | 100 -
.../Twilio/Rest/Authy/V1/FormContext.php | 66 -
.../Twilio/Rest/Authy/V1/FormInstance.php | 104 -
.../Twilio/Rest/Authy/V1/FormList.php | 50 -
.../Twilio/Rest/Authy/V1/FormPage.php | 37 -
.../Entity/Factor/ChallengeContext.php | 122 -
.../Entity/Factor/ChallengeInstance.php | 171 -
.../Service/Entity/Factor/ChallengeList.php | 101 -
.../Entity/Factor/ChallengeOptions.php | 138 -
.../Service/Entity/Factor/ChallengePage.php | 43 -
.../Authy/V1/Service/Entity/FactorContext.php | 171 -
.../V1/Service/Entity/FactorInstance.php | 166 -
.../Authy/V1/Service/Entity/FactorList.php | 182 -
.../Authy/V1/Service/Entity/FactorOptions.php | 107 -
.../Authy/V1/Service/Entity/FactorPage.php | 42 -
.../Rest/Authy/V1/Service/EntityContext.php | 139 -
.../Rest/Authy/V1/Service/EntityInstance.php | 143 -
.../Rest/Authy/V1/Service/EntityList.php | 160 -
.../Rest/Authy/V1/Service/EntityPage.php | 37 -
.../Twilio/Rest/Authy/V1/ServiceContext.php | 152 -
.../Twilio/Rest/Authy/V1/ServiceInstance.php | 144 -
.../Twilio/Rest/Authy/V1/ServiceList.php | 159 -
.../Twilio/Rest/Authy/V1/ServiceOptions.php | 61 -
.../Twilio/Rest/Authy/V1/ServicePage.php | 37 -
public/twilio-php/Twilio/Rest/Autopilot.php | 104 -
.../twilio-php/Twilio/Rest/Autopilot/V1.php | 86 -
.../V1/Assistant/DefaultsContext.php | 90 -
.../V1/Assistant/DefaultsInstance.php | 117 -
.../Autopilot/V1/Assistant/DefaultsList.php | 50 -
.../V1/Assistant/DefaultsOptions.php | 61 -
.../Autopilot/V1/Assistant/DefaultsPage.php | 37 -
.../V1/Assistant/DialogueContext.php | 72 -
.../V1/Assistant/DialogueInstance.php | 112 -
.../Autopilot/V1/Assistant/DialogueList.php | 51 -
.../Autopilot/V1/Assistant/DialoguePage.php | 37 -
.../Assistant/FieldType/FieldValueContext.php | 90 -
.../FieldType/FieldValueInstance.php | 140 -
.../V1/Assistant/FieldType/FieldValueList.php | 191 -
.../Assistant/FieldType/FieldValueOptions.php | 113 -
.../V1/Assistant/FieldType/FieldValuePage.php | 42 -
.../V1/Assistant/FieldTypeContext.php | 171 -
.../V1/Assistant/FieldTypeInstance.php | 156 -
.../Autopilot/V1/Assistant/FieldTypeList.php | 167 -
.../V1/Assistant/FieldTypeOptions.php | 136 -
.../Autopilot/V1/Assistant/FieldTypePage.php | 37 -
.../V1/Assistant/ModelBuildContext.php | 111 -
.../V1/Assistant/ModelBuildInstance.php | 147 -
.../Autopilot/V1/Assistant/ModelBuildList.php | 167 -
.../V1/Assistant/ModelBuildOptions.php | 130 -
.../Autopilot/V1/Assistant/ModelBuildPage.php | 37 -
.../Autopilot/V1/Assistant/QueryContext.php | 111 -
.../Autopilot/V1/Assistant/QueryInstance.php | 152 -
.../Rest/Autopilot/V1/Assistant/QueryList.php | 181 -
.../Autopilot/V1/Assistant/QueryOptions.php | 230 --
.../Rest/Autopilot/V1/Assistant/QueryPage.php | 37 -
.../V1/Assistant/StyleSheetContext.php | 90 -
.../V1/Assistant/StyleSheetInstance.php | 118 -
.../Autopilot/V1/Assistant/StyleSheetList.php | 50 -
.../V1/Assistant/StyleSheetOptions.php | 61 -
.../Autopilot/V1/Assistant/StyleSheetPage.php | 37 -
.../V1/Assistant/Task/FieldContext.php | 85 -
.../V1/Assistant/Task/FieldInstance.php | 139 -
.../Autopilot/V1/Assistant/Task/FieldList.php | 177 -
.../Autopilot/V1/Assistant/Task/FieldPage.php | 42 -
.../V1/Assistant/Task/SampleContext.php | 118 -
.../V1/Assistant/Task/SampleInstance.php | 153 -
.../V1/Assistant/Task/SampleList.php | 189 -
.../V1/Assistant/Task/SampleOptions.php | 205 -
.../V1/Assistant/Task/SamplePage.php | 42 -
.../V1/Assistant/Task/TaskActionsContext.php | 101 -
.../V1/Assistant/Task/TaskActionsInstance.php | 125 -
.../V1/Assistant/Task/TaskActionsList.php | 55 -
.../V1/Assistant/Task/TaskActionsOptions.php | 64 -
.../V1/Assistant/Task/TaskActionsPage.php | 42 -
.../Assistant/Task/TaskStatisticsContext.php | 72 -
.../Assistant/Task/TaskStatisticsInstance.php | 113 -
.../V1/Assistant/Task/TaskStatisticsList.php | 55 -
.../V1/Assistant/Task/TaskStatisticsPage.php | 42 -
.../Autopilot/V1/Assistant/TaskContext.php | 237 --
.../Autopilot/V1/Assistant/TaskInstance.php | 187 -
.../Rest/Autopilot/V1/Assistant/TaskList.php | 173 -
.../Autopilot/V1/Assistant/TaskOptions.php | 210 -
.../Rest/Autopilot/V1/Assistant/TaskPage.php | 37 -
.../Rest/Autopilot/V1/AssistantContext.php | 264 --
.../Rest/Autopilot/V1/AssistantInstance.php | 216 -
.../Rest/Autopilot/V1/AssistantList.php | 172 -
.../Rest/Autopilot/V1/AssistantOptions.php | 338 --
.../Rest/Autopilot/V1/AssistantPage.php | 37 -
public/twilio-php/Twilio/Rest/Chat.php | 133 -
public/twilio-php/Twilio/Rest/Chat/V1.php | 100 -
.../Twilio/Rest/Chat/V1/CredentialContext.php | 104 -
.../Rest/Chat/V1/CredentialInstance.php | 134 -
.../Twilio/Rest/Chat/V1/CredentialList.php | 169 -
.../Twilio/Rest/Chat/V1/CredentialOptions.php | 271 --
.../Twilio/Rest/Chat/V1/CredentialPage.php | 34 -
.../Chat/V1/Service/Channel/InviteContext.php | 81 -
.../V1/Service/Channel/InviteInstance.php | 138 -
.../Chat/V1/Service/Channel/InviteList.php | 180 -
.../Chat/V1/Service/Channel/InviteOptions.php | 104 -
.../Chat/V1/Service/Channel/InvitePage.php | 39 -
.../Chat/V1/Service/Channel/MemberContext.php | 113 -
.../V1/Service/Channel/MemberInstance.php | 152 -
.../Chat/V1/Service/Channel/MemberList.php | 180 -
.../Chat/V1/Service/Channel/MemberOptions.php | 167 -
.../Chat/V1/Service/Channel/MemberPage.php | 39 -
.../V1/Service/Channel/MessageContext.php | 110 -
.../V1/Service/Channel/MessageInstance.php | 156 -
.../Chat/V1/Service/Channel/MessageList.php | 182 -
.../V1/Service/Channel/MessageOptions.php | 175 -
.../Chat/V1/Service/Channel/MessagePage.php | 39 -
.../Rest/Chat/V1/Service/ChannelContext.php | 211 -
.../Rest/Chat/V1/Service/ChannelInstance.php | 183 -
.../Rest/Chat/V1/Service/ChannelList.php | 172 -
.../Rest/Chat/V1/Service/ChannelOptions.php | 220 -
.../Rest/Chat/V1/Service/ChannelPage.php | 34 -
.../Rest/Chat/V1/Service/RoleContext.php | 105 -
.../Rest/Chat/V1/Service/RoleInstance.php | 140 -
.../Twilio/Rest/Chat/V1/Service/RoleList.php | 164 -
.../Twilio/Rest/Chat/V1/Service/RolePage.php | 34 -
.../V1/Service/User/UserChannelInstance.php | 84 -
.../Chat/V1/Service/User/UserChannelList.php | 129 -
.../Chat/V1/Service/User/UserChannelPage.php | 39 -
.../Rest/Chat/V1/Service/UserContext.php | 168 -
.../Rest/Chat/V1/Service/UserInstance.php | 162 -
.../Twilio/Rest/Chat/V1/Service/UserList.php | 167 -
.../Rest/Chat/V1/Service/UserOptions.php | 172 -
.../Twilio/Rest/Chat/V1/Service/UserPage.php | 34 -
.../Twilio/Rest/Chat/V1/ServiceContext.php | 256 --
.../Twilio/Rest/Chat/V1/ServiceInstance.php | 190 -
.../Twilio/Rest/Chat/V1/ServiceList.php | 156 -
.../Twilio/Rest/Chat/V1/ServiceOptions.php | 1180 ------
.../Twilio/Rest/Chat/V1/ServicePage.php | 34 -
public/twilio-php/Twilio/Rest/Chat/V2.php | 100 -
.../Twilio/Rest/Chat/V2/CredentialContext.php | 104 -
.../Rest/Chat/V2/CredentialInstance.php | 134 -
.../Twilio/Rest/Chat/V2/CredentialList.php | 169 -
.../Twilio/Rest/Chat/V2/CredentialOptions.php | 289 --
.../Twilio/Rest/Chat/V2/CredentialPage.php | 34 -
.../Rest/Chat/V2/Service/BindingContext.php | 79 -
.../Rest/Chat/V2/Service/BindingInstance.php | 136 -
.../Rest/Chat/V2/Service/BindingList.php | 146 -
.../Rest/Chat/V2/Service/BindingOptions.php | 75 -
.../Rest/Chat/V2/Service/BindingPage.php | 34 -
.../Chat/V2/Service/Channel/InviteContext.php | 81 -
.../V2/Service/Channel/InviteInstance.php | 138 -
.../Chat/V2/Service/Channel/InviteList.php | 180 -
.../Chat/V2/Service/Channel/InviteOptions.php | 104 -
.../Chat/V2/Service/Channel/InvitePage.php | 39 -
.../Chat/V2/Service/Channel/MemberContext.php | 118 -
.../V2/Service/Channel/MemberInstance.php | 152 -
.../Chat/V2/Service/Channel/MemberList.php | 187 -
.../Chat/V2/Service/Channel/MemberOptions.php | 346 --
.../Chat/V2/Service/Channel/MemberPage.php | 39 -
.../V2/Service/Channel/MessageContext.php | 119 -
.../V2/Service/Channel/MessageInstance.php | 162 -
.../Chat/V2/Service/Channel/MessageList.php | 186 -
.../V2/Service/Channel/MessageOptions.php | 334 --
.../Chat/V2/Service/Channel/MessagePage.php | 39 -
.../V2/Service/Channel/WebhookContext.php | 118 -
.../V2/Service/Channel/WebhookInstance.php | 147 -
.../Chat/V2/Service/Channel/WebhookList.php | 181 -
.../V2/Service/Channel/WebhookOptions.php | 241 --
.../Chat/V2/Service/Channel/WebhookPage.php | 39 -
.../Rest/Chat/V2/Service/ChannelContext.php | 236 --
.../Rest/Chat/V2/Service/ChannelInstance.php | 193 -
.../Rest/Chat/V2/Service/ChannelList.php | 175 -
.../Rest/Chat/V2/Service/ChannelOptions.php | 334 --
.../Rest/Chat/V2/Service/ChannelPage.php | 34 -
.../Rest/Chat/V2/Service/RoleContext.php | 105 -
.../Rest/Chat/V2/Service/RoleInstance.php | 140 -
.../Twilio/Rest/Chat/V2/Service/RoleList.php | 164 -
.../Twilio/Rest/Chat/V2/Service/RolePage.php | 34 -
.../V2/Service/User/UserBindingContext.php | 81 -
.../V2/Service/User/UserBindingInstance.php | 143 -
.../Chat/V2/Service/User/UserBindingList.php | 151 -
.../V2/Service/User/UserBindingOptions.php | 61 -
.../Chat/V2/Service/User/UserBindingPage.php | 39 -
.../V2/Service/User/UserChannelContext.php | 103 -
.../V2/Service/User/UserChannelInstance.php | 142 -
.../Chat/V2/Service/User/UserChannelList.php | 144 -
.../Chat/V2/Service/User/UserChannelPage.php | 39 -
.../Rest/Chat/V2/Service/UserContext.php | 190 -
.../Rest/Chat/V2/Service/UserInstance.php | 172 -
.../Twilio/Rest/Chat/V2/Service/UserList.php | 167 -
.../Rest/Chat/V2/Service/UserOptions.php | 172 -
.../Twilio/Rest/Chat/V2/Service/UserPage.php | 34 -
.../Twilio/Rest/Chat/V2/ServiceContext.php | 234 --
.../Twilio/Rest/Chat/V2/ServiceInstance.php | 204 -
.../Twilio/Rest/Chat/V2/ServiceList.php | 156 -
.../Twilio/Rest/Chat/V2/ServiceOptions.php | 565 ---
.../Twilio/Rest/Chat/V2/ServicePage.php | 34 -
public/twilio-php/Twilio/Rest/Client.php | 905 -----
public/twilio-php/Twilio/Rest/Fax.php | 103 -
public/twilio-php/Twilio/Rest/Fax/V1.php | 86 -
.../Rest/Fax/V1/Fax/FaxMediaContext.php | 82 -
.../Rest/Fax/V1/Fax/FaxMediaInstance.php | 127 -
.../Twilio/Rest/Fax/V1/Fax/FaxMediaList.php | 140 -
.../Twilio/Rest/Fax/V1/Fax/FaxMediaPage.php | 37 -
.../Twilio/Rest/Fax/V1/FaxContext.php | 152 -
.../Twilio/Rest/Fax/V1/FaxInstance.php | 166 -
.../twilio-php/Twilio/Rest/Fax/V1/FaxList.php | 183 -
.../Twilio/Rest/Fax/V1/FaxOptions.php | 276 --
.../twilio-php/Twilio/Rest/Fax/V1/FaxPage.php | 37 -
public/twilio-php/Twilio/Rest/IpMessaging.php | 133 -
.../twilio-php/Twilio/Rest/IpMessaging/V1.php | 100 -
.../Rest/IpMessaging/V1/CredentialContext.php | 104 -
.../IpMessaging/V1/CredentialInstance.php | 134 -
.../Rest/IpMessaging/V1/CredentialList.php | 169 -
.../Rest/IpMessaging/V1/CredentialOptions.php | 271 --
.../Rest/IpMessaging/V1/CredentialPage.php | 34 -
.../V1/Service/Channel/InviteContext.php | 81 -
.../V1/Service/Channel/InviteInstance.php | 139 -
.../V1/Service/Channel/InviteList.php | 180 -
.../V1/Service/Channel/InviteOptions.php | 104 -
.../V1/Service/Channel/InvitePage.php | 39 -
.../V1/Service/Channel/MemberContext.php | 113 -
.../V1/Service/Channel/MemberInstance.php | 153 -
.../V1/Service/Channel/MemberList.php | 180 -
.../V1/Service/Channel/MemberOptions.php | 167 -
.../V1/Service/Channel/MemberPage.php | 39 -
.../V1/Service/Channel/MessageContext.php | 110 -
.../V1/Service/Channel/MessageInstance.php | 157 -
.../V1/Service/Channel/MessageList.php | 182 -
.../V1/Service/Channel/MessageOptions.php | 175 -
.../V1/Service/Channel/MessagePage.php | 39 -
.../IpMessaging/V1/Service/ChannelContext.php | 211 -
.../V1/Service/ChannelInstance.php | 183 -
.../IpMessaging/V1/Service/ChannelList.php | 172 -
.../IpMessaging/V1/Service/ChannelOptions.php | 220 -
.../IpMessaging/V1/Service/ChannelPage.php | 34 -
.../IpMessaging/V1/Service/RoleContext.php | 105 -
.../IpMessaging/V1/Service/RoleInstance.php | 140 -
.../Rest/IpMessaging/V1/Service/RoleList.php | 164 -
.../Rest/IpMessaging/V1/Service/RolePage.php | 34 -
.../V1/Service/User/UserChannelInstance.php | 84 -
.../V1/Service/User/UserChannelList.php | 129 -
.../V1/Service/User/UserChannelPage.php | 39 -
.../IpMessaging/V1/Service/UserContext.php | 168 -
.../IpMessaging/V1/Service/UserInstance.php | 162 -
.../Rest/IpMessaging/V1/Service/UserList.php | 167 -
.../IpMessaging/V1/Service/UserOptions.php | 172 -
.../Rest/IpMessaging/V1/Service/UserPage.php | 34 -
.../Rest/IpMessaging/V1/ServiceContext.php | 256 --
.../Rest/IpMessaging/V1/ServiceInstance.php | 191 -
.../Rest/IpMessaging/V1/ServiceList.php | 156 -
.../Rest/IpMessaging/V1/ServiceOptions.php | 1180 ------
.../Rest/IpMessaging/V1/ServicePage.php | 34 -
.../twilio-php/Twilio/Rest/IpMessaging/V2.php | 100 -
.../Rest/IpMessaging/V2/CredentialContext.php | 104 -
.../IpMessaging/V2/CredentialInstance.php | 134 -
.../Rest/IpMessaging/V2/CredentialList.php | 169 -
.../Rest/IpMessaging/V2/CredentialOptions.php | 289 --
.../Rest/IpMessaging/V2/CredentialPage.php | 34 -
.../IpMessaging/V2/Service/BindingContext.php | 79 -
.../V2/Service/BindingInstance.php | 136 -
.../IpMessaging/V2/Service/BindingList.php | 146 -
.../IpMessaging/V2/Service/BindingOptions.php | 75 -
.../IpMessaging/V2/Service/BindingPage.php | 34 -
.../V2/Service/Channel/InviteContext.php | 81 -
.../V2/Service/Channel/InviteInstance.php | 139 -
.../V2/Service/Channel/InviteList.php | 180 -
.../V2/Service/Channel/InviteOptions.php | 104 -
.../V2/Service/Channel/InvitePage.php | 39 -
.../V2/Service/Channel/MemberContext.php | 118 -
.../V2/Service/Channel/MemberInstance.php | 153 -
.../V2/Service/Channel/MemberList.php | 187 -
.../V2/Service/Channel/MemberOptions.php | 346 --
.../V2/Service/Channel/MemberPage.php | 39 -
.../V2/Service/Channel/MessageContext.php | 119 -
.../V2/Service/Channel/MessageInstance.php | 163 -
.../V2/Service/Channel/MessageList.php | 186 -
.../V2/Service/Channel/MessageOptions.php | 334 --
.../V2/Service/Channel/MessagePage.php | 39 -
.../V2/Service/Channel/WebhookContext.php | 118 -
.../V2/Service/Channel/WebhookInstance.php | 148 -
.../V2/Service/Channel/WebhookList.php | 181 -
.../V2/Service/Channel/WebhookOptions.php | 241 --
.../V2/Service/Channel/WebhookPage.php | 39 -
.../IpMessaging/V2/Service/ChannelContext.php | 236 --
.../V2/Service/ChannelInstance.php | 193 -
.../IpMessaging/V2/Service/ChannelList.php | 175 -
.../IpMessaging/V2/Service/ChannelOptions.php | 334 --
.../IpMessaging/V2/Service/ChannelPage.php | 34 -
.../IpMessaging/V2/Service/RoleContext.php | 105 -
.../IpMessaging/V2/Service/RoleInstance.php | 140 -
.../Rest/IpMessaging/V2/Service/RoleList.php | 164 -
.../Rest/IpMessaging/V2/Service/RolePage.php | 34 -
.../V2/Service/User/UserBindingContext.php | 81 -
.../V2/Service/User/UserBindingInstance.php | 143 -
.../V2/Service/User/UserBindingList.php | 151 -
.../V2/Service/User/UserBindingOptions.php | 61 -
.../V2/Service/User/UserBindingPage.php | 39 -
.../V2/Service/User/UserChannelContext.php | 103 -
.../V2/Service/User/UserChannelInstance.php | 142 -
.../V2/Service/User/UserChannelList.php | 144 -
.../V2/Service/User/UserChannelPage.php | 39 -
.../IpMessaging/V2/Service/UserContext.php | 190 -
.../IpMessaging/V2/Service/UserInstance.php | 172 -
.../Rest/IpMessaging/V2/Service/UserList.php | 167 -
.../IpMessaging/V2/Service/UserOptions.php | 172 -
.../Rest/IpMessaging/V2/Service/UserPage.php | 34 -
.../Rest/IpMessaging/V2/ServiceContext.php | 234 --
.../Rest/IpMessaging/V2/ServiceInstance.php | 205 -
.../Rest/IpMessaging/V2/ServiceList.php | 156 -
.../Rest/IpMessaging/V2/ServiceOptions.php | 565 ---
.../Rest/IpMessaging/V2/ServicePage.php | 34 -
public/twilio-php/Twilio/Rest/Lookups.php | 103 -
public/twilio-php/Twilio/Rest/Lookups/V1.php | 86 -
.../Rest/Lookups/V1/PhoneNumberContext.php | 73 -
.../Rest/Lookups/V1/PhoneNumberInstance.php | 111 -
.../Rest/Lookups/V1/PhoneNumberList.php | 47 -
.../Rest/Lookups/V1/PhoneNumberOptions.php | 106 -
.../Rest/Lookups/V1/PhoneNumberPage.php | 34 -
public/twilio-php/Twilio/Rest/Messaging.php | 103 -
.../twilio-php/Twilio/Rest/Messaging/V1.php | 86 -
.../V1/Service/AlphaSenderContext.php | 82 -
.../V1/Service/AlphaSenderInstance.php | 131 -
.../Messaging/V1/Service/AlphaSenderList.php | 162 -
.../Messaging/V1/Service/AlphaSenderPage.php | 37 -
.../V1/Service/PhoneNumberContext.php | 82 -
.../V1/Service/PhoneNumberInstance.php | 132 -
.../Messaging/V1/Service/PhoneNumberList.php | 161 -
.../Messaging/V1/Service/PhoneNumberPage.php | 37 -
.../Messaging/V1/Service/ShortCodeContext.php | 82 -
.../V1/Service/ShortCodeInstance.php | 131 -
.../Messaging/V1/Service/ShortCodeList.php | 161 -
.../Messaging/V1/Service/ShortCodePage.php | 37 -
.../Rest/Messaging/V1/ServiceContext.php | 202 -
.../Rest/Messaging/V1/ServiceInstance.php | 191 -
.../Twilio/Rest/Messaging/V1/ServiceList.php | 180 -
.../Rest/Messaging/V1/ServiceOptions.php | 502 ---
.../Twilio/Rest/Messaging/V1/ServicePage.php | 37 -
public/twilio-php/Twilio/Rest/Monitor.php | 120 -
public/twilio-php/Twilio/Rest/Monitor/V1.php | 100 -
.../Twilio/Rest/Monitor/V1/AlertContext.php | 73 -
.../Twilio/Rest/Monitor/V1/AlertInstance.php | 139 -
.../Twilio/Rest/Monitor/V1/AlertList.php | 145 -
.../Twilio/Rest/Monitor/V1/AlertOptions.php | 86 -
.../Twilio/Rest/Monitor/V1/AlertPage.php | 34 -
.../Twilio/Rest/Monitor/V1/EventContext.php | 63 -
.../Twilio/Rest/Monitor/V1/EventInstance.php | 123 -
.../Twilio/Rest/Monitor/V1/EventList.php | 148 -
.../Twilio/Rest/Monitor/V1/EventOptions.php | 131 -
.../Twilio/Rest/Monitor/V1/EventPage.php | 34 -
public/twilio-php/Twilio/Rest/Notify.php | 120 -
public/twilio-php/Twilio/Rest/Notify/V1.php | 100 -
.../Rest/Notify/V1/CredentialContext.php | 107 -
.../Rest/Notify/V1/CredentialInstance.php | 136 -
.../Twilio/Rest/Notify/V1/CredentialList.php | 172 -
.../Rest/Notify/V1/CredentialOptions.php | 274 --
.../Twilio/Rest/Notify/V1/CredentialPage.php | 37 -
.../Rest/Notify/V1/Service/BindingContext.php | 82 -
.../Notify/V1/Service/BindingInstance.php | 141 -
.../Rest/Notify/V1/Service/BindingList.php | 183 -
.../Rest/Notify/V1/Service/BindingOptions.php | 206 -
.../Rest/Notify/V1/Service/BindingPage.php | 37 -
.../V1/Service/NotificationInstance.php | 109 -
.../Notify/V1/Service/NotificationList.php | 86 -
.../Notify/V1/Service/NotificationOptions.php | 333 --
.../Notify/V1/Service/NotificationPage.php | 37 -
.../Twilio/Rest/Notify/V1/ServiceContext.php | 182 -
.../Twilio/Rest/Notify/V1/ServiceInstance.php | 177 -
.../Twilio/Rest/Notify/V1/ServiceList.php | 181 -
.../Twilio/Rest/Notify/V1/ServiceOptions.php | 545 ---
.../Twilio/Rest/Notify/V1/ServicePage.php | 37 -
public/twilio-php/Twilio/Rest/Preview.php | 396 --
.../Twilio/Rest/Preview/AccSecurity.php | 86 -
.../Service/VerificationCheckInstance.php | 87 -
.../Service/VerificationCheckList.php | 68 -
.../Service/VerificationCheckOptions.php | 61 -
.../Service/VerificationCheckPage.php | 37 -
.../Service/VerificationInstance.php | 87 -
.../AccSecurity/Service/VerificationList.php | 73 -
.../Service/VerificationOptions.php | 61 -
.../AccSecurity/Service/VerificationPage.php | 37 -
.../Preview/AccSecurity/ServiceContext.php | 157 -
.../Preview/AccSecurity/ServiceInstance.php | 147 -
.../Rest/Preview/AccSecurity/ServiceList.php | 163 -
.../Preview/AccSecurity/ServiceOptions.php | 118 -
.../Rest/Preview/AccSecurity/ServicePage.php | 37 -
.../twilio-php/Twilio/Rest/Preview/Authy.php | 86 -
.../Preview/Authy/Service/EntityContext.php | 72 -
.../Preview/Authy/Service/EntityInstance.php | 122 -
.../Rest/Preview/Authy/Service/EntityList.php | 160 -
.../Rest/Preview/Authy/Service/EntityPage.php | 37 -
.../Rest/Preview/Authy/ServiceContext.php | 142 -
.../Rest/Preview/Authy/ServiceInstance.php | 135 -
.../Twilio/Rest/Preview/Authy/ServiceList.php | 159 -
.../Rest/Preview/Authy/ServiceOptions.php | 61 -
.../Twilio/Rest/Preview/Authy/ServicePage.php | 37 -
.../Twilio/Rest/Preview/BulkExports.php | 100 -
.../BulkExports/Export/DayInstance.php | 76 -
.../Preview/BulkExports/Export/DayList.php | 130 -
.../Preview/BulkExports/Export/DayPage.php | 37 -
.../ExportConfigurationContext.php | 94 -
.../ExportConfigurationInstance.php | 120 -
.../BulkExports/ExportConfigurationList.php | 50 -
.../ExportConfigurationOptions.php | 89 -
.../BulkExports/ExportConfigurationPage.php | 37 -
.../Preview/BulkExports/ExportContext.php | 118 -
.../Preview/BulkExports/ExportInstance.php | 114 -
.../Rest/Preview/BulkExports/ExportList.php | 50 -
.../Rest/Preview/BulkExports/ExportPage.php | 37 -
.../Twilio/Rest/Preview/DeployedDevices.php | 87 -
.../Fleet/CertificateContext.php | 113 -
.../Fleet/CertificateInstance.php | 142 -
.../DeployedDevices/Fleet/CertificateList.php | 173 -
.../Fleet/CertificateOptions.php | 190 -
.../DeployedDevices/Fleet/CertificatePage.php | 37 -
.../Fleet/DeploymentContext.php | 113 -
.../Fleet/DeploymentInstance.php | 143 -
.../DeployedDevices/Fleet/DeploymentList.php | 166 -
.../Fleet/DeploymentOptions.php | 138 -
.../DeployedDevices/Fleet/DeploymentPage.php | 37 -
.../DeployedDevices/Fleet/DeviceContext.php | 116 -
.../DeployedDevices/Fleet/DeviceInstance.php | 150 -
.../DeployedDevices/Fleet/DeviceList.php | 175 -
.../DeployedDevices/Fleet/DeviceOptions.php | 248 --
.../DeployedDevices/Fleet/DevicePage.php | 37 -
.../DeployedDevices/Fleet/KeyContext.php | 113 -
.../DeployedDevices/Fleet/KeyInstance.php | 144 -
.../Preview/DeployedDevices/Fleet/KeyList.php | 171 -
.../DeployedDevices/Fleet/KeyOptions.php | 175 -
.../Preview/DeployedDevices/Fleet/KeyPage.php | 37 -
.../Preview/DeployedDevices/FleetContext.php | 206 -
.../Preview/DeployedDevices/FleetInstance.php | 179 -
.../Preview/DeployedDevices/FleetList.php | 162 -
.../Preview/DeployedDevices/FleetOptions.php | 118 -
.../Preview/DeployedDevices/FleetPage.php | 37 -
.../Twilio/Rest/Preview/HostedNumbers.php | 100 -
.../DependentHostedNumberOrderInstance.php | 113 -
.../DependentHostedNumberOrderList.php | 143 -
.../DependentHostedNumberOrderOptions.php | 120 -
.../DependentHostedNumberOrderPage.php | 41 -
.../AuthorizationDocumentContext.php | 153 -
.../AuthorizationDocumentInstance.php | 138 -
.../AuthorizationDocumentList.php | 185 -
.../AuthorizationDocumentOptions.php | 248 --
.../AuthorizationDocumentPage.php | 37 -
.../HostedNumberOrderContext.php | 111 -
.../HostedNumberOrderInstance.php | 167 -
.../HostedNumbers/HostedNumberOrderList.php | 192 -
.../HostedNumberOrderOptions.php | 540 ---
.../HostedNumbers/HostedNumberOrderPage.php | 37 -
.../Twilio/Rest/Preview/Marketplace.php | 100 -
.../AvailableAddOnExtensionContext.php | 73 -
.../AvailableAddOnExtensionInstance.php | 118 -
.../AvailableAddOnExtensionList.php | 147 -
.../AvailableAddOnExtensionPage.php | 41 -
.../Marketplace/AvailableAddOnContext.php | 119 -
.../Marketplace/AvailableAddOnInstance.php | 123 -
.../Marketplace/AvailableAddOnList.php | 139 -
.../Marketplace/AvailableAddOnPage.php | 37 -
.../InstalledAddOnExtensionContext.php | 100 -
.../InstalledAddOnExtensionInstance.php | 132 -
.../InstalledAddOnExtensionList.php | 147 -
.../InstalledAddOnExtensionPage.php | 41 -
.../Marketplace/InstalledAddOnContext.php | 156 -
.../Marketplace/InstalledAddOnInstance.php | 152 -
.../Marketplace/InstalledAddOnList.php | 172 -
.../Marketplace/InstalledAddOnOptions.php | 138 -
.../Marketplace/InstalledAddOnPage.php | 37 -
.../twilio-php/Twilio/Rest/Preview/Sync.php | 86 -
.../Document/DocumentPermissionContext.php | 122 -
.../Document/DocumentPermissionInstance.php | 147 -
.../Document/DocumentPermissionList.php | 148 -
.../Document/DocumentPermissionPage.php | 42 -
.../Preview/Sync/Service/DocumentContext.php | 165 -
.../Preview/Sync/Service/DocumentInstance.php | 157 -
.../Preview/Sync/Service/DocumentList.php | 167 -
.../Preview/Sync/Service/DocumentOptions.php | 75 -
.../Preview/Sync/Service/DocumentPage.php | 37 -
.../Service/SyncList/SyncListItemContext.php | 111 -
.../Service/SyncList/SyncListItemInstance.php | 149 -
.../Service/SyncList/SyncListItemList.php | 180 -
.../Service/SyncList/SyncListItemOptions.php | 89 -
.../Service/SyncList/SyncListItemPage.php | 42 -
.../SyncList/SyncListPermissionContext.php | 122 -
.../SyncList/SyncListPermissionInstance.php | 147 -
.../SyncList/SyncListPermissionList.php | 148 -
.../SyncList/SyncListPermissionPage.php | 42 -
.../Preview/Sync/Service/SyncListContext.php | 160 -
.../Preview/Sync/Service/SyncListInstance.php | 154 -
.../Preview/Sync/Service/SyncListList.php | 163 -
.../Preview/Sync/Service/SyncListOptions.php | 61 -
.../Preview/Sync/Service/SyncListPage.php | 37 -
.../Service/SyncMap/SyncMapItemContext.php | 111 -
.../Service/SyncMap/SyncMapItemInstance.php | 152 -
.../Sync/Service/SyncMap/SyncMapItemList.php | 181 -
.../Service/SyncMap/SyncMapItemOptions.php | 89 -
.../Sync/Service/SyncMap/SyncMapItemPage.php | 42 -
.../SyncMap/SyncMapPermissionContext.php | 118 -
.../SyncMap/SyncMapPermissionInstance.php | 147 -
.../Service/SyncMap/SyncMapPermissionList.php | 147 -
.../Service/SyncMap/SyncMapPermissionPage.php | 42 -
.../Preview/Sync/Service/SyncMapContext.php | 160 -
.../Preview/Sync/Service/SyncMapInstance.php | 154 -
.../Rest/Preview/Sync/Service/SyncMapList.php | 163 -
.../Preview/Sync/Service/SyncMapOptions.php | 61 -
.../Rest/Preview/Sync/Service/SyncMapPage.php | 37 -
.../Rest/Preview/Sync/ServiceContext.php | 192 -
.../Rest/Preview/Sync/ServiceInstance.php | 171 -
.../Twilio/Rest/Preview/Sync/ServiceList.php | 168 -
.../Rest/Preview/Sync/ServiceOptions.php | 188 -
.../Twilio/Rest/Preview/Sync/ServicePage.php | 37 -
.../Twilio/Rest/Preview/Understand.php | 86 -
.../AssistantFallbackActionsContext.php | 100 -
.../AssistantFallbackActionsInstance.php | 122 -
.../AssistantFallbackActionsList.php | 50 -
.../AssistantFallbackActionsOptions.php | 61 -
.../AssistantFallbackActionsPage.php | 41 -
.../AssistantInitiationActionsContext.php | 102 -
.../AssistantInitiationActionsInstance.php | 122 -
.../AssistantInitiationActionsList.php | 50 -
.../AssistantInitiationActionsOptions.php | 61 -
.../AssistantInitiationActionsPage.php | 41 -
.../Understand/Assistant/DialogueContext.php | 72 -
.../Understand/Assistant/DialogueInstance.php | 113 -
.../Understand/Assistant/DialogueList.php | 51 -
.../Understand/Assistant/DialoguePage.php | 37 -
.../Assistant/FieldType/FieldValueContext.php | 88 -
.../FieldType/FieldValueInstance.php | 140 -
.../Assistant/FieldType/FieldValueList.php | 188 -
.../Assistant/FieldType/FieldValueOptions.php | 110 -
.../Assistant/FieldType/FieldValuePage.php | 42 -
.../Understand/Assistant/FieldTypeContext.php | 170 -
.../Assistant/FieldTypeInstance.php | 155 -
.../Understand/Assistant/FieldTypeList.php | 166 -
.../Understand/Assistant/FieldTypeOptions.php | 136 -
.../Understand/Assistant/FieldTypePage.php | 37 -
.../Assistant/ModelBuildContext.php | 110 -
.../Assistant/ModelBuildInstance.php | 146 -
.../Understand/Assistant/ModelBuildList.php | 166 -
.../Assistant/ModelBuildOptions.php | 130 -
.../Understand/Assistant/ModelBuildPage.php | 37 -
.../Understand/Assistant/QueryContext.php | 111 -
.../Understand/Assistant/QueryInstance.php | 153 -
.../Understand/Assistant/QueryList.php | 181 -
.../Understand/Assistant/QueryOptions.php | 250 --
.../Understand/Assistant/QueryPage.php | 37 -
.../Assistant/StyleSheetContext.php | 90 -
.../Assistant/StyleSheetInstance.php | 118 -
.../Understand/Assistant/StyleSheetList.php | 50 -
.../Assistant/StyleSheetOptions.php | 61 -
.../Understand/Assistant/StyleSheetPage.php | 37 -
.../Assistant/Task/FieldContext.php | 85 -
.../Assistant/Task/FieldInstance.php | 139 -
.../Understand/Assistant/Task/FieldList.php | 177 -
.../Understand/Assistant/Task/FieldPage.php | 42 -
.../Assistant/Task/SampleContext.php | 118 -
.../Assistant/Task/SampleInstance.php | 154 -
.../Understand/Assistant/Task/SampleList.php | 187 -
.../Assistant/Task/SampleOptions.php | 196 -
.../Understand/Assistant/Task/SamplePage.php | 42 -
.../Assistant/Task/TaskActionsContext.php | 101 -
.../Assistant/Task/TaskActionsInstance.php | 123 -
.../Assistant/Task/TaskActionsList.php | 55 -
.../Assistant/Task/TaskActionsOptions.php | 64 -
.../Assistant/Task/TaskActionsPage.php | 42 -
.../Assistant/Task/TaskStatisticsContext.php | 72 -
.../Assistant/Task/TaskStatisticsInstance.php | 113 -
.../Assistant/Task/TaskStatisticsList.php | 55 -
.../Assistant/Task/TaskStatisticsPage.php | 42 -
.../Understand/Assistant/TaskContext.php | 237 --
.../Understand/Assistant/TaskInstance.php | 188 -
.../Preview/Understand/Assistant/TaskList.php | 173 -
.../Understand/Assistant/TaskOptions.php | 210 -
.../Preview/Understand/Assistant/TaskPage.php | 37 -
.../Preview/Understand/AssistantContext.php | 288 --
.../Preview/Understand/AssistantInstance.php | 226 --
.../Rest/Preview/Understand/AssistantList.php | 173 -
.../Preview/Understand/AssistantOptions.php | 378 --
.../Rest/Preview/Understand/AssistantPage.php | 37 -
.../Twilio/Rest/Preview/Wireless.php | 114 -
.../Rest/Preview/Wireless/CommandContext.php | 66 -
.../Rest/Preview/Wireless/CommandInstance.php | 120 -
.../Rest/Preview/Wireless/CommandList.php | 179 -
.../Rest/Preview/Wireless/CommandOptions.php | 216 -
.../Rest/Preview/Wireless/CommandPage.php | 37 -
.../Rest/Preview/Wireless/RatePlanContext.php | 102 -
.../Preview/Wireless/RatePlanInstance.php | 148 -
.../Rest/Preview/Wireless/RatePlanList.php | 174 -
.../Rest/Preview/Wireless/RatePlanOptions.php | 244 --
.../Rest/Preview/Wireless/RatePlanPage.php | 37 -
.../Preview/Wireless/Sim/UsageContext.php | 70 -
.../Preview/Wireless/Sim/UsageInstance.php | 117 -
.../Rest/Preview/Wireless/Sim/UsageList.php | 50 -
.../Preview/Wireless/Sim/UsageOptions.php | 75 -
.../Rest/Preview/Wireless/Sim/UsagePage.php | 37 -
.../Rest/Preview/Wireless/SimContext.php | 159 -
.../Rest/Preview/Wireless/SimInstance.php | 164 -
.../Twilio/Rest/Preview/Wireless/SimList.php | 149 -
.../Rest/Preview/Wireless/SimOptions.php | 370 --
.../Twilio/Rest/Preview/Wireless/SimPage.php | 37 -
public/twilio-php/Twilio/Rest/Pricing.php | 123 -
public/twilio-php/Twilio/Rest/Pricing/V1.php | 111 -
.../Pricing/V1/Messaging/CountryContext.php | 63 -
.../Pricing/V1/Messaging/CountryInstance.php | 107 -
.../Rest/Pricing/V1/Messaging/CountryList.php | 136 -
.../Rest/Pricing/V1/Messaging/CountryPage.php | 34 -
.../Rest/Pricing/V1/MessagingInstance.php | 71 -
.../Twilio/Rest/Pricing/V1/MessagingList.php | 89 -
.../Twilio/Rest/Pricing/V1/MessagingPage.php | 34 -
.../Pricing/V1/PhoneNumber/CountryContext.php | 63 -
.../V1/PhoneNumber/CountryInstance.php | 105 -
.../Pricing/V1/PhoneNumber/CountryList.php | 136 -
.../Pricing/V1/PhoneNumber/CountryPage.php | 34 -
.../Rest/Pricing/V1/PhoneNumberInstance.php | 71 -
.../Rest/Pricing/V1/PhoneNumberList.php | 89 -
.../Rest/Pricing/V1/PhoneNumberPage.php | 34 -
.../Rest/Pricing/V1/Voice/CountryContext.php | 63 -
.../Rest/Pricing/V1/Voice/CountryInstance.php | 107 -
.../Rest/Pricing/V1/Voice/CountryList.php | 136 -
.../Rest/Pricing/V1/Voice/CountryPage.php | 34 -
.../Rest/Pricing/V1/Voice/NumberContext.php | 63 -
.../Rest/Pricing/V1/Voice/NumberInstance.php | 109 -
.../Rest/Pricing/V1/Voice/NumberList.php | 47 -
.../Rest/Pricing/V1/Voice/NumberPage.php | 34 -
.../Twilio/Rest/Pricing/V1/VoiceInstance.php | 71 -
.../Twilio/Rest/Pricing/V1/VoiceList.php | 104 -
.../Twilio/Rest/Pricing/V1/VoicePage.php | 34 -
public/twilio-php/Twilio/Rest/Pricing/V2.php | 85 -
.../Rest/Pricing/V2/Voice/CountryContext.php | 63 -
.../Rest/Pricing/V2/Voice/CountryInstance.php | 107 -
.../Rest/Pricing/V2/Voice/CountryList.php | 136 -
.../Rest/Pricing/V2/Voice/CountryPage.php | 34 -
.../Rest/Pricing/V2/Voice/NumberContext.php | 67 -
.../Rest/Pricing/V2/Voice/NumberInstance.php | 115 -
.../Rest/Pricing/V2/Voice/NumberList.php | 47 -
.../Rest/Pricing/V2/Voice/NumberOptions.php | 58 -
.../Rest/Pricing/V2/Voice/NumberPage.php | 34 -
.../Twilio/Rest/Pricing/V2/VoiceInstance.php | 71 -
.../Twilio/Rest/Pricing/V2/VoiceList.php | 104 -
.../Twilio/Rest/Pricing/V2/VoicePage.php | 34 -
public/twilio-php/Twilio/Rest/Proxy.php | 103 -
public/twilio-php/Twilio/Rest/Proxy/V1.php | 86 -
.../Proxy/V1/Service/PhoneNumberContext.php | 111 -
.../Proxy/V1/Service/PhoneNumberInstance.php | 147 -
.../Rest/Proxy/V1/Service/PhoneNumberList.php | 168 -
.../Proxy/V1/Service/PhoneNumberOptions.php | 141 -
.../Rest/Proxy/V1/Service/PhoneNumberPage.php | 37 -
.../V1/Service/Session/InteractionContext.php | 84 -
.../Service/Session/InteractionInstance.php | 158 -
.../V1/Service/Session/InteractionList.php | 153 -
.../V1/Service/Session/InteractionOptions.php | 75 -
.../V1/Service/Session/InteractionPage.php | 42 -
.../Participant/MessageInteractionContext.php | 81 -
.../MessageInteractionInstance.php | 152 -
.../Participant/MessageInteractionList.php | 186 -
.../Participant/MessageInteractionOptions.php | 75 -
.../Participant/MessageInteractionPage.php | 43 -
.../V1/Service/Session/ParticipantContext.php | 142 -
.../Service/Session/ParticipantInstance.php | 157 -
.../V1/Service/Session/ParticipantList.php | 185 -
.../V1/Service/Session/ParticipantOptions.php | 135 -
.../V1/Service/Session/ParticipantPage.php | 42 -
.../Rest/Proxy/V1/Service/SessionContext.php | 195 -
.../Rest/Proxy/V1/Service/SessionInstance.php | 178 -
.../Rest/Proxy/V1/Service/SessionList.php | 177 -
.../Rest/Proxy/V1/Service/SessionOptions.php | 287 --
.../Rest/Proxy/V1/Service/SessionPage.php | 37 -
.../Proxy/V1/Service/ShortCodeContext.php | 111 -
.../Proxy/V1/Service/ShortCodeInstance.php | 145 -
.../Rest/Proxy/V1/Service/ShortCodeList.php | 160 -
.../Proxy/V1/Service/ShortCodeOptions.php | 64 -
.../Rest/Proxy/V1/Service/ShortCodePage.php | 37 -
.../Twilio/Rest/Proxy/V1/ServiceContext.php | 195 -
.../Twilio/Rest/Proxy/V1/ServiceInstance.php | 178 -
.../Twilio/Rest/Proxy/V1/ServiceList.php | 173 -
.../Twilio/Rest/Proxy/V1/ServiceOptions.php | 316 --
.../Twilio/Rest/Proxy/V1/ServicePage.php | 37 -
public/twilio-php/Twilio/Rest/Studio.php | 103 -
public/twilio-php/Twilio/Rest/Studio/V1.php | 86 -
.../Engagement/EngagementContextContext.php | 69 -
.../Engagement/EngagementContextInstance.php | 109 -
.../Flow/Engagement/EngagementContextList.php | 52 -
.../Flow/Engagement/EngagementContextPage.php | 39 -
.../Engagement/Step/StepContextContext.php | 75 -
.../Engagement/Step/StepContextInstance.php | 117 -
.../Flow/Engagement/Step/StepContextList.php | 58 -
.../Flow/Engagement/Step/StepContextPage.php | 40 -
.../Studio/V1/Flow/Engagement/StepContext.php | 130 -
.../V1/Flow/Engagement/StepInstance.php | 142 -
.../Studio/V1/Flow/Engagement/StepList.php | 143 -
.../Studio/V1/Flow/Engagement/StepPage.php | 39 -
.../Rest/Studio/V1/Flow/EngagementContext.php | 154 -
.../Studio/V1/Flow/EngagementInstance.php | 154 -
.../Rest/Studio/V1/Flow/EngagementList.php | 168 -
.../Rest/Studio/V1/Flow/EngagementOptions.php | 61 -
.../Rest/Studio/V1/Flow/EngagementPage.php | 34 -
.../Execution/ExecutionContextContext.php | 69 -
.../Execution/ExecutionContextInstance.php | 109 -
.../Flow/Execution/ExecutionContextList.php | 52 -
.../Flow/Execution/ExecutionContextPage.php | 39 -
.../ExecutionStepContextContext.php | 75 -
.../ExecutionStepContextInstance.php | 118 -
.../ExecutionStepContextList.php | 58 -
.../ExecutionStepContextPage.php | 40 -
.../Flow/Execution/ExecutionStepContext.php | 130 -
.../Flow/Execution/ExecutionStepInstance.php | 143 -
.../V1/Flow/Execution/ExecutionStepList.php | 143 -
.../V1/Flow/Execution/ExecutionStepPage.php | 39 -
.../Rest/Studio/V1/Flow/ExecutionContext.php | 158 -
.../Rest/Studio/V1/Flow/ExecutionInstance.php | 154 -
.../Rest/Studio/V1/Flow/ExecutionList.php | 168 -
.../Rest/Studio/V1/Flow/ExecutionOptions.php | 61 -
.../Rest/Studio/V1/Flow/ExecutionPage.php | 34 -
.../Twilio/Rest/Studio/V1/FlowContext.php | 144 -
.../Twilio/Rest/Studio/V1/FlowInstance.php | 144 -
.../Twilio/Rest/Studio/V1/FlowList.php | 136 -
.../Twilio/Rest/Studio/V1/FlowPage.php | 34 -
public/twilio-php/Twilio/Rest/Sync.php | 103 -
public/twilio-php/Twilio/Rest/Sync/V1.php | 86 -
.../Document/DocumentPermissionContext.php | 122 -
.../Document/DocumentPermissionInstance.php | 147 -
.../Document/DocumentPermissionList.php | 148 -
.../Document/DocumentPermissionPage.php | 42 -
.../Rest/Sync/V1/Service/DocumentContext.php | 171 -
.../Rest/Sync/V1/Service/DocumentInstance.php | 161 -
.../Rest/Sync/V1/Service/DocumentList.php | 169 -
.../Rest/Sync/V1/Service/DocumentOptions.php | 152 -
.../Rest/Sync/V1/Service/DocumentPage.php | 37 -
.../Service/SyncList/SyncListItemContext.php | 117 -
.../Service/SyncList/SyncListItemInstance.php | 156 -
.../V1/Service/SyncList/SyncListItemList.php | 187 -
.../Service/SyncList/SyncListItemOptions.php | 201 -
.../V1/Service/SyncList/SyncListItemPage.php | 42 -
.../SyncList/SyncListPermissionContext.php | 122 -
.../SyncList/SyncListPermissionInstance.php | 147 -
.../SyncList/SyncListPermissionList.php | 148 -
.../SyncList/SyncListPermissionPage.php | 42 -
.../Rest/Sync/V1/Service/SyncListContext.php | 188 -
.../Rest/Sync/V1/Service/SyncListInstance.php | 169 -
.../Rest/Sync/V1/Service/SyncListList.php | 164 -
.../Rest/Sync/V1/Service/SyncListOptions.php | 124 -
.../Rest/Sync/V1/Service/SyncListPage.php | 37 -
.../V1/Service/SyncMap/SyncMapItemContext.php | 117 -
.../Service/SyncMap/SyncMapItemInstance.php | 156 -
.../V1/Service/SyncMap/SyncMapItemList.php | 192 -
.../V1/Service/SyncMap/SyncMapItemOptions.php | 198 -
.../V1/Service/SyncMap/SyncMapItemPage.php | 42 -
.../SyncMap/SyncMapPermissionContext.php | 118 -
.../SyncMap/SyncMapPermissionInstance.php | 147 -
.../Service/SyncMap/SyncMapPermissionList.php | 147 -
.../Service/SyncMap/SyncMapPermissionPage.php | 42 -
.../Rest/Sync/V1/Service/SyncMapContext.php | 188 -
.../Rest/Sync/V1/Service/SyncMapInstance.php | 169 -
.../Rest/Sync/V1/Service/SyncMapList.php | 164 -
.../Rest/Sync/V1/Service/SyncMapOptions.php | 121 -
.../Rest/Sync/V1/Service/SyncMapPage.php | 37 -
.../SyncStream/StreamMessageInstance.php | 73 -
.../Service/SyncStream/StreamMessageList.php | 71 -
.../Service/SyncStream/StreamMessagePage.php | 42 -
.../Sync/V1/Service/SyncStreamContext.php | 166 -
.../Sync/V1/Service/SyncStreamInstance.php | 156 -
.../Rest/Sync/V1/Service/SyncStreamList.php | 163 -
.../Sync/V1/Service/SyncStreamOptions.php | 118 -
.../Rest/Sync/V1/Service/SyncStreamPage.php | 37 -
.../Twilio/Rest/Sync/V1/ServiceContext.php | 209 -
.../Twilio/Rest/Sync/V1/ServiceInstance.php | 182 -
.../Twilio/Rest/Sync/V1/ServiceList.php | 168 -
.../Twilio/Rest/Sync/V1/ServiceOptions.php | 224 --
.../Twilio/Rest/Sync/V1/ServicePage.php | 37 -
public/twilio-php/Twilio/Rest/Taskrouter.php | 103 -
.../twilio-php/Twilio/Rest/Taskrouter/V1.php | 86 -
.../V1/Workspace/ActivityContext.php | 107 -
.../V1/Workspace/ActivityInstance.php | 141 -
.../Taskrouter/V1/Workspace/ActivityList.php | 173 -
.../V1/Workspace/ActivityOptions.php | 170 -
.../Taskrouter/V1/Workspace/ActivityPage.php | 34 -
.../Taskrouter/V1/Workspace/EventContext.php | 69 -
.../Taskrouter/V1/Workspace/EventInstance.php | 131 -
.../Taskrouter/V1/Workspace/EventList.php | 152 -
.../Taskrouter/V1/Workspace/EventOptions.php | 179 -
.../Taskrouter/V1/Workspace/EventPage.php | 34 -
.../V1/Workspace/Task/ReservationContext.php | 153 -
.../V1/Workspace/Task/ReservationInstance.php | 144 -
.../V1/Workspace/Task/ReservationList.php | 150 -
.../V1/Workspace/Task/ReservationOptions.php | 897 -----
.../V1/Workspace/Task/ReservationPage.php | 39 -
.../V1/Workspace/TaskChannelContext.php | 69 -
.../V1/Workspace/TaskChannelInstance.php | 118 -
.../V1/Workspace/TaskChannelList.php | 137 -
.../V1/Workspace/TaskChannelPage.php | 34 -
.../Taskrouter/V1/Workspace/TaskContext.php | 171 -
.../Taskrouter/V1/Workspace/TaskInstance.php | 174 -
.../Rest/Taskrouter/V1/Workspace/TaskList.php | 180 -
.../Taskrouter/V1/Workspace/TaskOptions.php | 437 --
.../Rest/Taskrouter/V1/Workspace/TaskPage.php | 34 -
.../TaskQueueCumulativeStatisticsContext.php | 81 -
.../TaskQueueCumulativeStatisticsInstance.php | 146 -
.../TaskQueueCumulativeStatisticsList.php | 52 -
.../TaskQueueCumulativeStatisticsOptions.php | 126 -
.../TaskQueueCumulativeStatisticsPage.php | 39 -
.../TaskQueueRealTimeStatisticsContext.php | 74 -
.../TaskQueueRealTimeStatisticsInstance.php | 125 -
.../TaskQueueRealTimeStatisticsList.php | 52 -
.../TaskQueueRealTimeStatisticsOptions.php | 61 -
.../TaskQueueRealTimeStatisticsPage.php | 39 -
.../TaskQueue/TaskQueueStatisticsContext.php | 80 -
.../TaskQueue/TaskQueueStatisticsInstance.php | 114 -
.../TaskQueue/TaskQueueStatisticsList.php | 52 -
.../TaskQueue/TaskQueueStatisticsOptions.php | 126 -
.../TaskQueue/TaskQueueStatisticsPage.php | 39 -
.../TaskQueuesStatisticsInstance.php | 76 -
.../TaskQueue/TaskQueuesStatisticsList.php | 141 -
.../TaskQueue/TaskQueuesStatisticsOptions.php | 143 -
.../TaskQueue/TaskQueuesStatisticsPage.php | 34 -
.../V1/Workspace/TaskQueueContext.php | 214 -
.../V1/Workspace/TaskQueueInstance.php | 185 -
.../Taskrouter/V1/Workspace/TaskQueueList.php | 226 --
.../V1/Workspace/TaskQueueOptions.php | 361 --
.../Taskrouter/V1/Workspace/TaskQueuePage.php | 34 -
.../Workspace/Worker/ReservationContext.php | 151 -
.../Workspace/Worker/ReservationInstance.php | 140 -
.../V1/Workspace/Worker/ReservationList.php | 149 -
.../Workspace/Worker/ReservationOptions.php | 788 ----
.../V1/Workspace/Worker/ReservationPage.php | 39 -
.../Workspace/Worker/WorkerChannelContext.php | 104 -
.../Worker/WorkerChannelInstance.php | 146 -
.../V1/Workspace/Worker/WorkerChannelList.php | 145 -
.../Workspace/Worker/WorkerChannelOptions.php | 75 -
.../V1/Workspace/Worker/WorkerChannelPage.php | 39 -
.../Worker/WorkerStatisticsContext.php | 79 -
.../Worker/WorkerStatisticsInstance.php | 111 -
.../Workspace/Worker/WorkerStatisticsList.php | 52 -
.../Worker/WorkerStatisticsOptions.php | 103 -
.../Workspace/Worker/WorkerStatisticsPage.php | 39 -
.../WorkersCumulativeStatisticsContext.php | 78 -
.../WorkersCumulativeStatisticsInstance.php | 126 -
.../WorkersCumulativeStatisticsList.php | 47 -
.../WorkersCumulativeStatisticsOptions.php | 103 -
.../WorkersCumulativeStatisticsPage.php | 38 -
.../WorkersRealTimeStatisticsContext.php | 72 -
.../WorkersRealTimeStatisticsInstance.php | 111 -
.../Worker/WorkersRealTimeStatisticsList.php | 47 -
.../WorkersRealTimeStatisticsOptions.php | 58 -
.../Worker/WorkersRealTimeStatisticsPage.php | 38 -
.../Worker/WorkersStatisticsContext.php | 76 -
.../Worker/WorkersStatisticsInstance.php | 107 -
.../Worker/WorkersStatisticsList.php | 48 -
.../Worker/WorkersStatisticsOptions.php | 151 -
.../Worker/WorkersStatisticsPage.php | 34 -
.../Taskrouter/V1/Workspace/WorkerContext.php | 251 --
.../V1/Workspace/WorkerInstance.php | 201 -
.../Taskrouter/V1/Workspace/WorkerList.php | 230 --
.../Taskrouter/V1/Workspace/WorkerOptions.php | 288 --
.../Taskrouter/V1/Workspace/WorkerPage.php | 34 -
.../WorkflowCumulativeStatisticsContext.php | 81 -
.../WorkflowCumulativeStatisticsInstance.php | 148 -
.../WorkflowCumulativeStatisticsList.php | 52 -
.../WorkflowCumulativeStatisticsOptions.php | 126 -
.../WorkflowCumulativeStatisticsPage.php | 39 -
.../WorkflowRealTimeStatisticsContext.php | 74 -
.../WorkflowRealTimeStatisticsInstance.php | 119 -
.../WorkflowRealTimeStatisticsList.php | 52 -
.../WorkflowRealTimeStatisticsOptions.php | 61 -
.../WorkflowRealTimeStatisticsPage.php | 39 -
.../Workflow/WorkflowStatisticsContext.php | 80 -
.../Workflow/WorkflowStatisticsInstance.php | 114 -
.../Workflow/WorkflowStatisticsList.php | 52 -
.../Workflow/WorkflowStatisticsOptions.php | 126 -
.../Workflow/WorkflowStatisticsPage.php | 39 -
.../V1/Workspace/WorkflowContext.php | 213 -
.../V1/Workspace/WorkflowInstance.php | 182 -
.../Taskrouter/V1/Workspace/WorkflowList.php | 176 -
.../V1/Workspace/WorkflowOptions.php | 282 --
.../Taskrouter/V1/Workspace/WorkflowPage.php | 34 -
.../WorkspaceCumulativeStatisticsContext.php | 79 -
.../WorkspaceCumulativeStatisticsInstance.php | 144 -
.../WorkspaceCumulativeStatisticsList.php | 47 -
.../WorkspaceCumulativeStatisticsOptions.php | 126 -
.../WorkspaceCumulativeStatisticsPage.php | 38 -
.../WorkspaceRealTimeStatisticsContext.php | 72 -
.../WorkspaceRealTimeStatisticsInstance.php | 119 -
.../WorkspaceRealTimeStatisticsList.php | 47 -
.../WorkspaceRealTimeStatisticsOptions.php | 61 -
.../WorkspaceRealTimeStatisticsPage.php | 38 -
.../Workspace/WorkspaceStatisticsContext.php | 74 -
.../Workspace/WorkspaceStatisticsInstance.php | 106 -
.../V1/Workspace/WorkspaceStatisticsList.php | 47 -
.../Workspace/WorkspaceStatisticsOptions.php | 126 -
.../V1/Workspace/WorkspaceStatisticsPage.php | 34 -
.../Rest/Taskrouter/V1/WorkspaceContext.php | 318 --
.../Rest/Taskrouter/V1/WorkspaceInstance.php | 249 --
.../Rest/Taskrouter/V1/WorkspaceList.php | 173 -
.../Rest/Taskrouter/V1/WorkspaceOptions.php | 338 --
.../Rest/Taskrouter/V1/WorkspacePage.php | 34 -
public/twilio-php/Twilio/Rest/Trunking.php | 103 -
public/twilio-php/Twilio/Rest/Trunking/V1.php | 86 -
.../V1/Trunk/CredentialListContext.php | 79 -
.../V1/Trunk/CredentialListInstance.php | 126 -
.../Trunking/V1/Trunk/CredentialListList.php | 161 -
.../Trunking/V1/Trunk/CredentialListPage.php | 34 -
.../V1/Trunk/IpAccessControlListContext.php | 79 -
.../V1/Trunk/IpAccessControlListInstance.php | 126 -
.../V1/Trunk/IpAccessControlListList.php | 160 -
.../V1/Trunk/IpAccessControlListPage.php | 34 -
.../V1/Trunk/OriginationUrlContext.php | 114 -
.../V1/Trunk/OriginationUrlInstance.php | 147 -
.../Trunking/V1/Trunk/OriginationUrlList.php | 173 -
.../V1/Trunk/OriginationUrlOptions.php | 126 -
.../Trunking/V1/Trunk/OriginationUrlPage.php | 34 -
.../Trunking/V1/Trunk/PhoneNumberContext.php | 79 -
.../Trunking/V1/Trunk/PhoneNumberInstance.php | 163 -
.../Trunking/V1/Trunk/PhoneNumberList.php | 158 -
.../Trunking/V1/Trunk/PhoneNumberPage.php | 34 -
.../Twilio/Rest/Trunking/V1/TrunkContext.php | 210 -
.../Twilio/Rest/Trunking/V1/TrunkInstance.php | 188 -
.../Twilio/Rest/Trunking/V1/TrunkList.php | 168 -
.../Twilio/Rest/Trunking/V1/TrunkOptions.php | 299 --
.../Twilio/Rest/Trunking/V1/TrunkPage.php | 34 -
public/twilio-php/Twilio/Rest/Verify.php | 103 -
public/twilio-php/Twilio/Rest/Verify/V1.php | 86 -
.../V1/Service/VerificationCheckInstance.php | 87 -
.../V1/Service/VerificationCheckList.php | 68 -
.../V1/Service/VerificationCheckOptions.php | 61 -
.../V1/Service/VerificationCheckPage.php | 37 -
.../V1/Service/VerificationInstance.php | 87 -
.../Verify/V1/Service/VerificationList.php | 75 -
.../Verify/V1/Service/VerificationOptions.php | 89 -
.../Verify/V1/Service/VerificationPage.php | 37 -
.../Twilio/Rest/Verify/V1/ServiceContext.php | 172 -
.../Twilio/Rest/Verify/V1/ServiceInstance.php | 159 -
.../Twilio/Rest/Verify/V1/ServiceList.php | 168 -
.../Twilio/Rest/Verify/V1/ServiceOptions.php | 152 -
.../Twilio/Rest/Verify/V1/ServicePage.php | 37 -
public/twilio-php/Twilio/Rest/Video.php | 190 -
public/twilio-php/Twilio/Rest/Video/V1.php | 154 -
.../Rest/Video/V1/CompositionContext.php | 77 -
.../Rest/Video/V1/CompositionHookContext.php | 114 -
.../Rest/Video/V1/CompositionHookInstance.php | 153 -
.../Rest/Video/V1/CompositionHookList.php | 184 -
.../Rest/Video/V1/CompositionHookOptions.php | 457 ---
.../Rest/Video/V1/CompositionHookPage.php | 37 -
.../Rest/Video/V1/CompositionInstance.php | 145 -
.../Twilio/Rest/Video/V1/CompositionList.php | 182 -
.../Rest/Video/V1/CompositionOptions.php | 296 --
.../Twilio/Rest/Video/V1/CompositionPage.php | 37 -
.../Video/V1/CompositionSettingsContext.php | 98 -
.../Video/V1/CompositionSettingsInstance.php | 126 -
.../Rest/Video/V1/CompositionSettingsList.php | 49 -
.../Video/V1/CompositionSettingsOptions.php | 141 -
.../Rest/Video/V1/CompositionSettingsPage.php | 37 -
.../Twilio/Rest/Video/V1/RecordingContext.php | 74 -
.../Rest/Video/V1/RecordingInstance.php | 137 -
.../Twilio/Rest/Video/V1/RecordingList.php | 148 -
.../Twilio/Rest/Video/V1/RecordingOptions.php | 120 -
.../Twilio/Rest/Video/V1/RecordingPage.php | 34 -
.../Video/V1/RecordingSettingsContext.php | 98 -
.../Video/V1/RecordingSettingsInstance.php | 126 -
.../Rest/Video/V1/RecordingSettingsList.php | 49 -
.../Video/V1/RecordingSettingsOptions.php | 141 -
.../Rest/Video/V1/RecordingSettingsPage.php | 37 -
.../Participant/PublishedTrackContext.php | 73 -
.../Participant/PublishedTrackInstance.php | 129 -
.../Room/Participant/PublishedTrackList.php | 145 -
.../Room/Participant/PublishedTrackPage.php | 39 -
.../Participant/SubscribedTrackInstance.php | 86 -
.../Room/Participant/SubscribedTrackList.php | 171 -
.../Participant/SubscribedTrackOptions.php | 199 -
.../Room/Participant/SubscribedTrackPage.php | 39 -
.../Rest/Video/V1/Room/ParticipantContext.php | 175 -
.../Video/V1/Room/ParticipantInstance.php | 159 -
.../Rest/Video/V1/Room/ParticipantList.php | 148 -
.../Rest/Video/V1/Room/ParticipantOptions.php | 158 -
.../Rest/Video/V1/Room/ParticipantPage.php | 34 -
.../Video/V1/Room/RoomRecordingContext.php | 79 -
.../Video/V1/Room/RoomRecordingInstance.php | 143 -
.../Rest/Video/V1/Room/RoomRecordingList.php | 147 -
.../Video/V1/Room/RoomRecordingOptions.php | 100 -
.../Rest/Video/V1/Room/RoomRecordingPage.php | 34 -
.../Twilio/Rest/Video/V1/RoomContext.php | 155 -
.../Twilio/Rest/Video/V1/RoomInstance.php | 164 -
.../Twilio/Rest/Video/V1/RoomList.php | 179 -
.../Twilio/Rest/Video/V1/RoomOptions.php | 273 --
.../Twilio/Rest/Video/V1/RoomPage.php | 34 -
public/twilio-php/Twilio/Rest/Voice.php | 94 -
public/twilio-php/Twilio/Rest/Voice/V1.php | 85 -
.../BulkCountryUpdateInstance.php | 71 -
.../VoicePermission/BulkCountryUpdateList.php | 63 -
.../VoicePermission/BulkCountryUpdatePage.php | 37 -
.../Country/HighriskSpecialPrefixInstance.php | 68 -
.../Country/HighriskSpecialPrefixList.php | 132 -
.../Country/HighriskSpecialPrefixPage.php | 37 -
.../V1/VoicePermission/CountryContext.php | 121 -
.../V1/VoicePermission/CountryInstance.php | 127 -
.../Voice/V1/VoicePermission/CountryList.php | 151 -
.../V1/VoicePermission/CountryOptions.php | 167 -
.../Voice/V1/VoicePermission/CountryPage.php | 37 -
.../Rest/Voice/V1/VoicePermissionInstance.php | 62 -
.../Rest/Voice/V1/VoicePermissionList.php | 105 -
.../Rest/Voice/V1/VoicePermissionPage.php | 37 -
public/twilio-php/Twilio/Rest/Wireless.php | 137 -
public/twilio-php/Twilio/Rest/Wireless/V1.php | 114 -
.../Rest/Wireless/V1/CommandContext.php | 63 -
.../Rest/Wireless/V1/CommandInstance.php | 120 -
.../Twilio/Rest/Wireless/V1/CommandList.php | 178 -
.../Rest/Wireless/V1/CommandOptions.php | 234 --
.../Twilio/Rest/Wireless/V1/CommandPage.php | 34 -
.../Rest/Wireless/V1/RatePlanContext.php | 99 -
.../Rest/Wireless/V1/RatePlanInstance.php | 150 -
.../Twilio/Rest/Wireless/V1/RatePlanList.php | 172 -
.../Rest/Wireless/V1/RatePlanOptions.php | 309 --
.../Twilio/Rest/Wireless/V1/RatePlanPage.php | 34 -
.../Wireless/V1/Sim/DataSessionInstance.php | 98 -
.../Rest/Wireless/V1/Sim/DataSessionList.php | 136 -
.../Wireless/V1/Sim/DataSessionOptions.php | 72 -
.../Rest/Wireless/V1/Sim/DataSessionPage.php | 34 -
.../Wireless/V1/Sim/UsageRecordInstance.php | 77 -
.../Rest/Wireless/V1/Sim/UsageRecordList.php | 137 -
.../Wireless/V1/Sim/UsageRecordOptions.php | 95 -
.../Rest/Wireless/V1/Sim/UsageRecordPage.php | 34 -
.../Twilio/Rest/Wireless/V1/SimContext.php | 172 -
.../Twilio/Rest/Wireless/V1/SimInstance.php | 174 -
.../Twilio/Rest/Wireless/V1/SimList.php | 146 -
.../Twilio/Rest/Wireless/V1/SimOptions.php | 421 --
.../Twilio/Rest/Wireless/V1/SimPage.php | 34 -
.../Twilio/Security/RequestValidator.php | 82 -
public/twilio-php/Twilio/Serialize.php | 88 -
public/twilio-php/Twilio/Stream.php | 103 -
.../TaskRouter/WorkflowConfiguration.php | 50 -
.../Twilio/TaskRouter/WorkflowRule.php | 32 -
.../Twilio/TaskRouter/WorkflowRuleTarget.php | 39 -
.../twilio-php/Twilio/TwiML/Fax/Receive.php | 43 -
.../twilio-php/Twilio/TwiML/FaxResponse.php | 29 -
.../twilio-php/Twilio/TwiML/GenericNode.php | 18 -
.../Twilio/TwiML/Messaging/Body.php | 23 -
.../Twilio/TwiML/Messaging/Media.php | 23 -
.../Twilio/TwiML/Messaging/Message.php | 95 -
.../Twilio/TwiML/Messaging/Redirect.php | 34 -
.../Twilio/TwiML/MessagingResponse.php | 41 -
public/twilio-php/Twilio/TwiML/TwiML.php | 136 -
public/twilio-php/Twilio/TwiML/Video/Room.php | 23 -
.../Twilio/TwiML/Voice/Autopilot.php | 23 -
.../twilio-php/Twilio/TwiML/Voice/Client.php | 95 -
.../Twilio/TwiML/Voice/Conference.php | 206 -
.../twilio-php/Twilio/TwiML/Voice/Connect.php | 64 -
public/twilio-php/Twilio/TwiML/Voice/Dial.php | 225 --
public/twilio-php/Twilio/TwiML/Voice/Echo.php | 21 -
.../twilio-php/Twilio/TwiML/Voice/Enqueue.php | 85 -
.../twilio-php/Twilio/TwiML/Voice/Gather.php | 207 -
.../twilio-php/Twilio/TwiML/Voice/Hangup.php | 21 -
.../Twilio/TwiML/Voice/Identity.php | 23 -
.../twilio-php/Twilio/TwiML/Voice/Leave.php | 21 -
.../twilio-php/Twilio/TwiML/Voice/Number.php | 84 -
.../Twilio/TwiML/Voice/Parameter.php | 43 -
.../twilio-php/Twilio/TwiML/Voice/Pause.php | 33 -
public/twilio-php/Twilio/TwiML/Voice/Pay.php | 199 -
public/twilio-php/Twilio/TwiML/Voice/Play.php | 44 -
.../twilio-php/Twilio/TwiML/Voice/Prompt.php | 95 -
.../twilio-php/Twilio/TwiML/Voice/Queue.php | 64 -
.../twilio-php/Twilio/TwiML/Voice/Record.php | 133 -
.../Twilio/TwiML/Voice/Redirect.php | 34 -
.../twilio-php/Twilio/TwiML/Voice/Reject.php | 33 -
public/twilio-php/Twilio/TwiML/Voice/Room.php | 35 -
public/twilio-php/Twilio/TwiML/Voice/Say.php | 161 -
public/twilio-php/Twilio/TwiML/Voice/Sim.php | 23 -
public/twilio-php/Twilio/TwiML/Voice/Sip.php | 94 -
public/twilio-php/Twilio/TwiML/Voice/Sms.php | 74 -
.../Twilio/TwiML/Voice/SsmlBreak.php | 44 -
.../Twilio/TwiML/Voice/SsmlEmphasis.php | 34 -
.../Twilio/TwiML/Voice/SsmlLang.php | 34 -
.../twilio-php/Twilio/TwiML/Voice/SsmlP.php | 23 -
.../Twilio/TwiML/Voice/SsmlPhoneme.php | 44 -
.../Twilio/TwiML/Voice/SsmlProsody.php | 57 -
.../twilio-php/Twilio/TwiML/Voice/SsmlS.php | 23 -
.../Twilio/TwiML/Voice/SsmlSayAs.php | 46 -
.../twilio-php/Twilio/TwiML/Voice/SsmlSub.php | 35 -
.../twilio-php/Twilio/TwiML/Voice/SsmlW.php | 35 -
public/twilio-php/Twilio/TwiML/Voice/Task.php | 44 -
.../twilio-php/Twilio/TwiML/VoiceResponse.php | 193 -
public/twilio-php/Twilio/Twiml.php | 141 -
public/twilio-php/Twilio/Values.php | 97 -
public/twilio-php/Twilio/Version.php | 235 --
public/twilio-php/Twilio/VersionInfo.php | 15 -
public/twilio-php/Twilio/autoload.php | 146 -
public/twilio-php/composer.json | 26 -
public/twilio-php/composer.lock | 3524 -----------------
1448 files changed, 14 insertions(+), 178740 deletions(-)
delete mode 100644 public/twilio-php/Dockerfile
delete mode 100644 public/twilio-php/Services/Twilio.php
delete mode 100644 public/twilio-php/Twilio/Deserialize.php
delete mode 100644 public/twilio-php/Twilio/Domain.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/ConfigurationException.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/DeserializeException.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/EnvironmentException.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/HttpException.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/RestException.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/TwilioException.php
delete mode 100644 public/twilio-php/Twilio/Exceptions/TwimlException.php
delete mode 100644 public/twilio-php/Twilio/Http/Client.php
delete mode 100644 public/twilio-php/Twilio/Http/CurlClient.php
delete mode 100644 public/twilio-php/Twilio/Http/Response.php
delete mode 100644 public/twilio-php/Twilio/InstanceContext.php
delete mode 100644 public/twilio-php/Twilio/InstanceResource.php
delete mode 100644 public/twilio-php/Twilio/Jwt/AccessToken.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Client/ScopeURI.php
delete mode 100644 public/twilio-php/Twilio/Jwt/ClientToken.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/ChatGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/ConversationsGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/Grant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/IpMessagingGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/SyncGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/TaskRouterGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/VideoGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/Grants/VoiceGrant.php
delete mode 100644 public/twilio-php/Twilio/Jwt/JWT.php
delete mode 100644 public/twilio-php/Twilio/Jwt/TaskRouter/CapabilityToken.php
delete mode 100644 public/twilio-php/Twilio/Jwt/TaskRouter/Policy.php
delete mode 100644 public/twilio-php/Twilio/Jwt/TaskRouter/TaskQueueCapability.php
delete mode 100644 public/twilio-php/Twilio/Jwt/TaskRouter/WorkerCapability.php
delete mode 100644 public/twilio-php/Twilio/Jwt/TaskRouter/WorkspaceCapability.php
delete mode 100644 public/twilio-php/Twilio/ListResource.php
delete mode 100644 public/twilio-php/Twilio/Options.php
delete mode 100644 public/twilio-php/Twilio/Page.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Accounts/V1/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachinePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobilePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/BalancePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/CallContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/CallInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/CallList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/CallOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/CallPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferencePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobilePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/MessagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/QueuePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SipInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SipList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/SipPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/UsagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/AccountContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/AccountInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/AccountList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/AccountOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Api/V2010/AccountPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/FormContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/FormInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/FormList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/FormPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Authy/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialoguePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValuePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SamplePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/CredentialContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/CredentialOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InvitePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/RolePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/UserContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/UserInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/UserList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/UserOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/Service/UserPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/CredentialContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/CredentialOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InvitePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/RolePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/UserContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/UserInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/UserList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/UserOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/Service/UserPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Chat/V2/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Client.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/FaxContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/FaxInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/FaxList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/FaxOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Fax/V1/FaxPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InvitePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RolePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InvitePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RolePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/IpMessaging/V2/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Messaging/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/AlertContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/AlertInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/AlertList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/AlertOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/AlertPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/EventContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/EventInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/EventList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/EventOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Monitor/V1/EventPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/CredentialContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/CredentialInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/CredentialList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/CredentialOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/CredentialPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Notify/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Authy/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificatePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DevicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Sync/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialoguePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValuePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SamplePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/AssistantContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/AssistantInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/AssistantList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/AssistantOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Understand/AssistantPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/CommandContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/CommandInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/CommandList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/CommandOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/CommandPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/SimContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/SimInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/SimList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/SimOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Preview/Wireless/SimPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/MessagingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/MessagingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/MessagingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/VoiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/VoiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V1/VoicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/VoiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/VoiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Pricing/V2/VoicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Proxy/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/FlowContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/FlowInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/FlowList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Studio/V1/FlowPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessagePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Sync/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueuePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspacePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/TrunkContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/TrunkInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/TrunkList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/TrunkOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Trunking/V1/TrunkPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/ServiceContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/ServiceInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/ServiceList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/ServiceOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Verify/V1/ServicePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionHookContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionHookInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionHookList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionHookOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionHookPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RoomContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RoomInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RoomList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RoomOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Video/V1/RoomPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdatePage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/CommandContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/CommandInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/CommandList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/CommandOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/CommandPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordPage.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/SimContext.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/SimInstance.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/SimList.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/SimOptions.php
delete mode 100644 public/twilio-php/Twilio/Rest/Wireless/V1/SimPage.php
delete mode 100644 public/twilio-php/Twilio/Security/RequestValidator.php
delete mode 100644 public/twilio-php/Twilio/Serialize.php
delete mode 100644 public/twilio-php/Twilio/Stream.php
delete mode 100644 public/twilio-php/Twilio/TaskRouter/WorkflowConfiguration.php
delete mode 100644 public/twilio-php/Twilio/TaskRouter/WorkflowRule.php
delete mode 100644 public/twilio-php/Twilio/TaskRouter/WorkflowRuleTarget.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Fax/Receive.php
delete mode 100644 public/twilio-php/Twilio/TwiML/FaxResponse.php
delete mode 100644 public/twilio-php/Twilio/TwiML/GenericNode.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Messaging/Body.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Messaging/Media.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Messaging/Message.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Messaging/Redirect.php
delete mode 100644 public/twilio-php/Twilio/TwiML/MessagingResponse.php
delete mode 100644 public/twilio-php/Twilio/TwiML/TwiML.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Video/Room.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Autopilot.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Client.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Conference.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Connect.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Dial.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Echo.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Enqueue.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Gather.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Hangup.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Identity.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Leave.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Number.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Parameter.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Pause.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Pay.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Play.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Prompt.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Queue.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Record.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Redirect.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Reject.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Room.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Say.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Sim.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Sip.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Sms.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlBreak.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlEmphasis.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlLang.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlP.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlPhoneme.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlProsody.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlS.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlSayAs.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlSub.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/SsmlW.php
delete mode 100644 public/twilio-php/Twilio/TwiML/Voice/Task.php
delete mode 100644 public/twilio-php/Twilio/TwiML/VoiceResponse.php
delete mode 100644 public/twilio-php/Twilio/Twiml.php
delete mode 100644 public/twilio-php/Twilio/Values.php
delete mode 100644 public/twilio-php/Twilio/Version.php
delete mode 100644 public/twilio-php/Twilio/VersionInfo.php
delete mode 100644 public/twilio-php/Twilio/autoload.php
delete mode 100644 public/twilio-php/composer.json
delete mode 100644 public/twilio-php/composer.lock
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c89537c..1a5f7d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -156,4 +156,11 @@ UPDATED: Updated shortcode Social Share for Twitter
UPDATED: Remove bug in Import/Export
## 2.0.1.4 21-05-2022
-FIX: CSS Fixes
\ No newline at end of file
+FIX: CSS Fixes
+
+## 2.0.1.5 07-10-2022
+FIX: Bug in Tempate Edit
+
+
+## 2.1.0.0 20-05-2023
+FIX: Security FIX
\ No newline at end of file
diff --git a/admin/class-template-edit.php b/admin/class-template-edit.php
index 48c3924..c6d199b 100644
--- a/admin/class-template-edit.php
+++ b/admin/class-template-edit.php
@@ -967,8 +967,10 @@ private function save()
/******/
foreach ($custom_templates as $key => $array) {
foreach ($array['component'] as $k => $v) {
- if(array_key_exists($k, $data['component'])){
- unset($custom_templates[$key]['component'][$k]);
+ if(array_key_exists('component', $data)){
+ if(array_key_exists($k, $data['component'])){
+ unset($custom_templates[$key]['component'][$k]);
+ }
}
}
}
diff --git a/aione-app-builder.php b/aione-app-builder.php
index bd3b803..60d8089 100644
--- a/aione-app-builder.php
+++ b/aione-app-builder.php
@@ -10,7 +10,7 @@
* Plugin Name: Aione App Builder
* Plugin URI: http://oxosolutions.com/products/wordpress-plugins/aione-app-builder/
* Description: Easily create custom post types and taxonomy and connect everything together.
- * Version: 2.0.1.4
+ * Version: 2.1.0.0
* Author: OXO Solutions®
* Author URI: https://oxosolutions.com/
* License: GPL-2.0+
@@ -35,7 +35,7 @@
define( 'AIONE_PLUGIN_NAME', 'Aione App Builder' );
}
if ( ! defined( 'AIONE_VERSION' ) ) {
- define( 'AIONE_VERSION', '2.0.0.0' );
+ define( 'AIONE_VERSION', '2.1.0.0' );
}
/*
diff --git a/includes/class-aione-app-builder.php b/includes/class-aione-app-builder.php
index 401e418..57345f3 100644
--- a/includes/class-aione-app-builder.php
+++ b/includes/class-aione-app-builder.php
@@ -139,10 +139,6 @@ private function load_dependencies() {
* side of the site.
*/
- // Require the bundled autoload file - the path may need to change
- // based on where you downloaded and unzipped the SDK
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/twilio-php/Twilio/autoload.php';
-
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-aione-app-builder-public.php';
if (!class_exists('ReallySimpleCaptcha')) {
diff --git a/public/twilio-php/Dockerfile b/public/twilio-php/Dockerfile
deleted file mode 100644
index d9e4968..0000000
--- a/public/twilio-php/Dockerfile
+++ /dev/null
@@ -1,12 +0,0 @@
-FROM php:5.6
-
-RUN mkdir /twilio
-WORKDIR /twilio
-
-COPY Twilio ./Twilio
-COPY Services ./Services
-COPY composer* ./
-
-RUN curl --silent --show-error https://getcomposer.org/installer | php
-RUN mv composer.phar /usr/local/bin/composer
-RUN composer install --no-dev
diff --git a/public/twilio-php/Services/Twilio.php b/public/twilio-php/Services/Twilio.php
deleted file mode 100644
index 152e519..0000000
--- a/public/twilio-php/Services/Twilio.php
+++ /dev/null
@@ -1,74 +0,0 @@
-client = $client;
- $this->baseUrl = '';
- }
-
- /**
- * Translate version relative URIs into absolute URLs
- *
- * @param string $uri Version relative URI
- * @return string Absolute URL for this domain
- */
- public function absoluteUrl($uri) {
- return implode('/', array(trim($this->baseUrl, '/'), trim($uri, '/')));
- }
-
- /**
- * Make an HTTP request to the domain
- *
- * @param string $method HTTP Method to make the request with
- * @param string $uri Relative uri to make a request to
- * @param array $params Query string arguments
- * @param array $data Post form data
- * @param array $headers HTTP headers to send with the request
- * @param string $user User to authenticate as
- * @param string $password Password
- * @param null $timeout Request timeout
- * @return \Twilio\Http\Response the response for the request
- */
- public function request($method, $uri, $params = array(), $data = array(),
- $headers = array(), $user = null, $password=null,
- $timeout=null) {
- $url = $this->absoluteUrl($uri);
- return $this->client->request(
- $method,
- $url,
- $params,
- $data,
- $headers,
- $user,
- $password,
- $timeout
- );
- }
-
- /**
- * @return \Twilio\Rest\Client
- */
- public function getClient() {
- return $this->client;
- }
-
- public function __toString() {
- return '[Domain]';
- }
-}
diff --git a/public/twilio-php/Twilio/Exceptions/ConfigurationException.php b/public/twilio-php/Twilio/Exceptions/ConfigurationException.php
deleted file mode 100644
index 985cc4d..0000000
--- a/public/twilio-php/Twilio/Exceptions/ConfigurationException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-statusCode = $statusCode;
- parent::__construct($message, $code);
- }
-
- /**
- * Get the HTTP Status Code of the RestException
- * @return int HTTP Status Code
- */
- public function getStatusCode() {
- return $this->statusCode;
- }
-
-
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Exceptions/TwilioException.php b/public/twilio-php/Twilio/Exceptions/TwilioException.php
deleted file mode 100644
index fc0a53b..0000000
--- a/public/twilio-php/Twilio/Exceptions/TwilioException.php
+++ /dev/null
@@ -1,9 +0,0 @@
-curlOptions = $options;
- $this->debugHttp = getenv('DEBUG_HTTP_TRAFFIC') === 'true';
- }
-
- public function request($method, $url, $params = array(), $data = array(),
- $headers = array(), $user = null, $password = null,
- $timeout = null) {
- $options = $this->options($method, $url, $params, $data, $headers,
- $user, $password, $timeout);
-
- $this->lastRequest = $options;
- $this->lastResponse = null;
-
- try {
- if (!$curl = curl_init()) {
- throw new EnvironmentException('Unable to initialize cURL');
- }
-
- if (!curl_setopt_array($curl, $options)) {
- throw new EnvironmentException(curl_error($curl));
- }
-
- if (!$response = curl_exec($curl)) {
- throw new EnvironmentException(curl_error($curl));
- }
-
- $parts = explode("\r\n\r\n", $response, 3);
- list($head, $body) = ($parts[0] == 'HTTP/1.1 100 Continue')
- ? array($parts[1], $parts[2])
- : array($parts[0], $parts[1]);
-
- if ($this->debugHttp) {
- $u = parse_url($url);
- $hdrLine = $method . ' ' . $u['path'];
- if (isset($u['query']) && strlen($u['query']) > 0 ) {
- $hdrLine = $hdrLine . '?' . $u['query'];
- }
- error_log($hdrLine);
- foreach ($headers as $key => $value) {
- error_log("$key: $value");
- }
- if ($method === 'POST') {
- error_log("\n" . $options[CURLOPT_POSTFIELDS] . "\n");
- }
- }
- $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
-
- $responseHeaders = array();
- $headerLines = explode("\r\n", $head);
- array_shift($headerLines);
- foreach ($headerLines as $line) {
- list($key, $value) = explode(':', $line, 2);
- $responseHeaders[$key] = $value;
- }
-
- curl_close($curl);
-
- if (isset($buffer) && is_resource($buffer)) {
- fclose($buffer);
- }
-
- if ($this->debugHttp) {
- error_log("HTTP/1.1 $statusCode");
- foreach ($responseHeaders as $key => $value) {
- error_log("$key: $value");
- }
- error_log("\n$body");
- }
-
- $this->lastResponse = new Response($statusCode, $body, $responseHeaders);
-
- return $this->lastResponse;
- } catch (\ErrorException $e) {
- if (isset($curl) && is_resource($curl)) {
- curl_close($curl);
- }
-
- if (isset($buffer) && is_resource($buffer)) {
- fclose($buffer);
- }
-
- throw $e;
- }
- }
-
- public function options($method, $url, $params = array(), $data = array(),
- $headers = array(), $user = null, $password = null,
- $timeout = null) {
-
- $timeout = is_null($timeout)
- ? self::DEFAULT_TIMEOUT
- : $timeout;
- $options = $this->curlOptions + array(
- CURLOPT_URL => $url,
- CURLOPT_HEADER => true,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_INFILESIZE => Null,
- CURLOPT_HTTPHEADER => array(),
- CURLOPT_TIMEOUT => $timeout,
- );
-
- foreach ($headers as $key => $value) {
- $options[CURLOPT_HTTPHEADER][] = "$key: $value";
- }
-
- if ($user && $password) {
- $options[CURLOPT_HTTPHEADER][] = 'Authorization: Basic ' . base64_encode("$user:$password");
- }
-
- $body = $this->buildQuery($params);
- if ($body) {
- $options[CURLOPT_URL] .= '?' . $body;
- }
-
- switch (strtolower(trim($method))) {
- case 'get':
- $options[CURLOPT_HTTPGET] = true;
- break;
- case 'post':
- $options[CURLOPT_POST] = true;
- $options[CURLOPT_POSTFIELDS] = $this->buildQuery($data);
-
- break;
- case 'put':
- $options[CURLOPT_PUT] = true;
- if ($data) {
- if ($buffer = fopen('php://memory', 'w+')) {
- $dataString = $this->buildQuery($data);
- fwrite($buffer, $dataString);
- fseek($buffer, 0);
- $options[CURLOPT_INFILE] = $buffer;
- $options[CURLOPT_INFILESIZE] = strlen($dataString);
- } else {
- throw new EnvironmentException('Unable to open a temporary file');
- }
- }
- break;
- case 'head':
- $options[CURLOPT_NOBODY] = true;
- break;
- default:
- $options[CURLOPT_CUSTOMREQUEST] = strtoupper($method);
- }
-
- return $options;
- }
-
- public function buildQuery($params) {
- $parts = array();
-
- if (is_string($params)) {
- return $params;
- }
-
- $params = $params ?: array();
-
- foreach ($params as $key => $value) {
- if (is_array($value)) {
- foreach ($value as $item) {
- $parts[] = urlencode((string)$key) . '=' . urlencode((string)$item);
- }
- } else {
- $parts[] = urlencode((string)$key) . '=' . urlencode((string)$value);
- }
- }
-
- return implode('&', $parts);
- }
-}
diff --git a/public/twilio-php/Twilio/Http/Response.php b/public/twilio-php/Twilio/Http/Response.php
deleted file mode 100644
index cf9f01c..0000000
--- a/public/twilio-php/Twilio/Http/Response.php
+++ /dev/null
@@ -1,43 +0,0 @@
-statusCode = $statusCode;
- $this->content = $content;
- $this->headers = $headers;
- }
-
- /**
- * @return mixed
- */
- public function getContent() {
- return json_decode($this->content, true);
- }
-
- /**
- * @return mixed
- */
- public function getStatusCode() {
- return $this->statusCode;
- }
-
- public function getHeaders() {
- return $this->headers;
- }
-
- public function ok() {
- return $this->getStatusCode() < 400;
- }
-
- public function __toString() {
- return '[Response] HTTP ' . $this->getStatusCode() . ' ' . $this->content;
- }
-}
diff --git a/public/twilio-php/Twilio/InstanceContext.php b/public/twilio-php/Twilio/InstanceContext.php
deleted file mode 100644
index 341af53..0000000
--- a/public/twilio-php/Twilio/InstanceContext.php
+++ /dev/null
@@ -1,19 +0,0 @@
-version = $version;
- }
-
- public function __toString() {
- return '[InstanceContext]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/InstanceResource.php b/public/twilio-php/Twilio/InstanceResource.php
deleted file mode 100644
index 2b802b2..0000000
--- a/public/twilio-php/Twilio/InstanceResource.php
+++ /dev/null
@@ -1,24 +0,0 @@
-version = $version;
- }
-
- public function toArray() {
- return $this->properties;
- }
-
- public function __toString() {
- return '[InstanceResource]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/AccessToken.php b/public/twilio-php/Twilio/Jwt/AccessToken.php
deleted file mode 100644
index 795ff1d..0000000
--- a/public/twilio-php/Twilio/Jwt/AccessToken.php
+++ /dev/null
@@ -1,142 +0,0 @@
-signingKeySid = $signingKeySid;
- $this->accountSid = $accountSid;
- $this->secret = $secret;
- $this->ttl = $ttl;
-
- if (!is_null($identity)) {
- $this->identity = $identity;
- }
-
- $this->grants = array();
- $this->customClaims = array();
- }
-
- /**
- * Set the identity of this access token
- *
- * @param string $identity identity of the grant
- *
- * @return $this updated access token
- */
- public function setIdentity($identity) {
- $this->identity = $identity;
- return $this;
- }
-
- /**
- * Returns the identity of the grant
- *
- * @return string the identity
- */
- public function getIdentity() {
- return $this->identity;
- }
-
- /**
- * Set the nbf of this access token
- *
- * @param integer $nbf nbf in epoch seconds of the grant
- *
- * @return $this updated access token
- */
- public function setNbf($nbf) {
- $this->nbf = $nbf;
- return $this;
- }
-
- /**
- * Returns the nbf of the grant
- *
- * @return integer the nbf in epoch seconds
- */
- public function getNbf() {
- return $this->nbf;
- }
-
- /**
- * Add a grant to the access token
- *
- * @param Grant $grant to be added
- *
- * @return $this the updated access token
- */
- public function addGrant(Grant $grant) {
- $this->grants[] = $grant;
- return $this;
- }
-
- /**
- * Allows to set custom claims, which then will be encoded into JWT payload.
- *
- * @param string $name
- * @param string $value
- */
- public function addClaim($name, $value) {
- $this->customClaims[$name] = $value;
- }
-
- public function toJWT($algorithm = 'HS256') {
- $header = array(
- 'cty' => 'twilio-fpa;v=1',
- 'typ' => 'JWT'
- );
-
- $now = time();
-
- $grants = array();
- if ($this->identity) {
- $grants['identity'] = $this->identity;
- }
-
- foreach ($this->grants as $grant) {
- $payload = $grant->getPayload();
- if (empty($payload)) {
- $payload = json_decode('{}');
- }
-
- $grants[$grant->getGrantKey()] = $payload;
- }
-
- if (empty($grants)) {
- $grants = json_decode('{}');
- }
-
- $payload = array_merge($this->customClaims, array(
- 'jti' => $this->signingKeySid . '-' . $now,
- 'iss' => $this->signingKeySid,
- 'sub' => $this->accountSid,
- 'exp' => $now + $this->ttl,
- 'grants' => $grants
- ));
-
- if (!is_null($this->nbf)) {
- $payload['nbf'] = $this->nbf;
- }
-
- return JWT::encode($payload, $this->secret, $algorithm, $header);
- }
-
- public function __toString() {
- return $this->toJWT();
- }
-}
diff --git a/public/twilio-php/Twilio/Jwt/Client/ScopeURI.php b/public/twilio-php/Twilio/Jwt/Client/ScopeURI.php
deleted file mode 100644
index 604af3b..0000000
--- a/public/twilio-php/Twilio/Jwt/Client/ScopeURI.php
+++ /dev/null
@@ -1,67 +0,0 @@
-:?
- *
- * For example:
- * scope:client:incoming?name=jonas
- */
-class ScopeURI {
- public $service;
- public $privilege;
- public $params;
-
- public function __construct($service, $privilege, $params = array()) {
- $this->service = $service;
- $this->privilege = $privilege;
- $this->params = $params;
- }
-
- public function toString() {
- $uri = "scope:{$this->service}:{$this->privilege}";
- if (count($this->params)) {
- $uri .= "?" . http_build_query($this->params, '', '&');
- }
- return $uri;
- }
-
- /**
- * Parse a scope URI into a ScopeURI object
- *
- * @param string $uri The scope URI
- * @return ScopeURI The parsed scope uri
- * @throws \UnexpectedValueException
- */
- public static function parse($uri) {
- if (strpos($uri, 'scope:') !== 0) {
- throw new \UnexpectedValueException(
- 'Not a scope URI according to scheme');
- }
-
- $parts = explode('?', $uri, 1);
- $params = null;
-
- if (count($parts) > 1) {
- parse_str($parts[1], $params);
- }
-
- $parts = explode(':', $parts[0], 2);
-
- if (count($parts) != 3) {
- throw new \UnexpectedValueException(
- 'Not enough parts for scope URI');
- }
-
- list($scheme, $service, $privilege) = $parts;
- return new ScopeURI($service, $privilege, $params);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/ClientToken.php b/public/twilio-php/Twilio/Jwt/ClientToken.php
deleted file mode 100644
index bfbbbeb..0000000
--- a/public/twilio-php/Twilio/Jwt/ClientToken.php
+++ /dev/null
@@ -1,128 +0,0 @@
-accountSid = $accountSid;
- $this->authToken = $authToken;
- $this->scopes = array();
- $this->clientName = false;
- $this->customClaims = array();
- }
-
- /**
- * If the user of this token should be allowed to accept incoming
- * connections then configure the TwilioCapability through this method and
- * specify the client name.
- *
- * @param $clientName
- * @throws \InvalidArgumentException
- */
- public function allowClientIncoming($clientName) {
-
- // clientName must be a non-zero length alphanumeric string
- if (preg_match('/\W/', $clientName)) {
- throw new \InvalidArgumentException(
- 'Only alphanumeric characters allowed in client name.');
- }
-
- if (strlen($clientName) == 0) {
- throw new \InvalidArgumentException(
- 'Client name must not be a zero length string.');
- }
-
- $this->clientName = $clientName;
- $this->allow('client', 'incoming',
- array('clientName' => $clientName));
- }
-
- /**
- * Allow the user of this token to make outgoing connections.
- *
- * @param string $appSid the application to which this token grants access
- * @param mixed[] $appParams signed parameters that the user of this token
- * cannot overwrite.
- */
- public function allowClientOutgoing($appSid, array $appParams = array()) {
- $this->allow('client', 'outgoing', array(
- 'appSid' => $appSid,
- 'appParams' => http_build_query($appParams, '', '&')));
- }
-
- /**
- * Allow the user of this token to access their event stream.
- *
- * @param mixed[] $filters key/value filters to apply to the event stream
- */
- public function allowEventStream(array $filters = array()) {
- $this->allow('stream', 'subscribe', array(
- 'path' => '/2010-04-01/Events',
- 'params' => http_build_query($filters, '', '&'),
- ));
- }
-
- /**
- * Allows to set custom claims, which then will be encoded into JWT payload.
- *
- * @param string $name
- * @param string $value
- */
- public function addClaim($name, $value) {
- $this->customClaims[$name] = $value;
- }
-
- /**
- * Generates a new token based on the credentials and permissions that
- * previously has been granted to this token.
- *
- * @param int $ttl the expiration time of the token (in seconds). Default
- * value is 3600 (1hr)
- * @return ClientToken the newly generated token that is valid for $ttl
- * seconds
- */
- public function generateToken($ttl = 3600) {
- $payload = array_merge($this->customClaims, array(
- 'scope' => array(),
- 'iss' => $this->accountSid,
- 'exp' => time() + $ttl,
- ));
- $scopeStrings = array();
-
- foreach ($this->scopes as $scope) {
- if ($scope->privilege == "outgoing" && $this->clientName)
- $scope->params["clientName"] = $this->clientName;
- $scopeStrings[] = $scope->toString();
- }
-
- $payload['scope'] = implode(' ', $scopeStrings);
- return JWT::encode($payload, $this->authToken, 'HS256');
- }
-
- protected function allow($service, $privilege, $params) {
- $this->scopes[] = new ScopeURI($service, $privilege, $params);
- }
-}
diff --git a/public/twilio-php/Twilio/Jwt/Grants/ChatGrant.php b/public/twilio-php/Twilio/Jwt/Grants/ChatGrant.php
deleted file mode 100644
index cdec819..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/ChatGrant.php
+++ /dev/null
@@ -1,128 +0,0 @@
-serviceSid;
- }
-
- /**
- * Set the service sid of this grant
- *
- * @param string $serviceSid service sid of the grant
- *
- * @return $this updated grant
- */
- public function setServiceSid($serviceSid) {
- $this->serviceSid = $serviceSid;
- return $this;
- }
-
- /**
- * Returns the endpoint id of the grant
- *
- * @return string the endpoint id
- */
- public function getEndpointId() {
- return $this->endpointId;
- }
-
- /**
- * Set the endpoint id of the grant
- *
- * @param string $endpointId endpoint id of the grant
- *
- * @return $this updated grant
- */
- public function setEndpointId($endpointId) {
- $this->endpointId = $endpointId;
- return $this;
- }
-
- /**
- * Returns the deployment role sid of the grant
- *
- * @return string the deployment role sid
- */
- public function getDeploymentRoleSid() {
- return $this->deploymentRoleSid;
- }
-
- /**
- * Set the role sid of the grant
- *
- * @param string $deploymentRoleSid role sid of the grant
- *
- * @return $this updated grant
- */
- public function setDeploymentRoleSid($deploymentRoleSid) {
- $this->deploymentRoleSid = $deploymentRoleSid;
- return $this;
- }
-
- /**
- * Returns the push credential sid of the grant
- *
- * @return string the push credential sid
- */
- public function getPushCredentialSid() {
- return $this->pushCredentialSid;
- }
-
- /**
- * Set the credential sid of the grant
- *
- * @param string $pushCredentialSid push credential sid of the grant
- *
- * @return $this updated grant
- */
- public function setPushCredentialSid($pushCredentialSid) {
- $this->pushCredentialSid = $pushCredentialSid;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey() {
- return "chat";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload() {
- $payload = array();
- if ($this->serviceSid) {
- $payload['service_sid'] = $this->serviceSid;
- }
- if ($this->endpointId) {
- $payload['endpoint_id'] = $this->endpointId;
- }
- if ($this->deploymentRoleSid) {
- $payload['deployment_role_sid'] = $this->deploymentRoleSid;
- }
- if ($this->pushCredentialSid) {
- $payload['push_credential_sid'] = $this->pushCredentialSid;
- }
-
- return $payload;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/Grants/ConversationsGrant.php b/public/twilio-php/Twilio/Jwt/Grants/ConversationsGrant.php
deleted file mode 100644
index bb249c1..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/ConversationsGrant.php
+++ /dev/null
@@ -1,55 +0,0 @@
-configurationProfileSid;
- }
-
- /**
- * @param string $configurationProfileSid the configuration profile sid
- * we want to enable for this grant
- *
- * @return $this updated grant
- */
- public function setConfigurationProfileSid($configurationProfileSid) {
- $this->configurationProfileSid = $configurationProfileSid;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey() {
- return "rtc";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload() {
- $payload = array();
- if ($this->configurationProfileSid) {
- $payload['configuration_profile_sid'] = $this->configurationProfileSid;
- }
- return $payload;
- }
-}
diff --git a/public/twilio-php/Twilio/Jwt/Grants/Grant.php b/public/twilio-php/Twilio/Jwt/Grants/Grant.php
deleted file mode 100644
index 0bd4e2b..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/Grant.php
+++ /dev/null
@@ -1,21 +0,0 @@
-serviceSid;
- }
-
- /**
- * Set the service sid of this grant
- *
- * @param string $serviceSid service sid of the grant
- *
- * @return $this updated grant
- */
- public function setServiceSid($serviceSid) {
- $this->serviceSid = $serviceSid;
- return $this;
- }
-
- /**
- * Returns the endpoint id of the grant
- *
- * @return string the endpoint id
- */
- public function getEndpointId() {
- return $this->endpointId;
- }
-
- /**
- * Set the endpoint id of the grant
- *
- * @param string $endpointId endpoint id of the grant
- *
- * @return $this updated grant
- */
- public function setEndpointId($endpointId) {
- $this->endpointId = $endpointId;
- return $this;
- }
-
- /**
- * Returns the deployment role sid of the grant
- *
- * @return string the deployment role sid
- */
- public function getDeploymentRoleSid() {
- return $this->deploymentRoleSid;
- }
-
- /**
- * Set the role sid of the grant
- *
- * @param string $deploymentRoleSid role sid of the grant
- *
- * @return $this updated grant
- */
- public function setDeploymentRoleSid($deploymentRoleSid) {
- $this->deploymentRoleSid = $deploymentRoleSid;
- return $this;
- }
-
- /**
- * Returns the push credential sid of the grant
- *
- * @return string the push credential sid
- */
- public function getPushCredentialSid() {
- return $this->pushCredentialSid;
- }
-
- /**
- * Set the credential sid of the grant
- *
- * @param string $pushCredentialSid push credential sid of the grant
- *
- * @return $this updated grant
- */
- public function setPushCredentialSid($pushCredentialSid) {
- $this->pushCredentialSid = $pushCredentialSid;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey() {
- return "ip_messaging";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload() {
- $payload = array();
- if ($this->serviceSid) {
- $payload['service_sid'] = $this->serviceSid;
- }
- if ($this->endpointId) {
- $payload['endpoint_id'] = $this->endpointId;
- }
- if ($this->deploymentRoleSid) {
- $payload['deployment_role_sid'] = $this->deploymentRoleSid;
- }
- if ($this->pushCredentialSid) {
- $payload['push_credential_sid'] = $this->pushCredentialSid;
- }
-
- return $payload;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/Grants/SyncGrant.php b/public/twilio-php/Twilio/Jwt/Grants/SyncGrant.php
deleted file mode 100644
index 0d5fafe..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/SyncGrant.php
+++ /dev/null
@@ -1,138 +0,0 @@
-serviceSid;
- }
-
- /**
- * Set the service sid of this grant
- *
- * @param string $serviceSid service sid of the grant
- *
- * @return Services_Twilio_Auth_SyncGrant updated grant
- */
- public function setServiceSid($serviceSid)
- {
- $this->serviceSid = $serviceSid;
- return $this;
- }
-
- /**
- * Returns the endpoint id of the grant
- *
- * @return string the endpoint id
- */
- public function getEndpointId()
- {
- return $this->endpointId;
- }
-
- /**
- * Set the endpoint id of the grant
- *
- * @param string $endpointId endpoint id of the grant
- *
- * @return Services_Twilio_Auth_SyncGrant updated grant
- */
- public function setEndpointId($endpointId)
- {
- $this->endpointId = $endpointId;
- return $this;
- }
-
- /**
- * Returns the deployment role sid of the grant
- *
- * @return string the deployment role sid
- */
- public function getDeploymentRoleSid()
- {
- return $this->deploymentRoleSid;
- }
-
- /**
- * Set the role sid of the grant
- *
- * @param string $deploymentRoleSid role sid of the grant
- *
- * @return Services_Twilio_Auth_SyncGrant updated grant
- */
- public function setDeploymentRoleSid($deploymentRoleSid)
- {
- $this->deploymentRoleSid = $deploymentRoleSid;
- return $this;
- }
-
- /**
- * Returns the push credential sid of the grant
- *
- * @return string the push credential sid
- */
- public function getPushCredentialSid()
- {
- return $this->pushCredentialSid;
- }
-
- /**
- * Set the credential sid of the grant
- *
- * @param string $pushCredentialSid push credential sid of the grant
- *
- * @return Services_Twilio_Auth_SyncGrant updated grant
- */
- public function setPushCredentialSid($pushCredentialSid)
- {
- $this->pushCredentialSid = $pushCredentialSid;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey()
- {
- return "data_sync";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload()
- {
- $payload = array();
- if ($this->serviceSid) {
- $payload['service_sid'] = $this->serviceSid;
- }
- if ($this->endpointId) {
- $payload['endpoint_id'] = $this->endpointId;
- }
- if ($this->deploymentRoleSid) {
- $payload['deployment_role_sid'] = $this->deploymentRoleSid;
- }
- if ($this->pushCredentialSid) {
- $payload['push_credential_sid'] = $this->pushCredentialSid;
- }
-
- return $payload;
- }
-
-}
diff --git a/public/twilio-php/Twilio/Jwt/Grants/TaskRouterGrant.php b/public/twilio-php/Twilio/Jwt/Grants/TaskRouterGrant.php
deleted file mode 100644
index 1eb9a7e..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/TaskRouterGrant.php
+++ /dev/null
@@ -1,110 +0,0 @@
-workspaceSid;
- }
-
- /**
- * Set the workspace sid of this grant
- *
- * @param string $workspaceSid workspace sid of the grant
- *
- * @return Services_Twilio_Auth_TaskRouterGrant updated grant
- */
- public function setWorkspaceSid($workspaceSid)
- {
- $this->workspaceSid = $workspaceSid;
- return $this;
- }
-
- /**
- * Returns the worker sid
- *
- * @return string the worker sid
- */
- public function getWorkerSid()
- {
- return $this->workerSid;
- }
-
- /**
- * Set the worker sid of this grant
- *
- * @param string $worker worker sid of the grant
- *
- * @return Services_Twilio_Auth_TaskRouterGrant updated grant
- */
- public function setWorkerSid($workerSid)
- {
- $this->workerSid = $workerSid;
- return $this;
- }
-
- /**
- * Returns the role
- *
- * @return string the role
- */
- public function getRole()
- {
- return $this->role;
- }
-
- /**
- * Set the role of this grant
- *
- * @param string $role role of the grant
- *
- * @return Services_Twilio_Auth_TaskRouterGrant updated grant
- */
- public function setRole($role)
- {
- $this->role = $role;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey()
- {
- return "task_router";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload()
- {
- $payload = array();
- if ($this->workspaceSid) {
- $payload['workspace_sid'] = $this->workspaceSid;
- }
- if ($this->workerSid) {
- $payload['worker_sid'] = $this->workerSid;
- }
- if ($this->role) {
- $payload['role'] = $this->role;
- }
-
- return $payload;
- }
-
-}
diff --git a/public/twilio-php/Twilio/Jwt/Grants/VideoGrant.php b/public/twilio-php/Twilio/Jwt/Grants/VideoGrant.php
deleted file mode 100644
index 53bb3b8..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/VideoGrant.php
+++ /dev/null
@@ -1,80 +0,0 @@
-configurationProfileSid;
- }
-
- /**
- * Set the configuration profile sid of the grant
- * @deprecated in favor of setRoom/getRoom
- *
- * @param string $configurationProfileSid configuration profile sid of grant
- *
- * @return $this updated grant
- */
- public function setConfigurationProfileSid($configurationProfileSid) {
- trigger_error('Configuration profile sid is deprecated, use room instead.', E_USER_NOTICE);
- $this->configurationProfileSid = $configurationProfileSid;
- return $this;
- }
-
- /**
- * Returns the room
- *
- * @return string room name or sid set in this grant
- */
- public function getRoom() {
- return $this->room;
- }
-
- /**
- * Set the room to allow access to in the grant
- *
- * @param string $roomSidOrName room sid or name
- * @return $this updated grant
- */
- public function setRoom($roomSidOrName) {
- $this->room = $roomSidOrName;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey() {
- return "video";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload() {
- $payload = array();
- if ($this->configurationProfileSid) {
- $payload['configuration_profile_sid'] = $this->configurationProfileSid;
- }
- if ($this->room) {
- $payload['room'] = $this->room;
- }
- return $payload;
- }
-
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/Grants/VoiceGrant.php b/public/twilio-php/Twilio/Jwt/Grants/VoiceGrant.php
deleted file mode 100644
index aa9c142..0000000
--- a/public/twilio-php/Twilio/Jwt/Grants/VoiceGrant.php
+++ /dev/null
@@ -1,178 +0,0 @@
-incomingAllow;
- }
-
- /**
- * Set whether incoming is allowed
- *
- * @param boolean $incomingAllow whether incoming is allowed
- *
- * @return $this updated grant
- */
- public function setIncomingAllow($incomingAllow)
- {
- $this->incomingAllow = $incomingAllow;
- return $this;
- }
-
- /**
- * Returns the outgoing application sid
- *
- * @return string the outgoing application sid
- */
- public function getOutgoingApplicationSid()
- {
- return $this->outgoingApplicationSid;
- }
-
- /**
- * Set the outgoing application sid of the grant
- *
- * @param string $outgoingApplicationSid outgoing application sid of grant
- *
- * @return $this updated grant
- */
- public function setOutgoingApplicationSid($outgoingApplicationSid)
- {
- $this->outgoingApplicationSid = $outgoingApplicationSid;
- return $this;
- }
-
- /**
- * Returns the outgoing application params
- *
- * @return array the outgoing application params
- */
- public function getOutgoingApplicationParams()
- {
- return $this->outgoingApplicationParams;
- }
-
- /**
- * Set the outgoing application of the the grant
- *
- * @param string $sid outgoing application sid of the grant
- * @param string $params params to pass the the application
- *
- * @return $this updated grant
- */
- public function setOutgoingApplication($sid, $params) {
- $this->outgoingApplicationSid = $sid;
- $this->outgoingApplicationParams = $params;
- return $this;
- }
-
- /**
- * Returns the push credential sid
- *
- * @return string the push credential sid
- */
- public function getPushCredentialSid()
- {
- return $this->pushCredentialSid;
- }
-
- /**
- * Set the push credential sid
- *
- * @param string $pushCredentialSid
- *
- * @return $this updated grant
- */
- public function setPushCredentialSid($pushCredentialSid)
- {
- $this->pushCredentialSid = $pushCredentialSid;
- return $this;
- }
-
- /**
- * Returns the endpoint id
- *
- * @return string the endpoint id
- */
- public function getEndpointId()
- {
- return $this->endpointId;
- }
-
- /**
- * Set the endpoint id
- *
- * @param string $endpointId endpoint id
- *
- * @return $this updated grant
- */
- public function setEndpointId($endpointId)
- {
- $this->endpointId = $endpointId;
- return $this;
- }
-
- /**
- * Returns the grant type
- *
- * @return string type of the grant
- */
- public function getGrantKey()
- {
- return "voice";
- }
-
- /**
- * Returns the grant data
- *
- * @return array data of the grant
- */
- public function getPayload()
- {
- $payload = array();
- if ($this->incomingAllow == true) {
- $incoming = array();
- $incoming['allow'] = true;
- $payload['incoming'] = $incoming;
- }
-
- if ($this->outgoingApplicationSid) {
- $outgoing = array();
- $outgoing['application_sid'] = $this->outgoingApplicationSid;
-
- if ($this->outgoingApplicationParams) {
- $outgoing['params'] = $this->outgoingApplicationParams;
- }
-
- $payload['outgoing'] = $outgoing;
- }
-
- if ($this->pushCredentialSid) {
- $payload['push_credential_sid'] = $this->pushCredentialSid;
- }
-
- if ($this->endpointId) {
- $payload['endpoint_id'] = $this->endpointId;
- }
-
- return $payload;
- }
-
-
-}
diff --git a/public/twilio-php/Twilio/Jwt/JWT.php b/public/twilio-php/Twilio/Jwt/JWT.php
deleted file mode 100644
index de212f5..0000000
--- a/public/twilio-php/Twilio/Jwt/JWT.php
+++ /dev/null
@@ -1,156 +0,0 @@
-
- */
-class JWT {
- /**
- * @param string $jwt The JWT
- * @param string|null $key The secret key
- * @param bool $verify Don't skip verification process
- * @return object The JWT's payload as a PHP object
- * @throws \DomainException
- * @throws \UnexpectedValueException
- */
- public static function decode($jwt, $key = null, $verify = true) {
- $tks = explode('.', $jwt);
- if (count($tks) != 3) {
- throw new \UnexpectedValueException('Wrong number of segments');
- }
- list($headb64, $payloadb64, $cryptob64) = $tks;
- if (null === ($header = self::jsonDecode(self::urlsafeB64Decode($headb64)))
- ) {
- throw new \UnexpectedValueException('Invalid segment encoding');
- }
- if (null === $payload = self::jsonDecode(self::urlsafeB64Decode($payloadb64))
- ) {
- throw new \UnexpectedValueException('Invalid segment encoding');
- }
- $sig = self::urlsafeB64Decode($cryptob64);
- if ($verify) {
- if (empty($header->alg)) {
- throw new \DomainException('Empty algorithm');
- }
- if ($sig != self::sign("$headb64.$payloadb64", $key, $header->alg)) {
- throw new \UnexpectedValueException('Signature verification failed');
- }
- }
- return $payload;
- }
-
- /**
- * @param object|array $payload PHP object or array
- * @param string $key The secret key
- * @param string $algo The signing algorithm
- * @param array $additionalHeaders Additional keys/values to add to the header
- *
- * @return string A JWT
- */
- public static function encode($payload, $key, $algo = 'HS256', $additionalHeaders = array()) {
- $header = array('typ' => 'JWT', 'alg' => $algo);
- $header = $header + $additionalHeaders;
-
- $segments = array();
- $segments[] = self::urlsafeB64Encode(self::jsonEncode($header));
- $segments[] = self::urlsafeB64Encode(self::jsonEncode($payload));
- $signing_input = implode('.', $segments);
-
- $signature = self::sign($signing_input, $key, $algo);
- $segments[] = self::urlsafeB64Encode($signature);
-
- return implode('.', $segments);
- }
-
- /**
- * @param string $msg The message to sign
- * @param string $key The secret key
- * @param string $method The signing algorithm
- * @return string An encrypted message
- * @throws \DomainException
- */
- public static function sign($msg, $key, $method = 'HS256') {
- $methods = array(
- 'HS256' => 'sha256',
- 'HS384' => 'sha384',
- 'HS512' => 'sha512',
- );
- if (empty($methods[$method])) {
- throw new \DomainException('Algorithm not supported');
- }
- return hash_hmac($methods[$method], $msg, $key, true);
- }
-
- /**
- * @param string $input JSON string
- * @return object Object representation of JSON string
- * @throws \DomainException
- */
- public static function jsonDecode($input) {
- $obj = json_decode($input);
- if (function_exists('json_last_error') && $errno = json_last_error()) {
- self::handleJsonError($errno);
- } else if ($obj === null && $input !== 'null') {
- throw new \DomainException('Null result with non-null input');
- }
- return $obj;
- }
-
- /**
- * @param object|array $input A PHP object or array
- * @return string JSON representation of the PHP object or array
- * @throws \DomainException
- */
- public static function jsonEncode($input) {
- $json = json_encode($input);
- if (function_exists('json_last_error') && $errno = json_last_error()) {
- self::handleJsonError($errno);
- } else if ($json === 'null' && $input !== null) {
- throw new \DomainException('Null result with non-null input');
- }
- return $json;
- }
-
- /**
- * @param string $input A base64 encoded string
- *
- * @return string A decoded string
- */
- public static function urlsafeB64Decode($input) {
- $padlen = 4 - strlen($input) % 4;
- $input .= str_repeat('=', $padlen);
- return base64_decode(strtr($input, '-_', '+/'));
- }
-
- /**
- * @param string $input Anything really
- *
- * @return string The base64 encode of what you passed in
- */
- public static function urlsafeB64Encode($input) {
- return str_replace('=', '', strtr(base64_encode($input), '+/', '-_'));
- }
-
- /**
- * @param int $errno An error number from json_last_error()
- *
- * @throws \DomainException
- */
- private static function handleJsonError($errno) {
- $messages = array(
- JSON_ERROR_DEPTH => 'Maximum stack depth exceeded',
- JSON_ERROR_CTRL_CHAR => 'Unexpected control character found',
- JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON'
- );
- throw new \DomainException(isset($messages[$errno])
- ? $messages[$errno]
- : 'Unknown JSON error: ' . $errno
- );
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/TaskRouter/CapabilityToken.php b/public/twilio-php/Twilio/Jwt/TaskRouter/CapabilityToken.php
deleted file mode 100644
index 57115cb..0000000
--- a/public/twilio-php/Twilio/Jwt/TaskRouter/CapabilityToken.php
+++ /dev/null
@@ -1,160 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class CapabilityToken {
- protected $accountSid;
- protected $authToken;
- private $friendlyName;
- /** @var Policy[] $policies */
- private $policies;
-
- protected $baseUrl = 'https://taskrouter.twilio.com/v1';
- protected $baseWsUrl = 'https://event-bridge.twilio.com/v1/wschannels';
- protected $version = 'v1';
-
- protected $workspaceSid;
- protected $channelId;
- protected $resourceUrl;
-
- protected $required = array("required" => true);
- protected $optional = array("required" => false);
-
- public function __construct($accountSid, $authToken, $workspaceSid, $channelId, $resourceUrl = null, $overrideBaseUrl = null, $overrideBaseWSUrl = null) {
- $this->accountSid = $accountSid;
- $this->authToken = $authToken;
- $this->friendlyName = $channelId;
- $this->policies = array();
-
- $this->workspaceSid = $workspaceSid;
- $this->channelId = $channelId;
- if (isset($overrideBaseUrl)) {
- $this->baseUrl = $overrideBaseUrl;
- }
- if (isset($overrideBaseWSUrl)) {
- $this->baseWsUrl = $overrideBaseWSUrl;
- }
- $this->baseUrl = $this->baseUrl . '/Workspaces/' . $workspaceSid;
-
- $this->validateJWT();
-
- if (!isset($resourceUrl)) {
- $this->setupResource();
- }
-
- //add permissions to GET and POST to the event-bridge channel
- $this->allow($this->baseWsUrl . "/" . $this->accountSid . "/" . $this->channelId, "GET", null, null);
- $this->allow($this->baseWsUrl . "/" . $this->accountSid . "/" . $this->channelId, "POST", null, null);
-
- //add permissions to fetch the instance resource
- $this->allow($this->resourceUrl, "GET", null, null);
- }
-
- protected function setupResource() {
-
- }
-
- public function addPolicyDeconstructed($url, $method, $queryFilter = array(), $postFilter = array(), $allow = true) {
- $policy = new Policy($url, $method, $queryFilter, $postFilter, $allow);
- array_push($this->policies, $policy);
- return $policy;
- }
-
- public function allow($url, $method, $queryFilter = array(), $postFilter = array()) {
- $this->addPolicyDeconstructed($url, $method, $queryFilter, $postFilter, true);
- }
-
- public function deny($url, $method, $queryFilter = array(), $postFilter = array()) {
- $this->addPolicyDeconstructed($url, $method, $queryFilter, $postFilter, false);
- }
-
- private function validateJWT() {
- if (!isset($this->accountSid) || substr($this->accountSid, 0, 2) != 'AC') {
- throw new \Exception("Invalid AccountSid provided: " . $this->accountSid);
- }
- if (!isset($this->workspaceSid) || substr($this->workspaceSid, 0, 2) != 'WS') {
- throw new \Exception("Invalid WorkspaceSid provided: " . $this->workspaceSid);
- }
- if (!isset($this->channelId)) {
- throw new \Exception("ChannelId not provided");
- }
- $prefix = substr($this->channelId, 0, 2);
- if ($prefix != 'WS' && $prefix != 'WK' && $prefix != 'WQ') {
- throw new \Exception("Invalid ChannelId provided: " . $this->channelId);
- }
- }
-
- public function allowFetchSubresources() {
- $method = 'GET';
- $queryFilter = array();
- $postFilter = array();
- $this->allow($this->resourceUrl . '/**', $method, $queryFilter, $postFilter);
- }
-
- public function allowUpdates() {
- $method = 'POST';
- $queryFilter = array();
- $postFilter = array();
- $this->allow($this->resourceUrl, $method, $queryFilter, $postFilter);
- }
-
- public function allowUpdatesSubresources() {
- $method = 'POST';
- $queryFilter = array();
- $postFilter = array();
- $this->allow($this->resourceUrl . '/**', $method, $queryFilter, $postFilter);
- }
-
- public function allowDelete() {
- $method = 'DELETE';
- $queryFilter = array();
- $postFilter = array();
- $this->allow($this->resourceUrl, $method, $queryFilter, $postFilter);
- }
-
- public function allowDeleteSubresources() {
- $method = 'DELETE';
- $queryFilter = array();
- $postFilter = array();
- $this->allow($this->resourceUrl . '/**', $method, $queryFilter, $postFilter);
- }
-
- public function generateToken($ttl = 3600, $extraAttributes = array()) {
- $payload = array(
- 'version' => $this->version,
- 'friendly_name' => $this->friendlyName,
- 'iss' => $this->accountSid,
- 'exp' => time() + $ttl,
- 'account_sid' => $this->accountSid,
- 'channel' => $this->channelId,
- 'workspace_sid' => $this->workspaceSid
- );
-
- if (substr($this->channelId, 0, 2) == 'WK') {
- $payload['worker_sid'] = $this->channelId;
- } else if (substr($this->channelId, 0, 2) == 'WQ') {
- $payload['taskqueue_sid'] = $this->channelId;
- }
-
- foreach ($extraAttributes as $key => $value) {
- $payload[$key] = $value;
- }
-
- $policyStrings = array();
- foreach ($this->policies as $policy) {
- $policyStrings[] = $policy->toArray();
- }
-
- $payload['policies'] = $policyStrings;
- return JWT::encode($payload, $this->authToken, 'HS256');
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/TaskRouter/Policy.php b/public/twilio-php/Twilio/Jwt/TaskRouter/Policy.php
deleted file mode 100644
index 2de1751..0000000
--- a/public/twilio-php/Twilio/Jwt/TaskRouter/Policy.php
+++ /dev/null
@@ -1,54 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class Policy {
- private $url;
- private $method;
- private $queryFilter;
- private $postFilter;
- private $allow;
-
- public function __construct($url, $method, $queryFilter = array(), $postFilter = array(), $allow = true) {
- $this->url = $url;
- $this->method = $method;
- $this->queryFilter = $queryFilter;
- $this->postFilter = $postFilter;
- $this->allow = $allow;
- }
-
- public function addQueryFilter($queryFilter) {
- array_push($this->queryFilter, $queryFilter);
- }
-
- public function addPostFilter($postFilter) {
- array_push($this->postFilter, $postFilter);
- }
-
- public function toArray() {
- $policy_array = array('url' => $this->url, 'method' => $this->method, 'allow' => $this->allow);
- if (!is_null($this->queryFilter)) {
- if (count($this->queryFilter) > 0) {
- $policy_array['query_filter'] = $this->queryFilter;
- } else {
- $policy_array['query_filter'] = new \stdClass();
- }
- }
- if (!is_null($this->postFilter)) {
- if (count($this->postFilter) > 0) {
- $policy_array['post_filter'] = $this->postFilter;
- } else {
- $policy_array['post_filter'] = new \stdClass();
- }
- }
- return $policy_array;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/TaskRouter/TaskQueueCapability.php b/public/twilio-php/Twilio/Jwt/TaskRouter/TaskQueueCapability.php
deleted file mode 100644
index b780fd3..0000000
--- a/public/twilio-php/Twilio/Jwt/TaskRouter/TaskQueueCapability.php
+++ /dev/null
@@ -1,20 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class TaskQueueCapability extends CapabilityToken {
- public function __construct($accountSid, $authToken, $workspaceSid, $taskQueueSid, $overrideBaseUrl = null, $overrideBaseWSUrl = null) {
- parent::__construct($accountSid, $authToken, $workspaceSid, $taskQueueSid, null, $overrideBaseUrl, $overrideBaseWSUrl);
- }
-
- protected function setupResource() {
- $this->resourceUrl = $this->baseUrl . '/TaskQueues/' . $this->channelId;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/TaskRouter/WorkerCapability.php b/public/twilio-php/Twilio/Jwt/TaskRouter/WorkerCapability.php
deleted file mode 100644
index 2954832..0000000
--- a/public/twilio-php/Twilio/Jwt/TaskRouter/WorkerCapability.php
+++ /dev/null
@@ -1,48 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class WorkerCapability extends CapabilityToken {
- private $tasksUrl;
- private $workerReservationsUrl;
- private $activityUrl;
-
- public function __construct($accountSid, $authToken, $workspaceSid, $workerSid, $overrideBaseUrl = null, $overrideBaseWSUrl = null) {
- parent::__construct($accountSid, $authToken, $workspaceSid, $workerSid, null, $overrideBaseUrl, $overrideBaseWSUrl);
-
- $this->tasksUrl = $this->baseUrl . '/Tasks/**';
- $this->activityUrl = $this->baseUrl . '/Activities';
- $this->workerReservationsUrl = $this->resourceUrl . '/Reservations/**';
-
- //add permissions to fetch the list of activities, tasks, and worker reservations
- $this->allow($this->activityUrl, "GET", null, null);
- $this->allow($this->tasksUrl, "GET", null, null);
- $this->allow($this->workerReservationsUrl, "GET", null, null);
- }
-
- protected function setupResource() {
- $this->resourceUrl = $this->baseUrl . '/Workers/' . $this->channelId;
- }
-
- public function allowActivityUpdates() {
- $method = 'POST';
- $queryFilter = array();
- $postFilter = array("ActivitySid" => $this->required);
- $this->allow($this->resourceUrl, $method, $queryFilter, $postFilter);
- }
-
- public function allowReservationUpdates() {
- $method = 'POST';
- $queryFilter = array();
- $postFilter = array();
- $this->allow($this->tasksUrl, $method, $queryFilter, $postFilter);
- $this->allow($this->workerReservationsUrl, $method, $queryFilter, $postFilter);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Jwt/TaskRouter/WorkspaceCapability.php b/public/twilio-php/Twilio/Jwt/TaskRouter/WorkspaceCapability.php
deleted file mode 100644
index 2b3c6a5..0000000
--- a/public/twilio-php/Twilio/Jwt/TaskRouter/WorkspaceCapability.php
+++ /dev/null
@@ -1,15 +0,0 @@
-resourceUrl = $this->baseUrl;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/ListResource.php b/public/twilio-php/Twilio/ListResource.php
deleted file mode 100644
index 3955ce9..0000000
--- a/public/twilio-php/Twilio/ListResource.php
+++ /dev/null
@@ -1,19 +0,0 @@
-version = $version;
- }
-
- public function __toString() {
- return '[ListResource]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Options.php b/public/twilio-php/Twilio/Options.php
deleted file mode 100644
index 45e3d7f..0000000
--- a/public/twilio-php/Twilio/Options.php
+++ /dev/null
@@ -1,13 +0,0 @@
-options);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Page.php b/public/twilio-php/Twilio/Page.php
deleted file mode 100644
index fdbab4a..0000000
--- a/public/twilio-php/Twilio/Page.php
+++ /dev/null
@@ -1,192 +0,0 @@
-processResponse($response);
-
- $this->version = $version;
- $this->payload = $payload;
- $this->solution = array();
- $this->records = new \ArrayIterator($this->loadPage());
- }
-
- protected function processResponse(Response $response) {
- if ($response->getStatusCode() != 200 && !$this->isPagingEol($response->getContent())) {
- $message = '[HTTP ' . $response->getStatusCode() . '] Unable to fetch page';
- $code = $response->getStatusCode();
-
- $content = $response->getContent();
-
- if (is_array($content)) {
- $message .= isset($content['message']) ? ': ' . $content['message'] : '';
- $code = isset($content['code']) ? $content['code'] : $code;
- }
-
- throw new RestException($message, $code, $response->getStatusCode());
- }
- return $response->getContent();
- }
-
- protected function isPagingEol($content) {
- return !is_null($content) && array_key_exists('code', $content) && $content['code'] == 20006;
- }
-
- protected function hasMeta($key) {
- return array_key_exists('meta', $this->payload) && array_key_exists($key, $this->payload['meta']);
- }
-
- protected function getMeta($key, $default=null) {
- return $this->hasMeta($key) ? $this->payload['meta'][$key] : $default;
- }
-
- protected function loadPage() {
- $key = $this->getMeta('key');
- if ($key) {
- return $this->payload[$key];
- } else {
- $keys = array_keys($this->payload);
- $key = array_diff($keys, self::$metaKeys);
- $key = array_values($key);
-
- if (count($key) == 1) {
- return $this->payload[$key[0]];
- }
- }
-
- // handle end of results error code
- if ($this->isPagingEol($this->payload)) {
- return array();
- }
-
- throw new DeserializeException('Page Records can not be deserialized');
- }
-
- public function getPreviousPageUrl() {
- if ($this->hasMeta('previous_page_url')) {
- return $this->getMeta('previous_page_url');
- } else if (array_key_exists('previous_page_uri', $this->payload) && $this->payload['previous_page_uri']) {
- return $this->getVersion()->getDomain()->absoluteUrl($this->payload['previous_page_uri']);
- }
- return null;
- }
-
- public function getNextPageUrl() {
- if ($this->hasMeta('next_page_url')) {
- return $this->getMeta('next_page_url');
- } else if (array_key_exists('next_page_uri', $this->payload) && $this->payload['next_page_uri']) {
- return $this->getVersion()->getDomain()->absoluteUrl($this->payload['next_page_uri']);
- }
- return null;
- }
-
- public function nextPage() {
- if (!$this->getNextPageUrl()) {
- return null;
- }
-
- $response = $this->getVersion()->getDomain()->getClient()->request('GET', $this->getNextPageUrl());
- return new static($this->getVersion(), $response, $this->solution);
- }
-
- public function previousPage() {
- if (!$this->getPreviousPageUrl()) {
- return null;
- }
-
- $response = $this->getVersion()->getDomain()->getClient()->request('GET', $this->getPreviousPageUrl());
- return new static($this->getVersion(), $response, $this->solution);
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Return the current element
- * @link http://php.net/manual/en/iterator.current.php
- * @return mixed Can return any type.
- */
- public function current() {
- return $this->buildInstance($this->records->current());
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Move forward to next element
- * @link http://php.net/manual/en/iterator.next.php
- * @return void Any returned value is ignored.
- */
- public function next() {
- $this->records->next();
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Return the key of the current element
- * @link http://php.net/manual/en/iterator.key.php
- * @return mixed scalar on success, or null on failure.
- */
- public function key() {
- return $this->records->key();
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Checks if current position is valid
- * @link http://php.net/manual/en/iterator.valid.php
- * @return boolean The return value will be casted to boolean and then evaluated.
- * Returns true on success or false on failure.
- */
- public function valid() {
- return $this->records->valid();
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Rewind the Iterator to the first element
- * @link http://php.net/manual/en/iterator.rewind.php
- * @return void Any returned value is ignored.
- */
- public function rewind() {
- $this->records->rewind();
- }
-
-
- /**
- * @return Version
- */
- public function getVersion() {
- return $this->version;
- }
-
- public function __toString() {
- return '[Page]';
- }
-
-}
diff --git a/public/twilio-php/Twilio/Rest/Accounts.php b/public/twilio-php/Twilio/Rest/Accounts.php
deleted file mode 100644
index a177ca7..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts.php
+++ /dev/null
@@ -1,94 +0,0 @@
-baseUrl = 'https://accounts.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Accounts\V1 Version v1 of accounts
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Accounts\V1\CredentialList
- */
- protected function getCredentials() {
- return $this->v1->credentials;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1.php b/public/twilio-php/Twilio/Rest/Accounts/V1.php
deleted file mode 100644
index 75b276e..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1.php
+++ /dev/null
@@ -1,85 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Accounts\V1\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList($this);
- }
- return $this->_credentials;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsContext.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsContext.php
deleted file mode 100644
index 29ceb29..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsContext.php
+++ /dev/null
@@ -1,96 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/AWS/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AwsInstance
- *
- * @return AwsInstance Fetched AwsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AwsInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the AwsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AwsInstance Updated AwsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AwsInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the AwsInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Accounts.V1.AwsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsInstance.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsInstance.php
deleted file mode 100644
index b28c112..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsInstance.php
+++ /dev/null
@@ -1,130 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Accounts\V1\Credential\AwsContext Context for this
- * AwsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AwsContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AwsInstance
- *
- * @return AwsInstance Fetched AwsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AwsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AwsInstance Updated AwsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the AwsInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Accounts.V1.AwsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsList.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsList.php
deleted file mode 100644
index 759ee4b..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials/AWS';
- }
-
- /**
- * Streams AwsInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AwsInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AwsInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AwsInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AwsInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AwsPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AwsInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AwsInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AwsPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new AwsInstance
- *
- * @param string $credentials The credentials
- * @param array|Options $options Optional Arguments
- * @return AwsInstance Newly created AwsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($credentials, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Credentials' => $credentials,
- 'FriendlyName' => $options['friendlyName'],
- 'AccountSid' => $options['accountSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AwsInstance($this->version, $payload);
- }
-
- /**
- * Constructs a AwsContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Accounts\V1\Credential\AwsContext
- */
- public function getContext($sid) {
- return new AwsContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.AwsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsOptions.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsOptions.php
deleted file mode 100644
index afe3c18..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsOptions.php
+++ /dev/null
@@ -1,115 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['accountSid'] = $accountSid;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The account_sid
- *
- * @param string $accountSid The account_sid
- * @return $this Fluent Builder
- */
- public function setAccountSid($accountSid) {
- $this->options['accountSid'] = $accountSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Accounts.V1.CreateAwsOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateAwsOptions extends Options {
- /**
- * @param string $friendlyName The friendly_name
- */
- public function __construct($friendlyName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Accounts.V1.UpdateAwsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsPage.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsPage.php
deleted file mode 100644
index 0558b7a..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/AwsPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AwsInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.AwsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyContext.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyContext.php
deleted file mode 100644
index 9f6ebd6..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyContext.php
+++ /dev/null
@@ -1,96 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/PublicKeys/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a PublicKeyInstance
- *
- * @return PublicKeyInstance Fetched PublicKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PublicKeyInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the PublicKeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PublicKeyInstance Updated PublicKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new PublicKeyInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the PublicKeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Accounts.V1.PublicKeyContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyInstance.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyInstance.php
deleted file mode 100644
index d82af5a..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyInstance.php
+++ /dev/null
@@ -1,131 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Accounts\V1\Credential\PublicKeyContext Context for
- * this
- * PublicKeyInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PublicKeyContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a PublicKeyInstance
- *
- * @return PublicKeyInstance Fetched PublicKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the PublicKeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PublicKeyInstance Updated PublicKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the PublicKeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Accounts.V1.PublicKeyInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php
deleted file mode 100644
index c84fe71..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials/PublicKeys';
- }
-
- /**
- * Streams PublicKeyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads PublicKeyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return PublicKeyInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of PublicKeyInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of PublicKeyInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PublicKeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of PublicKeyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of PublicKeyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new PublicKeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new PublicKeyInstance
- *
- * @param string $publicKey URL encoded representation of the public key
- * @param array|Options $options Optional Arguments
- * @return PublicKeyInstance Newly created PublicKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($publicKey, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PublicKey' => $publicKey,
- 'FriendlyName' => $options['friendlyName'],
- 'AccountSid' => $options['accountSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new PublicKeyInstance($this->version, $payload);
- }
-
- /**
- * Constructs a PublicKeyContext
- *
- * @param string $sid Fetch by unique Credential Sid
- * @return \Twilio\Rest\Accounts\V1\Credential\PublicKeyContext
- */
- public function getContext($sid) {
- return new PublicKeyContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.PublicKeyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.php
deleted file mode 100644
index 949e656..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.php
+++ /dev/null
@@ -1,118 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['accountSid'] = $accountSid;
- }
-
- /**
- * A human readable description of this resource, up to 64 characters.
- *
- * @param string $friendlyName A human readable description of this resource
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The Subaccount this Credential should be associated with. Needs to be a valid Subaccount of the account issuing the request
- *
- * @param string $accountSid The Subaccount this Credential should be
- * associated with.
- * @return $this Fluent Builder
- */
- public function setAccountSid($accountSid) {
- $this->options['accountSid'] = $accountSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Accounts.V1.CreatePublicKeyOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdatePublicKeyOptions extends Options {
- /**
- * @param string $friendlyName A human readable description of this resource
- */
- public function __construct($friendlyName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A human readable description of this resource, up to 64 characters.
- *
- * @param string $friendlyName A human readable description of this resource
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Accounts.V1.UpdatePublicKeyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyPage.php b/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyPage.php
deleted file mode 100644
index 076727d..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/Credential/PublicKeyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PublicKeyInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.PublicKeyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialInstance.php b/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialInstance.php
deleted file mode 100644
index 09cd586..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialInstance.php
+++ /dev/null
@@ -1,59 +0,0 @@
-solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.CredentialInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialList.php b/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialList.php
deleted file mode 100644
index e460cfb..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialList.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array();
- }
-
- /**
- * Access the publicKey
- */
- protected function getPublicKey() {
- if (!$this->_publicKey) {
- $this->_publicKey = new PublicKeyList($this->version);
- }
-
- return $this->_publicKey;
- }
-
- /**
- * Access the aws
- */
- protected function getAws() {
- if (!$this->_aws) {
- $this->_aws = new AwsList($this->version);
- }
-
- return $this->_aws;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialPage.php b/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialPage.php
deleted file mode 100644
index 922e6a7..0000000
--- a/public/twilio-php/Twilio/Rest/Accounts/V1/CredentialPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Accounts.V1.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api.php b/public/twilio-php/Twilio/Rest/Api.php
deleted file mode 100644
index 5534b39..0000000
--- a/public/twilio-php/Twilio/Rest/Api.php
+++ /dev/null
@@ -1,457 +0,0 @@
-baseUrl = 'https://api.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010 Version v2010 of api
- */
- protected function getV2010() {
- if (!$this->_v2010) {
- $this->_v2010 = new V2010($this);
- }
- return $this->_v2010;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\AccountContext Account provided as the
- * authenticating account
- */
- protected function getAccount() {
- return $this->v2010->account;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\AccountList
- */
- protected function getAccounts() {
- return $this->v2010->accounts;
- }
-
- /**
- * @param string $sid Fetch by unique Account Sid
- * @return \Twilio\Rest\Api\V2010\AccountContext
- */
- protected function contextAccounts($sid) {
- return $this->v2010->accounts($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AddressList
- */
- protected function getAddresses() {
- return $this->v2010->account->addresses;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\AddressContext
- */
- protected function contextAddresses($sid) {
- return $this->v2010->account->addresses($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationList
- */
- protected function getApplications() {
- return $this->v2010->account->applications;
- }
-
- /**
- * @param string $sid Fetch by unique Application Sid
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationContext
- */
- protected function contextApplications($sid) {
- return $this->v2010->account->applications($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList
- */
- protected function getAuthorizedConnectApps() {
- return $this->v2010->account->authorizedConnectApps;
- }
-
- /**
- * @param string $connectAppSid The connect_app_sid
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppContext
- */
- protected function contextAuthorizedConnectApps($connectAppSid) {
- return $this->v2010->account->authorizedConnectApps($connectAppSid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList
- */
- protected function getAvailablePhoneNumbers() {
- return $this->v2010->account->availablePhoneNumbers;
- }
-
- /**
- * @param string $countryCode The country_code
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryContext
- */
- protected function contextAvailablePhoneNumbers($countryCode) {
- return $this->v2010->account->availablePhoneNumbers($countryCode);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\BalanceList
- */
- protected function getBalance() {
- return $this->v2010->account->balance;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\CallList
- */
- protected function getCalls() {
- return $this->v2010->account->calls;
- }
-
- /**
- * @param string $sid Call Sid that uniquely identifies the Call to fetch
- * @return \Twilio\Rest\Api\V2010\Account\CallContext
- */
- protected function contextCalls($sid) {
- return $this->v2010->account->calls($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceList
- */
- protected function getConferences() {
- return $this->v2010->account->conferences;
- }
-
- /**
- * @param string $sid Fetch by unique conference Sid
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceContext
- */
- protected function contextConferences($sid) {
- return $this->v2010->account->conferences($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppList
- */
- protected function getConnectApps() {
- return $this->v2010->account->connectApps;
- }
-
- /**
- * @param string $sid Fetch by unique connect-app Sid
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppContext
- */
- protected function contextConnectApps($sid) {
- return $this->v2010->account->connectApps($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList
- */
- protected function getIncomingPhoneNumbers() {
- return $this->v2010->account->incomingPhoneNumbers;
- }
-
- /**
- * @param string $sid Fetch by unique incoming-phone-number Sid
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext
- */
- protected function contextIncomingPhoneNumbers($sid) {
- return $this->v2010->account->incomingPhoneNumbers($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\KeyList
- */
- protected function getKeys() {
- return $this->v2010->account->keys;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\KeyContext
- */
- protected function contextKeys($sid) {
- return $this->v2010->account->keys($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\MessageList
- */
- protected function getMessages() {
- return $this->v2010->account->messages;
- }
-
- /**
- * @param string $sid Fetch by unique message Sid
- * @return \Twilio\Rest\Api\V2010\Account\MessageContext
- */
- protected function contextMessages($sid) {
- return $this->v2010->account->messages($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NewKeyList
- */
- protected function getNewKeys() {
- return $this->v2010->account->newKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList
- */
- protected function getNewSigningKeys() {
- return $this->v2010->account->newSigningKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NotificationList
- */
- protected function getNotifications() {
- return $this->v2010->account->notifications;
- }
-
- /**
- * @param string $sid Fetch by unique notification Sid
- * @return \Twilio\Rest\Api\V2010\Account\NotificationContext
- */
- protected function contextNotifications($sid) {
- return $this->v2010->account->notifications($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
- */
- protected function getOutgoingCallerIds() {
- return $this->v2010->account->outgoingCallerIds;
- }
-
- /**
- * @param string $sid Fetch by unique outgoing-caller-id Sid
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdContext
- */
- protected function contextOutgoingCallerIds($sid) {
- return $this->v2010->account->outgoingCallerIds($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\QueueList
- */
- protected function getQueues() {
- return $this->v2010->account->queues;
- }
-
- /**
- * @param string $sid Fetch by unique queue Sid
- * @return \Twilio\Rest\Api\V2010\Account\QueueContext
- */
- protected function contextQueues($sid) {
- return $this->v2010->account->queues($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\RecordingList
- */
- protected function getRecordings() {
- return $this->v2010->account->recordings;
- }
-
- /**
- * @param string $sid Fetch by unique recording SID
- * @return \Twilio\Rest\Api\V2010\Account\RecordingContext
- */
- protected function contextRecordings($sid) {
- return $this->v2010->account->recordings($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyList
- */
- protected function getSigningKeys() {
- return $this->v2010->account->signingKeys;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyContext
- */
- protected function contextSigningKeys($sid) {
- return $this->v2010->account->signingKeys($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\SipList
- */
- protected function getSip() {
- return $this->v2010->account->sip;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeList
- */
- protected function getShortCodes() {
- return $this->v2010->account->shortCodes;
- }
-
- /**
- * @param string $sid Fetch by unique short-code Sid
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeContext
- */
- protected function contextShortCodes($sid) {
- return $this->v2010->account->shortCodes($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\TokenList
- */
- protected function getTokens() {
- return $this->v2010->account->tokens;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionList
- */
- protected function getTranscriptions() {
- return $this->v2010->account->transcriptions;
- }
-
- /**
- * @param string $sid Fetch by unique transcription SID
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionContext
- */
- protected function contextTranscriptions($sid) {
- return $this->v2010->account->transcriptions($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\UsageList
- */
- protected function getUsage() {
- return $this->v2010->account->usage;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList
- */
- protected function getValidationRequests() {
- return $this->v2010->account->validationRequests;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010.php b/public/twilio-php/Twilio/Rest/Api/V2010.php
deleted file mode 100644
index dc9affe..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010.php
+++ /dev/null
@@ -1,347 +0,0 @@
-version = '2010-04-01';
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\AccountList
- */
- protected function getAccounts() {
- if (!$this->_accounts) {
- $this->_accounts = new AccountList($this);
- }
- return $this->_accounts;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\AccountContext Account provided as the
- * authenticating account
- */
- protected function getAccount() {
- if (!$this->_account) {
- $this->_account = new AccountContext(
- $this,
- $this->domain->getClient()->getAccountSid()
- );
- }
- return $this->_account;
- }
-
- /**
- * Setter to override the primary account
- *
- * @param AccountContext|AccountInstance $account account to use as the primary
- * account
- */
- public function setAccount($account) {
- $this->_account = $account;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AddressList
- */
- protected function getAddresses() {
- return $this->account->addresses;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationList
- */
- protected function getApplications() {
- return $this->account->applications;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList
- */
- protected function getAuthorizedConnectApps() {
- return $this->account->authorizedConnectApps;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList
- */
- protected function getAvailablePhoneNumbers() {
- return $this->account->availablePhoneNumbers;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\BalanceList
- */
- protected function getBalance() {
- return $this->account->balance;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\CallList
- */
- protected function getCalls() {
- return $this->account->calls;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceList
- */
- protected function getConferences() {
- return $this->account->conferences;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppList
- */
- protected function getConnectApps() {
- return $this->account->connectApps;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList
- */
- protected function getIncomingPhoneNumbers() {
- return $this->account->incomingPhoneNumbers;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\KeyList
- */
- protected function getKeys() {
- return $this->account->keys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\MessageList
- */
- protected function getMessages() {
- return $this->account->messages;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NewKeyList
- */
- protected function getNewKeys() {
- return $this->account->newKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList
- */
- protected function getNewSigningKeys() {
- return $this->account->newSigningKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NotificationList
- */
- protected function getNotifications() {
- return $this->account->notifications;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
- */
- protected function getOutgoingCallerIds() {
- return $this->account->outgoingCallerIds;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\QueueList
- */
- protected function getQueues() {
- return $this->account->queues;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\RecordingList
- */
- protected function getRecordings() {
- return $this->account->recordings;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyList
- */
- protected function getSigningKeys() {
- return $this->account->signingKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\SipList
- */
- protected function getSip() {
- return $this->account->sip;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeList
- */
- protected function getShortCodes() {
- return $this->account->shortCodes;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\TokenList
- */
- protected function getTokens() {
- return $this->account->tokens;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionList
- */
- protected function getTranscriptions() {
- return $this->account->transcriptions;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\UsageList
- */
- protected function getUsage() {
- return $this->account->usage;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList
- */
- protected function getValidationRequests() {
- return $this->account->validationRequests;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberInstance.php
deleted file mode 100644
index 10ecf8b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberInstance.php
+++ /dev/null
@@ -1,121 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'smsApplicationSid' => Values::array_get($payload, 'sms_application_sid'),
- 'voiceApplicationSid' => Values::array_get($payload, 'voice_application_sid'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'emergencyStatus' => Values::array_get($payload, 'emergency_status'),
- 'emergencyAddressSid' => Values::array_get($payload, 'emergency_address_sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'addressSid' => $addressSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DependentPhoneNumberInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberList.php
deleted file mode 100644
index 7de561c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberList.php
+++ /dev/null
@@ -1,131 +0,0 @@
-solution = array('accountSid' => $accountSid, 'addressSid' => $addressSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Addresses/' . rawurlencode($addressSid) . '/DependentPhoneNumbers.json';
- }
-
- /**
- * Streams DependentPhoneNumberInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DependentPhoneNumberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DependentPhoneNumberInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DependentPhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DependentPhoneNumberInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DependentPhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DependentPhoneNumberInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DependentPhoneNumberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DependentPhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DependentPhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberPage.php
deleted file mode 100644
index 65b3b8f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DependentPhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['addressSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DependentPhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressContext.php
deleted file mode 100644
index 3bf91db..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressContext.php
+++ /dev/null
@@ -1,174 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Addresses/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Deletes the AddressInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a AddressInstance
- *
- * @return AddressInstance Fetched AddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AddressInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the AddressInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AddressInstance Updated AddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'CustomerName' => $options['customerName'],
- 'Street' => $options['street'],
- 'City' => $options['city'],
- 'Region' => $options['region'],
- 'PostalCode' => $options['postalCode'],
- 'EmergencyEnabled' => Serialize::booleanToString($options['emergencyEnabled']),
- 'AutoCorrectAddress' => Serialize::booleanToString($options['autoCorrectAddress']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AddressInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the dependentPhoneNumbers
- *
- * @return \Twilio\Rest\Api\V2010\Account\Address\DependentPhoneNumberList
- */
- protected function getDependentPhoneNumbers() {
- if (!$this->_dependentPhoneNumbers) {
- $this->_dependentPhoneNumbers = new DependentPhoneNumberList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_dependentPhoneNumbers;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AddressContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressInstance.php
deleted file mode 100644
index 7ce0aa7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressInstance.php
+++ /dev/null
@@ -1,163 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'city' => Values::array_get($payload, 'city'),
- 'customerName' => Values::array_get($payload, 'customer_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'region' => Values::array_get($payload, 'region'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'street' => Values::array_get($payload, 'street'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'emergencyEnabled' => Values::array_get($payload, 'emergency_enabled'),
- 'validated' => Values::array_get($payload, 'validated'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\AddressContext Context for this
- * AddressInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AddressContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the AddressInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a AddressInstance
- *
- * @return AddressInstance Fetched AddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AddressInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AddressInstance Updated AddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the dependentPhoneNumbers
- *
- * @return \Twilio\Rest\Api\V2010\Account\Address\DependentPhoneNumberList
- */
- protected function getDependentPhoneNumbers() {
- return $this->proxy()->dependentPhoneNumbers;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AddressInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressList.php
deleted file mode 100644
index f7574ae..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressList.php
+++ /dev/null
@@ -1,190 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Addresses.json';
- }
-
- /**
- * Create a new AddressInstance
- *
- * @param string $customerName Your name or business name, or that of your
- * customer.
- * @param string $street The number and street address where you or your
- * customer is located.
- * @param string $city The city in which you or your customer is located.
- * @param string $region The state or region in which you or your customer is
- * located.
- * @param string $postalCode The postal code in which you or your customer is
- * located.
- * @param string $isoCountry The ISO country code of your or your customer's
- * address.
- * @param array|Options $options Optional Arguments
- * @return AddressInstance Newly created AddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'CustomerName' => $customerName,
- 'Street' => $street,
- 'City' => $city,
- 'Region' => $region,
- 'PostalCode' => $postalCode,
- 'IsoCountry' => $isoCountry,
- 'FriendlyName' => $options['friendlyName'],
- 'EmergencyEnabled' => Serialize::booleanToString($options['emergencyEnabled']),
- 'AutoCorrectAddress' => Serialize::booleanToString($options['autoCorrectAddress']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AddressInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Streams AddressInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AddressInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AddressInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AddressInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AddressInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'CustomerName' => $options['customerName'],
- 'FriendlyName' => $options['friendlyName'],
- 'IsoCountry' => $options['isoCountry'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AddressPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AddressInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AddressInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AddressPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AddressContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\AddressContext
- */
- public function getContext($sid) {
- return new AddressContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AddressList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressOptions.php
deleted file mode 100644
index a423c32..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressOptions.php
+++ /dev/null
@@ -1,334 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['emergencyEnabled'] = $emergencyEnabled;
- $this->options['autoCorrectAddress'] = $autoCorrectAddress;
- }
-
- /**
- * A human-readable description of the new address. Maximum 64 characters.
- *
- * @param string $friendlyName A human-readable description of the new address.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The emergency_enabled
- *
- * @param boolean $emergencyEnabled The emergency_enabled
- * @return $this Fluent Builder
- */
- public function setEmergencyEnabled($emergencyEnabled) {
- $this->options['emergencyEnabled'] = $emergencyEnabled;
- return $this;
- }
-
- /**
- * If you don't set a value for this parameter, or if you set it to `true`, then the system will, if necessary, auto-correct the address you provide. If you don't want the system to auto-correct the address, you will explicitly need to set this value to `false`.
- *
- * @param boolean $autoCorrectAddress If you don't set a value for this
- * parameter, or if you set it to true, then
- * the system will, if necessary,
- * auto-correct the address you provide.
- * @return $this Fluent Builder
- */
- public function setAutoCorrectAddress($autoCorrectAddress) {
- $this->options['autoCorrectAddress'] = $autoCorrectAddress;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateAddressOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateAddressOptions extends Options {
- /**
- * @param string $friendlyName A human-readable description of the address.
- * @param string $customerName Your name or business name, or that of your
- * customer.
- * @param string $street The number and street address where you or your
- * customer is located.
- * @param string $city The city in which you or your customer is located.
- * @param string $region The state or region in which you or your customer is
- * located.
- * @param string $postalCode The postal code in which you or your customer is
- * located.
- * @param boolean $emergencyEnabled The emergency_enabled
- * @param boolean $autoCorrectAddress If you don't set a value for this
- * parameter, or if you set it to true, then
- * the system will, if necessary,
- * auto-correct the address you provide.
- */
- public function __construct($friendlyName = Values::NONE, $customerName = Values::NONE, $street = Values::NONE, $city = Values::NONE, $region = Values::NONE, $postalCode = Values::NONE, $emergencyEnabled = Values::NONE, $autoCorrectAddress = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['customerName'] = $customerName;
- $this->options['street'] = $street;
- $this->options['city'] = $city;
- $this->options['region'] = $region;
- $this->options['postalCode'] = $postalCode;
- $this->options['emergencyEnabled'] = $emergencyEnabled;
- $this->options['autoCorrectAddress'] = $autoCorrectAddress;
- }
-
- /**
- * A human-readable description of the address. Maximum 64 characters.
- *
- * @param string $friendlyName A human-readable description of the address.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Your name or business name, or that of your customer.
- *
- * @param string $customerName Your name or business name, or that of your
- * customer.
- * @return $this Fluent Builder
- */
- public function setCustomerName($customerName) {
- $this->options['customerName'] = $customerName;
- return $this;
- }
-
- /**
- * The number and street address where you or your customer is located.
- *
- * @param string $street The number and street address where you or your
- * customer is located.
- * @return $this Fluent Builder
- */
- public function setStreet($street) {
- $this->options['street'] = $street;
- return $this;
- }
-
- /**
- * The city in which you or your customer is located.
- *
- * @param string $city The city in which you or your customer is located.
- * @return $this Fluent Builder
- */
- public function setCity($city) {
- $this->options['city'] = $city;
- return $this;
- }
-
- /**
- * The state or region in which you or your customer is located.
- *
- * @param string $region The state or region in which you or your customer is
- * located.
- * @return $this Fluent Builder
- */
- public function setRegion($region) {
- $this->options['region'] = $region;
- return $this;
- }
-
- /**
- * The postal code in which you or your customer is located.
- *
- * @param string $postalCode The postal code in which you or your customer is
- * located.
- * @return $this Fluent Builder
- */
- public function setPostalCode($postalCode) {
- $this->options['postalCode'] = $postalCode;
- return $this;
- }
-
- /**
- * The emergency_enabled
- *
- * @param boolean $emergencyEnabled The emergency_enabled
- * @return $this Fluent Builder
- */
- public function setEmergencyEnabled($emergencyEnabled) {
- $this->options['emergencyEnabled'] = $emergencyEnabled;
- return $this;
- }
-
- /**
- * If you don't set a value for this parameter, or if you set it to `true`, then the system will, if necessary, auto-correct the address you provide. If you don't want the system to auto-correct the address, you will explicitly need to set this value to `false`.
- *
- * @param boolean $autoCorrectAddress If you don't set a value for this
- * parameter, or if you set it to true, then
- * the system will, if necessary,
- * auto-correct the address you provide.
- * @return $this Fluent Builder
- */
- public function setAutoCorrectAddress($autoCorrectAddress) {
- $this->options['autoCorrectAddress'] = $autoCorrectAddress;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateAddressOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadAddressOptions extends Options {
- /**
- * @param string $customerName Only return the Address resources with customer
- * names that exactly match this name.
- * @param string $friendlyName Only return the Address resources with friendly
- * names that exactly match this name.
- * @param string $isoCountry Only return the Address resources in this country.
- */
- public function __construct($customerName = Values::NONE, $friendlyName = Values::NONE, $isoCountry = Values::NONE) {
- $this->options['customerName'] = $customerName;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['isoCountry'] = $isoCountry;
- }
-
- /**
- * Only return the Address resources with customer names that exactly match this name.
- *
- * @param string $customerName Only return the Address resources with customer
- * names that exactly match this name.
- * @return $this Fluent Builder
- */
- public function setCustomerName($customerName) {
- $this->options['customerName'] = $customerName;
- return $this;
- }
-
- /**
- * Only return the Address resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName Only return the Address resources with friendly
- * names that exactly match this name.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only return the Address resources in this country.
- *
- * @param string $isoCountry Only return the Address resources in this country.
- * @return $this Fluent Builder
- */
- public function setIsoCountry($isoCountry) {
- $this->options['isoCountry'] = $isoCountry;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadAddressOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressPage.php
deleted file mode 100644
index 5b21e67..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AddressPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AddressInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AddressPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationContext.php
deleted file mode 100644
index 22319d2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationContext.php
+++ /dev/null
@@ -1,124 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Applications/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Deletes the ApplicationInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a ApplicationInstance
- *
- * @return ApplicationInstance Fetched ApplicationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ApplicationInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ApplicationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ApplicationInstance Updated ApplicationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'ApiVersion' => $options['apiVersion'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'SmsUrl' => $options['smsUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsStatusCallback' => $options['smsStatusCallback'],
- 'MessageStatusCallback' => $options['messageStatusCallback'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ApplicationInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ApplicationContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationInstance.php
deleted file mode 100644
index c5b4d26..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationInstance.php
+++ /dev/null
@@ -1,163 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'messageStatusCallback' => Values::array_get($payload, 'message_status_callback'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsStatusCallback' => Values::array_get($payload, 'sms_status_callback'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationContext Context for this
- * ApplicationInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ApplicationContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the ApplicationInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a ApplicationInstance
- *
- * @return ApplicationInstance Fetched ApplicationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ApplicationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ApplicationInstance Updated ApplicationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ApplicationInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationList.php
deleted file mode 100644
index f79450e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationList.php
+++ /dev/null
@@ -1,183 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Applications.json';
- }
-
- /**
- * Create a new ApplicationInstance
- *
- * @param string $friendlyName A human readable description of the application
- * @param array|Options $options Optional Arguments
- * @return ApplicationInstance Newly created ApplicationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'ApiVersion' => $options['apiVersion'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'SmsUrl' => $options['smsUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsStatusCallback' => $options['smsStatusCallback'],
- 'MessageStatusCallback' => $options['messageStatusCallback'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ApplicationInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Streams ApplicationInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ApplicationInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ApplicationInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ApplicationInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ApplicationInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ApplicationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ApplicationInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ApplicationInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ApplicationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ApplicationContext
- *
- * @param string $sid Fetch by unique Application Sid
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationContext
- */
- public function getContext($sid) {
- return new ApplicationContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ApplicationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationOptions.php
deleted file mode 100644
index 394e62e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationOptions.php
+++ /dev/null
@@ -1,540 +0,0 @@
-options['apiVersion'] = $apiVersion;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsStatusCallback'] = $smsStatusCallback;
- $this->options['messageStatusCallback'] = $messageStatusCallback;
- }
-
- /**
- * Requests to this application's URLs will start a new TwiML session with this API version. Either `2010-04-01` or `2008-08-01`. Defaults to your account's default API version.
- *
- * @param string $apiVersion The API version to use
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials a phone number assigned to this application.
- *
- * @param string $voiceUrl URL Twilio will make requests to when relieving a
- * call
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceMethod HTTP method to use with the URL
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request if an error occurs retrieving or executing the TwiML requested by `Url`.
- *
- * @param string $voiceFallbackUrl Fallback URL
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceFallbackMethod HTTP method to use with the fallback url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback URL to hit with status updates
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod HTTP method to use with the status
- * callback
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Do a lookup of a caller's name from the CNAM database and post it to your app. Either `true` or `false`. Defaults to `false`.
- *
- * @param boolean $voiceCallerIdLookup True or False
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The URL Twilio will request when a phone number assigned to this application receives an incoming SMS message.
- *
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsMethod HTTP method to use with sms_url
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl Fallback URL if there's an error parsing TwiML
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsFallbackMethod HTTP method to use with sms_fallback_method
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * Twilio will make a `POST` request to this URL to pass status parameters (such as sent or failed) to your application if you specify this application's `Sid` as the `ApplicationSid` on an [outgoing SMS request](https://www.twilio.com/docs/sms/send-messages).
- *
- * @param string $smsStatusCallback URL Twilio with request with status updates
- * @return $this Fluent Builder
- */
- public function setSmsStatusCallback($smsStatusCallback) {
- $this->options['smsStatusCallback'] = $smsStatusCallback;
- return $this;
- }
-
- /**
- * Twilio will make a `POST` request to this URL to pass status parameters (such as sent or failed) to your application if you use the `/Messages` endpoint to send the message and specify this application's `Sid` as the `ApplicationSid` on an [outgoing SMS request](https://www.twilio.com/docs/sms/send-messages).
- *
- * @param string $messageStatusCallback URL to make requests to with status
- * updates
- * @return $this Fluent Builder
- */
- public function setMessageStatusCallback($messageStatusCallback) {
- $this->options['messageStatusCallback'] = $messageStatusCallback;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateApplicationOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadApplicationOptions extends Options {
- /**
- * @param string $friendlyName Filter by friendly name
- */
- public function __construct($friendlyName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * Only return application resources with friendly names that match exactly with this name
- *
- * @param string $friendlyName Filter by friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadApplicationOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateApplicationOptions extends Options {
- /**
- * @param string $friendlyName Human readable description of this resource
- * @param string $apiVersion The API version to use
- * @param string $voiceUrl URL Twilio will make requests to when relieving a
- * call
- * @param string $voiceMethod HTTP method to use with the URL
- * @param string $voiceFallbackUrl Fallback URL
- * @param string $voiceFallbackMethod HTTP method to use with the fallback url
- * @param string $statusCallback URL to hit with status updates
- * @param string $statusCallbackMethod HTTP method to use with the status
- * callback
- * @param boolean $voiceCallerIdLookup True or False
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @param string $smsMethod HTTP method to use with sms_url
- * @param string $smsFallbackUrl Fallback URL if there's an error parsing TwiML
- * @param string $smsFallbackMethod HTTP method to use with sms_fallback_method
- * @param string $smsStatusCallback URL Twilio with request with status updates
- * @param string $messageStatusCallback URL to make requests to with status
- * updates
- */
- public function __construct($friendlyName = Values::NONE, $apiVersion = Values::NONE, $voiceUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceFallbackMethod = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $voiceCallerIdLookup = Values::NONE, $smsUrl = Values::NONE, $smsMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsFallbackMethod = Values::NONE, $smsStatusCallback = Values::NONE, $messageStatusCallback = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['apiVersion'] = $apiVersion;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsStatusCallback'] = $smsStatusCallback;
- $this->options['messageStatusCallback'] = $messageStatusCallback;
- }
-
- /**
- * A human readable description of the application, with maximum length 64 characters.
- *
- * @param string $friendlyName Human readable description of this resource
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Requests to this application's URLs will start a new TwiML session with this API version. Either `2010-04-01` or `2008-08-01`.
- *
- * @param string $apiVersion The API version to use
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials a phone number assigned to this application.
- *
- * @param string $voiceUrl URL Twilio will make requests to when relieving a
- * call
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`.
- *
- * @param string $voiceMethod HTTP method to use with the URL
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `VoiceUrl`.
- *
- * @param string $voiceFallbackUrl Fallback URL
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the `VoiceFallbackUrl`. Either `GET` or `POST`.
- *
- * @param string $voiceFallbackMethod HTTP method to use with the fallback url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback URL to hit with status updates
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`.
- *
- * @param string $statusCallbackMethod HTTP method to use with the status
- * callback
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Look up the caller's caller-ID name from the CNAM database (additional charges apply). Either `true` or `false`.
- *
- * @param boolean $voiceCallerIdLookup True or False
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The URL Twilio will request when a phone number assigned to this application receives an incoming SMS message.
- *
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when making requests to the `SmsUrl`. Either `GET` or `POST`.
- *
- * @param string $smsMethod HTTP method to use with sms_url
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl Fallback URL if there's an error parsing TwiML
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Either `GET` or `POST`.
- *
- * @param string $smsFallbackMethod HTTP method to use with sms_fallback_method
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will `POST` to when a message is sent via the `/SMS/Messages` endpoint if you specify the `Sid` of this application on an [outgoing SMS request](https://www.twilio.com/docs/sms/send-messages).
- *
- * @param string $smsStatusCallback URL Twilio with request with status updates
- * @return $this Fluent Builder
- */
- public function setSmsStatusCallback($smsStatusCallback) {
- $this->options['smsStatusCallback'] = $smsStatusCallback;
- return $this;
- }
-
- /**
- * Twilio will make a `POST` request to this URL to pass status parameters (such as sent or failed) to your application if you use the `/Messages` endpoint to send the message and specify this application's `Sid` as the `ApplicationSid` on an [outgoing SMS request](https://www.twilio.com/docs/sms/send-messages).
- *
- * @param string $messageStatusCallback URL to make requests to with status
- * updates
- * @return $this Fluent Builder
- */
- public function setMessageStatusCallback($messageStatusCallback) {
- $this->options['messageStatusCallback'] = $messageStatusCallback;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateApplicationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationPage.php
deleted file mode 100644
index 3d5a8bd..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ApplicationPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ApplicationInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ApplicationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppContext.php
deleted file mode 100644
index 531ca1a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppContext.php
+++ /dev/null
@@ -1,69 +0,0 @@
-solution = array('accountSid' => $accountSid, 'connectAppSid' => $connectAppSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AuthorizedConnectApps/' . rawurlencode($connectAppSid) . '.json';
- }
-
- /**
- * Fetch a AuthorizedConnectAppInstance
- *
- * @return AuthorizedConnectAppInstance Fetched AuthorizedConnectAppInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthorizedConnectAppInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['connectAppSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthorizedConnectAppContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppInstance.php
deleted file mode 100644
index 972697f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppInstance.php
+++ /dev/null
@@ -1,125 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'connectAppCompanyName' => Values::array_get($payload, 'connect_app_company_name'),
- 'connectAppDescription' => Values::array_get($payload, 'connect_app_description'),
- 'connectAppFriendlyName' => Values::array_get($payload, 'connect_app_friendly_name'),
- 'connectAppHomepageUrl' => Values::array_get($payload, 'connect_app_homepage_url'),
- 'connectAppSid' => Values::array_get($payload, 'connect_app_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'permissions' => Values::array_get($payload, 'permissions'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'connectAppSid' => $connectAppSid ?: $this->properties['connectAppSid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppContext Context
- * for this
- * AuthorizedConnectAppInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AuthorizedConnectAppContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['connectAppSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AuthorizedConnectAppInstance
- *
- * @return AuthorizedConnectAppInstance Fetched AuthorizedConnectAppInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthorizedConnectAppInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppList.php
deleted file mode 100644
index d3dda9e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AuthorizedConnectApps.json';
- }
-
- /**
- * Streams AuthorizedConnectAppInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AuthorizedConnectAppInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AuthorizedConnectAppInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AuthorizedConnectAppInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AuthorizedConnectAppInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthorizedConnectAppPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AuthorizedConnectAppInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AuthorizedConnectAppInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AuthorizedConnectAppPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AuthorizedConnectAppContext
- *
- * @param string $connectAppSid The connect_app_sid
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppContext
- */
- public function getContext($connectAppSid) {
- return new AuthorizedConnectAppContext(
- $this->version,
- $this->solution['accountSid'],
- $connectAppSid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthorizedConnectAppList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppPage.php
deleted file mode 100644
index 72f8aad..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthorizedConnectAppInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthorizedConnectAppPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalInstance.php
deleted file mode 100644
index 337c57f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LocalInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalList.php
deleted file mode 100644
index 6424728..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/Local.json';
- }
-
- /**
- * Streams LocalInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads LocalInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return LocalInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of LocalInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of LocalInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new LocalPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of LocalInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of LocalInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new LocalPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LocalList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.php
deleted file mode 100644
index 380ed07..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.php
+++ /dev/null
@@ -1,356 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * Find phone numbers in the specified area code. (US and Canada only)
- *
- * @param integer $areaCode Find phone numbers in the specified area code.
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * A pattern on which to match phone numbers. Valid characters are `'*'` and `[0-9a-zA-Z]`. The `'*'` character will match any single digit. See [Example 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3) below. *NOTE:* Patterns must be at least two characters long.
- *
- * @param string $contains A pattern on which to match phone numbers.
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive text messages. Possible values are `true` or `false`.
- *
- * @param boolean $smsEnabled This indicates whether the phone numbers can
- * receive text messages.
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive MMS messages. Possible values are `true` or `false`.
- *
- * @param boolean $mmsEnabled This indicates whether the phone numbers can
- * receive MMS messages.
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive calls. Possible values are `true` or `false`.
- *
- * @param boolean $voiceEnabled This indicates whether the phone numbers can
- * receive calls.
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require any [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with an Address required.
- *
- * @param boolean $excludeAllAddressRequired Indicates whether the response
- * includes phone numbers which
- * require any Address.
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require a local [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with a local Address required.
- *
- * @param boolean $excludeLocalAddressRequired Indicates whether the response
- * includes phone numbers which
- * require a local Address.
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require a foreign [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with a foreign Address required.
- *
- * @param boolean $excludeForeignAddressRequired Indicates whether the response
- * includes phone numbers which
- * require a foreign Address.
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include phone numbers new to the Twilio platform.
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Given a phone number, find a geographically close number within `Distance` miles. Distance defaults to 25 miles. *Limited to US and Canadian phone numbers.*
- *
- * @param string $nearNumber Given a phone number, find a geographically close
- * number within Distance miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * Given a latitude/longitude pair `lat,long` find geographically close numbers within `Distance` miles. *Limited to US and Canadian phone numbers.*
- *
- * @param string $nearLatLong Given a latitude/longitude pair lat,long find
- * geographically close numbers within Distance
- * miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * Specifies the search radius for a `Near-` query in miles. If not specified this defaults to 25 miles. Maximum searchable distance is 500 miles. *Limited to US and Canadian phone numbers.*
- *
- * @param integer $distance Specifies the search radius for a Near- query in
- * miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inPostalCode Limit results to a particular postal code.
- * (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * Limit results to a particular region (i.e. State/Province). Given a phone number, search within the same Region as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inRegion Limit results to a particular region. (US/Canada
- * only)
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires InLata to be set as well. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inRateCenter Limit results to a specific rate center, or
- * given a phone number search within the same rate
- * center as that number. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * Limit results to a specific Local access and transport area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inLata Limit results to a specific Local access and transport
- * area. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * Limit results to a particular locality (i.e. City). Given a phone number, search within the same Locality as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inLocality Limit results to a particular locality. (US/Canada
- * only)
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive faxes. Possible values are `true` or `false`.
- *
- * @param boolean $faxEnabled This indicates whether the phone numbers can
- * receive faxes.
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadLocalOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalPage.php
deleted file mode 100644
index eeba677..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new LocalInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LocalPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineInstance.php
deleted file mode 100644
index 9594fc2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MachineToMachineInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineList.php
deleted file mode 100644
index aefe5df..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/MachineToMachine.json';
- }
-
- /**
- * Streams MachineToMachineInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MachineToMachineInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MachineToMachineInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MachineToMachineInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MachineToMachineInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MachineToMachinePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MachineToMachineInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MachineToMachineInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MachineToMachinePage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MachineToMachineList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.php
deleted file mode 100644
index 1dd6faa..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.php
+++ /dev/null
@@ -1,302 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * The area_code
- *
- * @param integer $areaCode The area_code
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * The contains
- *
- * @param string $contains The contains
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * The sms_enabled
- *
- * @param boolean $smsEnabled The sms_enabled
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * The mms_enabled
- *
- * @param boolean $mmsEnabled The mms_enabled
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * The voice_enabled
- *
- * @param boolean $voiceEnabled The voice_enabled
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * The exclude_all_address_required
- *
- * @param boolean $excludeAllAddressRequired The exclude_all_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_local_address_required
- *
- * @param boolean $excludeLocalAddressRequired The
- * exclude_local_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_foreign_address_required
- *
- * @param boolean $excludeForeignAddressRequired The
- * exclude_foreign_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * The beta
- *
- * @param boolean $beta The beta
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * The near_number
- *
- * @param string $nearNumber The near_number
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * The near_lat_long
- *
- * @param string $nearLatLong The near_lat_long
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * The distance
- *
- * @param integer $distance The distance
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * The in_postal_code
- *
- * @param string $inPostalCode The in_postal_code
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * The in_region
- *
- * @param string $inRegion The in_region
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * The in_rate_center
- *
- * @param string $inRateCenter The in_rate_center
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * The in_lata
- *
- * @param string $inLata The in_lata
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * The in_locality
- *
- * @param string $inLocality The in_locality
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * The fax_enabled
- *
- * @param boolean $faxEnabled The fax_enabled
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadMachineToMachineOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachinePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachinePage.php
deleted file mode 100644
index 824d191..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachinePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MachineToMachineInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MachineToMachinePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileInstance.php
deleted file mode 100644
index 4873a7c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MobileInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php
deleted file mode 100644
index a41fd0d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/Mobile.json';
- }
-
- /**
- * Streams MobileInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MobileInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MobileInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MobileInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MobileInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MobilePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MobileInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MobileInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MobilePage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MobileList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.php
deleted file mode 100644
index cb714c4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.php
+++ /dev/null
@@ -1,353 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * Find phone numbers in the specified area code. (US and Canada only)
- *
- * @param integer $areaCode Find phone numbers in the specified area code.
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * A pattern on which to match phone numbers. Valid characters are `'*'` and `[0-9a-zA-Z]`. The `'*'` character will match any single digit. See [Example 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3) below. *NOTE:* Patterns must be at least two characters long.
- *
- * @param string $contains A pattern on which to match phone numbers.
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive text messages. Possible values are `true` or `false`.
- *
- * @param boolean $smsEnabled This indicates whether the phone numbers can
- * receive text messages.
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive MMS messages. Possible values are `true` or `false`.
- *
- * @param boolean $mmsEnabled This indicates whether the phone numbers can
- * receive MMS messages.
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive calls. Possible values are `true` or `false`.
- *
- * @param boolean $voiceEnabled This indicates whether the phone numbers can
- * receive calls.
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require any [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with an Address required.
- *
- * @param boolean $excludeAllAddressRequired Indicates whether the response
- * includes phone numbers which
- * require any Address.
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require a local [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with a local Address required.
- *
- * @param boolean $excludeLocalAddressRequired Indicates whether the response
- * includes phone numbers which
- * require a local Address.
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require a foreign [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with a foreign Address required.
- *
- * @param boolean $excludeForeignAddressRequired Indicates whether the response
- * includes phone numbers which
- * require a foreign Address.
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include phone numbers new to the Twilio platform.
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Given a phone number, find a geographically close number within `Distance` miles. Distance defaults to 25 miles. *Limited to US and Canadian phone numbers.*
- *
- * @param string $nearNumber Given a phone number, find a geographically close
- * number within Distance miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * Given a latitude/longitude pair `lat,long` find geographically close numbers within `Distance` miles. *Limited to US and Canadian phone numbers.*
- *
- * @param string $nearLatLong Given a latitude/longitude pair lat,long find
- * geographically close numbers within Distance
- * miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * Specifies the search radius for a `Near-` query in miles. If not specified this defaults to 25 miles. Maximum searchable distance is 500 miles. *Limited to US and Canadian phone numbers.*
- *
- * @param integer $distance Specifies the search radius for a Near- query in
- * miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inPostalCode Limit results to a particular postal code.
- * (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * Limit results to a particular region (i.e. State/Province). Given a phone number, search within the same Region as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inRegion Limit results to a particular region. (US/Canada
- * only)
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires InLata to be set as well. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inRateCenter Limit results to a specific rate center, or
- * given a phone number search within the same rate
- * center as that number. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * Limit results to a specific Local access and transport area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inLata Limit results to a specific Local access and transport
- * area. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * Limit results to a particular locality (i.e. City). Given a phone number, search within the same Locality as that number.
- *
- * @param string $inLocality Limit results to a particular locality.
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive faxes. Possible values are `true` or `false`.
- *
- * @param boolean $faxEnabled This indicates whether the phone numbers can
- * receive faxes.
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadMobileOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobilePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobilePage.php
deleted file mode 100644
index 3f83eba..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobilePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MobileInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MobilePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalInstance.php
deleted file mode 100644
index d78d65f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NationalInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalList.php
deleted file mode 100644
index 44dfcc4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/National.json';
- }
-
- /**
- * Streams NationalInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads NationalInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return NationalInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of NationalInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of NationalInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NationalPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of NationalInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of NationalInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new NationalPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NationalList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.php
deleted file mode 100644
index a312f51..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.php
+++ /dev/null
@@ -1,302 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * The area_code
- *
- * @param integer $areaCode The area_code
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * The contains
- *
- * @param string $contains The contains
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * The sms_enabled
- *
- * @param boolean $smsEnabled The sms_enabled
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * The mms_enabled
- *
- * @param boolean $mmsEnabled The mms_enabled
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * The voice_enabled
- *
- * @param boolean $voiceEnabled The voice_enabled
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * The exclude_all_address_required
- *
- * @param boolean $excludeAllAddressRequired The exclude_all_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_local_address_required
- *
- * @param boolean $excludeLocalAddressRequired The
- * exclude_local_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_foreign_address_required
- *
- * @param boolean $excludeForeignAddressRequired The
- * exclude_foreign_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * The beta
- *
- * @param boolean $beta The beta
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * The near_number
- *
- * @param string $nearNumber The near_number
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * The near_lat_long
- *
- * @param string $nearLatLong The near_lat_long
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * The distance
- *
- * @param integer $distance The distance
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * The in_postal_code
- *
- * @param string $inPostalCode The in_postal_code
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * The in_region
- *
- * @param string $inRegion The in_region
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * The in_rate_center
- *
- * @param string $inRateCenter The in_rate_center
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * The in_lata
- *
- * @param string $inLata The in_lata
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * The in_locality
- *
- * @param string $inLocality The in_locality
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * The fax_enabled
- *
- * @param boolean $faxEnabled The fax_enabled
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadNationalOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalPage.php
deleted file mode 100644
index d20417b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NationalInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NationalPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostInstance.php
deleted file mode 100644
index 89da068..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SharedCostInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostList.php
deleted file mode 100644
index b4f8eb7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/SharedCost.json';
- }
-
- /**
- * Streams SharedCostInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SharedCostInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SharedCostInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SharedCostInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SharedCostInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SharedCostPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SharedCostInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SharedCostInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SharedCostPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SharedCostList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.php
deleted file mode 100644
index 7c4352f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.php
+++ /dev/null
@@ -1,302 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * The area_code
- *
- * @param integer $areaCode The area_code
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * The contains
- *
- * @param string $contains The contains
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * The sms_enabled
- *
- * @param boolean $smsEnabled The sms_enabled
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * The mms_enabled
- *
- * @param boolean $mmsEnabled The mms_enabled
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * The voice_enabled
- *
- * @param boolean $voiceEnabled The voice_enabled
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * The exclude_all_address_required
- *
- * @param boolean $excludeAllAddressRequired The exclude_all_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_local_address_required
- *
- * @param boolean $excludeLocalAddressRequired The
- * exclude_local_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_foreign_address_required
- *
- * @param boolean $excludeForeignAddressRequired The
- * exclude_foreign_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * The beta
- *
- * @param boolean $beta The beta
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * The near_number
- *
- * @param string $nearNumber The near_number
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * The near_lat_long
- *
- * @param string $nearLatLong The near_lat_long
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * The distance
- *
- * @param integer $distance The distance
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * The in_postal_code
- *
- * @param string $inPostalCode The in_postal_code
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * The in_region
- *
- * @param string $inRegion The in_region
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * The in_rate_center
- *
- * @param string $inRateCenter The in_rate_center
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * The in_lata
- *
- * @param string $inLata The in_lata
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * The in_locality
- *
- * @param string $inLocality The in_locality
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * The fax_enabled
- *
- * @param boolean $faxEnabled The fax_enabled
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadSharedCostOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostPage.php
deleted file mode 100644
index 26a9c41..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SharedCostInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SharedCostPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeInstance.php
deleted file mode 100644
index f357e5f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TollFreeInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeList.php
deleted file mode 100644
index 286be82..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/TollFree.json';
- }
-
- /**
- * Streams TollFreeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TollFreeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TollFreeInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TollFreeInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TollFreeInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TollFreePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TollFreeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TollFreeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TollFreePage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TollFreeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.php
deleted file mode 100644
index 09c2c66..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.php
+++ /dev/null
@@ -1,353 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * Find phone numbers in the specified area code. (US and Canada only)
- *
- * @param integer $areaCode Find phone numbers in the specified area code.
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * A pattern on which to match phone numbers. Valid characters are `'*'` and `[0-9a-zA-Z]`. The `'*'` character will match any single digit. See [Example 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3) below. *NOTE:* Patterns must be at least two characters long.
- *
- * @param string $contains A pattern on which to match phone numbers.
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive text messages. Possible values are `true` or `false`.
- *
- * @param boolean $smsEnabled This indicates whether the phone numbers can
- * receive text messages.
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive MMS messages. Possible values are `true` or `false`.
- *
- * @param boolean $mmsEnabled This indicates whether the phone numbers can
- * receive MMS messages.
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive calls. Possible values are `true` or `false`.
- *
- * @param boolean $voiceEnabled This indicates whether the phone numbers can
- * receive calls.
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require any [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with an Address required.
- *
- * @param boolean $excludeAllAddressRequired Indicates whether the response
- * includes phone numbers which
- * require any Address.
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require a local [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with a local Address required.
- *
- * @param boolean $excludeLocalAddressRequired Indicates whether the response
- * includes phone numbers which
- * require a local Address.
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * Indicates whether the response includes phone numbers which require a foreign [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are `true` or `false`. If not specified, the default is `false`, and results could include phone numbers with a foreign Address required.
- *
- * @param boolean $excludeForeignAddressRequired Indicates whether the response
- * includes phone numbers which
- * require a foreign Address.
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include phone numbers new to the Twilio platform.
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Given a phone number, find a geographically close number within `Distance` miles. Distance defaults to 25 miles. *Limited to US and Canadian phone numbers.*
- *
- * @param string $nearNumber Given a phone number, find a geographically close
- * number within Distance miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * Given a latitude/longitude pair `lat,long` find geographically close numbers within `Distance` miles. *Limited to US and Canadian phone numbers.*
- *
- * @param string $nearLatLong Given a latitude/longitude pair lat,long find
- * geographically close numbers within Distance
- * miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * Specifies the search radius for a `Near-` query in miles. If not specified this defaults to 25 miles. Maximum searchable distance is 500 miles. *Limited to US and Canadian phone numbers.*
- *
- * @param integer $distance Specifies the search radius for a Near- query in
- * miles. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inPostalCode Limit results to a particular postal code.
- * (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * Limit results to a particular region (i.e. State/Province). Given a phone number, search within the same Region as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inRegion Limit results to a particular region. (US/Canada
- * only)
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires InLata to be set as well. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inRateCenter Limit results to a specific rate center, or
- * given a phone number search within the same rate
- * center as that number. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * Limit results to a specific Local access and transport area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. *Limited to US and Canadian phone numbers.*
- *
- * @param string $inLata Limit results to a specific Local access and transport
- * area. (US/Canada only)
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * Limit results to a particular locality (i.e. City). Given a phone number, search within the same Locality as that number.
- *
- * @param string $inLocality Limit results to a particular locality.
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * This indicates whether the phone numbers can receive faxes. Possible values are `true` or `false`.
- *
- * @param boolean $faxEnabled This indicates whether the phone numbers can
- * receive faxes.
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadTollFreeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreePage.php
deleted file mode 100644
index 24f823a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TollFreeInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TollFreePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipInstance.php
deleted file mode 100644
index 229b93e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipInstance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-properties = array(
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'lata' => Values::array_get($payload, 'lata'),
- 'locality' => Values::array_get($payload, 'locality'),
- 'rateCenter' => Values::array_get($payload, 'rate_center'),
- 'latitude' => Values::array_get($payload, 'latitude'),
- 'longitude' => Values::array_get($payload, 'longitude'),
- 'region' => Values::array_get($payload, 'region'),
- 'postalCode' => Values::array_get($payload, 'postal_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.VoipInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipList.php
deleted file mode 100644
index 97b7bc9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '/Voip.json';
- }
-
- /**
- * Streams VoipInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads VoipInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return VoipInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of VoipInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of VoipInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'AreaCode' => $options['areaCode'],
- 'Contains' => $options['contains'],
- 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']),
- 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']),
- 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']),
- 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']),
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'NearNumber' => $options['nearNumber'],
- 'NearLatLong' => $options['nearLatLong'],
- 'Distance' => $options['distance'],
- 'InPostalCode' => $options['inPostalCode'],
- 'InRegion' => $options['inRegion'],
- 'InRateCenter' => $options['inRateCenter'],
- 'InLata' => $options['inLata'],
- 'InLocality' => $options['inLocality'],
- 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new VoipPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of VoipInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of VoipInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new VoipPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.VoipList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.php
deleted file mode 100644
index 7a7c339..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.php
+++ /dev/null
@@ -1,302 +0,0 @@
-options['areaCode'] = $areaCode;
- $this->options['contains'] = $contains;
- $this->options['smsEnabled'] = $smsEnabled;
- $this->options['mmsEnabled'] = $mmsEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- $this->options['beta'] = $beta;
- $this->options['nearNumber'] = $nearNumber;
- $this->options['nearLatLong'] = $nearLatLong;
- $this->options['distance'] = $distance;
- $this->options['inPostalCode'] = $inPostalCode;
- $this->options['inRegion'] = $inRegion;
- $this->options['inRateCenter'] = $inRateCenter;
- $this->options['inLata'] = $inLata;
- $this->options['inLocality'] = $inLocality;
- $this->options['faxEnabled'] = $faxEnabled;
- }
-
- /**
- * The area_code
- *
- * @param integer $areaCode The area_code
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * The contains
- *
- * @param string $contains The contains
- * @return $this Fluent Builder
- */
- public function setContains($contains) {
- $this->options['contains'] = $contains;
- return $this;
- }
-
- /**
- * The sms_enabled
- *
- * @param boolean $smsEnabled The sms_enabled
- * @return $this Fluent Builder
- */
- public function setSmsEnabled($smsEnabled) {
- $this->options['smsEnabled'] = $smsEnabled;
- return $this;
- }
-
- /**
- * The mms_enabled
- *
- * @param boolean $mmsEnabled The mms_enabled
- * @return $this Fluent Builder
- */
- public function setMmsEnabled($mmsEnabled) {
- $this->options['mmsEnabled'] = $mmsEnabled;
- return $this;
- }
-
- /**
- * The voice_enabled
- *
- * @param boolean $voiceEnabled The voice_enabled
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * The exclude_all_address_required
- *
- * @param boolean $excludeAllAddressRequired The exclude_all_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeAllAddressRequired($excludeAllAddressRequired) {
- $this->options['excludeAllAddressRequired'] = $excludeAllAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_local_address_required
- *
- * @param boolean $excludeLocalAddressRequired The
- * exclude_local_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeLocalAddressRequired($excludeLocalAddressRequired) {
- $this->options['excludeLocalAddressRequired'] = $excludeLocalAddressRequired;
- return $this;
- }
-
- /**
- * The exclude_foreign_address_required
- *
- * @param boolean $excludeForeignAddressRequired The
- * exclude_foreign_address_required
- * @return $this Fluent Builder
- */
- public function setExcludeForeignAddressRequired($excludeForeignAddressRequired) {
- $this->options['excludeForeignAddressRequired'] = $excludeForeignAddressRequired;
- return $this;
- }
-
- /**
- * The beta
- *
- * @param boolean $beta The beta
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * The near_number
- *
- * @param string $nearNumber The near_number
- * @return $this Fluent Builder
- */
- public function setNearNumber($nearNumber) {
- $this->options['nearNumber'] = $nearNumber;
- return $this;
- }
-
- /**
- * The near_lat_long
- *
- * @param string $nearLatLong The near_lat_long
- * @return $this Fluent Builder
- */
- public function setNearLatLong($nearLatLong) {
- $this->options['nearLatLong'] = $nearLatLong;
- return $this;
- }
-
- /**
- * The distance
- *
- * @param integer $distance The distance
- * @return $this Fluent Builder
- */
- public function setDistance($distance) {
- $this->options['distance'] = $distance;
- return $this;
- }
-
- /**
- * The in_postal_code
- *
- * @param string $inPostalCode The in_postal_code
- * @return $this Fluent Builder
- */
- public function setInPostalCode($inPostalCode) {
- $this->options['inPostalCode'] = $inPostalCode;
- return $this;
- }
-
- /**
- * The in_region
- *
- * @param string $inRegion The in_region
- * @return $this Fluent Builder
- */
- public function setInRegion($inRegion) {
- $this->options['inRegion'] = $inRegion;
- return $this;
- }
-
- /**
- * The in_rate_center
- *
- * @param string $inRateCenter The in_rate_center
- * @return $this Fluent Builder
- */
- public function setInRateCenter($inRateCenter) {
- $this->options['inRateCenter'] = $inRateCenter;
- return $this;
- }
-
- /**
- * The in_lata
- *
- * @param string $inLata The in_lata
- * @return $this Fluent Builder
- */
- public function setInLata($inLata) {
- $this->options['inLata'] = $inLata;
- return $this;
- }
-
- /**
- * The in_locality
- *
- * @param string $inLocality The in_locality
- * @return $this Fluent Builder
- */
- public function setInLocality($inLocality) {
- $this->options['inLocality'] = $inLocality;
- return $this;
- }
-
- /**
- * The fax_enabled
- *
- * @param boolean $faxEnabled The fax_enabled
- * @return $this Fluent Builder
- */
- public function setFaxEnabled($faxEnabled) {
- $this->options['faxEnabled'] = $faxEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadVoipOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipPage.php
deleted file mode 100644
index e2b500e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VoipInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.VoipPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryContext.php
deleted file mode 100644
index 01719a3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryContext.php
+++ /dev/null
@@ -1,247 +0,0 @@
-solution = array('accountSid' => $accountSid, 'countryCode' => $countryCode, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers/' . rawurlencode($countryCode) . '.json';
- }
-
- /**
- * Fetch a AvailablePhoneNumberCountryInstance
- *
- * @return AvailablePhoneNumberCountryInstance Fetched
- * AvailablePhoneNumberCountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AvailablePhoneNumberCountryInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- /**
- * Access the local
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\LocalList
- */
- protected function getLocal() {
- if (!$this->_local) {
- $this->_local = new LocalList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_local;
- }
-
- /**
- * Access the tollFree
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\TollFreeList
- */
- protected function getTollFree() {
- if (!$this->_tollFree) {
- $this->_tollFree = new TollFreeList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_tollFree;
- }
-
- /**
- * Access the mobile
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\MobileList
- */
- protected function getMobile() {
- if (!$this->_mobile) {
- $this->_mobile = new MobileList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_mobile;
- }
-
- /**
- * Access the national
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\NationalList
- */
- protected function getNational() {
- if (!$this->_national) {
- $this->_national = new NationalList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_national;
- }
-
- /**
- * Access the voip
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\VoipList
- */
- protected function getVoip() {
- if (!$this->_voip) {
- $this->_voip = new VoipList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_voip;
- }
-
- /**
- * Access the sharedCost
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\SharedCostList
- */
- protected function getSharedCost() {
- if (!$this->_sharedCost) {
- $this->_sharedCost = new SharedCostList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_sharedCost;
- }
-
- /**
- * Access the machineToMachine
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\MachineToMachineList
- */
- protected function getMachineToMachine() {
- if (!$this->_machineToMachine) {
- $this->_machineToMachine = new MachineToMachineList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->_machineToMachine;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AvailablePhoneNumberCountryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryInstance.php
deleted file mode 100644
index 850ca5e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryInstance.php
+++ /dev/null
@@ -1,185 +0,0 @@
-properties = array(
- 'countryCode' => Values::array_get($payload, 'country_code'),
- 'country' => Values::array_get($payload, 'country'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'countryCode' => $countryCode ?: $this->properties['countryCode'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryContext Context for this AvailablePhoneNumberCountryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AvailablePhoneNumberCountryContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['countryCode']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AvailablePhoneNumberCountryInstance
- *
- * @return AvailablePhoneNumberCountryInstance Fetched
- * AvailablePhoneNumberCountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the local
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\LocalList
- */
- protected function getLocal() {
- return $this->proxy()->local;
- }
-
- /**
- * Access the tollFree
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\TollFreeList
- */
- protected function getTollFree() {
- return $this->proxy()->tollFree;
- }
-
- /**
- * Access the mobile
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\MobileList
- */
- protected function getMobile() {
- return $this->proxy()->mobile;
- }
-
- /**
- * Access the national
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\NationalList
- */
- protected function getNational() {
- return $this->proxy()->national;
- }
-
- /**
- * Access the voip
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\VoipList
- */
- protected function getVoip() {
- return $this->proxy()->voip;
- }
-
- /**
- * Access the sharedCost
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\SharedCostList
- */
- protected function getSharedCost() {
- return $this->proxy()->sharedCost;
- }
-
- /**
- * Access the machineToMachine
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountry\MachineToMachineList
- */
- protected function getMachineToMachine() {
- return $this->proxy()->machineToMachine;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AvailablePhoneNumberCountryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryList.php
deleted file mode 100644
index f9e8442..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryList.php
+++ /dev/null
@@ -1,145 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/AvailablePhoneNumbers.json';
- }
-
- /**
- * Streams AvailablePhoneNumberCountryInstance records from the API as a
- * generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AvailablePhoneNumberCountryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AvailablePhoneNumberCountryInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AvailablePhoneNumberCountryInstance records from
- * the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AvailablePhoneNumberCountryInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AvailablePhoneNumberCountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AvailablePhoneNumberCountryInstance records from
- * the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AvailablePhoneNumberCountryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AvailablePhoneNumberCountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AvailablePhoneNumberCountryContext
- *
- * @param string $countryCode The country_code
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryContext
- */
- public function getContext($countryCode) {
- return new AvailablePhoneNumberCountryContext(
- $this->version,
- $this->solution['accountSid'],
- $countryCode
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AvailablePhoneNumberCountryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryPage.php
deleted file mode 100644
index 2bc2c65..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryPage.php
+++ /dev/null
@@ -1,38 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AvailablePhoneNumberCountryInstance(
- $this->version,
- $payload,
- $this->solution['accountSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AvailablePhoneNumberCountryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceInstance.php
deleted file mode 100644
index ce667f5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceInstance.php
+++ /dev/null
@@ -1,72 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'balance' => Values::array_get($payload, 'balance'),
- 'currency' => Values::array_get($payload, 'currency'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.BalanceInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceList.php
deleted file mode 100644
index 6b562cc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalanceList.php
+++ /dev/null
@@ -1,59 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Balance.json';
- }
-
- /**
- * Fetch a BalanceInstance
- *
- * @return BalanceInstance Fetched BalanceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BalanceInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.BalanceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalancePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalancePage.php
deleted file mode 100644
index c3c5b95..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/BalancePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new BalanceInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.BalancePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackContext.php
deleted file mode 100644
index f67e3b6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackContext.php
+++ /dev/null
@@ -1,133 +0,0 @@
-solution = array('accountSid' => $accountSid, 'callSid' => $callSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/' . rawurlencode($callSid) . '/Feedback.json';
- }
-
- /**
- * Create a new FeedbackInstance
- *
- * @param integer $qualityScore An integer from 1 to 5
- * @param array|Options $options Optional Arguments
- * @return FeedbackInstance Newly created FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($qualityScore, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'QualityScore' => $qualityScore,
- 'Issue' => Serialize::map($options['issue'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FeedbackInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Fetch a FeedbackInstance
- *
- * @return FeedbackInstance Fetched FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FeedbackInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Update the FeedbackInstance
- *
- * @param integer $qualityScore An integer from 1 to 5
- * @param array|Options $options Optional Arguments
- * @return FeedbackInstance Updated FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($qualityScore, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'QualityScore' => $qualityScore,
- 'Issue' => Serialize::map($options['issue'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FeedbackInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.FeedbackContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackInstance.php
deleted file mode 100644
index e6f304d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackInstance.php
+++ /dev/null
@@ -1,139 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'issues' => Values::array_get($payload, 'issues'),
- 'qualityScore' => Values::array_get($payload, 'quality_score'),
- 'sid' => Values::array_get($payload, 'sid'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'callSid' => $callSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackContext Context for this
- * FeedbackInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FeedbackContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Create a new FeedbackInstance
- *
- * @param integer $qualityScore An integer from 1 to 5
- * @param array|Options $options Optional Arguments
- * @return FeedbackInstance Newly created FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($qualityScore, $options = array()) {
- return $this->proxy()->create($qualityScore, $options);
- }
-
- /**
- * Fetch a FeedbackInstance
- *
- * @return FeedbackInstance Fetched FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the FeedbackInstance
- *
- * @param integer $qualityScore An integer from 1 to 5
- * @param array|Options $options Optional Arguments
- * @return FeedbackInstance Updated FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($qualityScore, $options = array()) {
- return $this->proxy()->update($qualityScore, $options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.FeedbackInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackList.php
deleted file mode 100644
index 3145bfe..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackList.php
+++ /dev/null
@@ -1,53 +0,0 @@
-solution = array('accountSid' => $accountSid, 'callSid' => $callSid, );
- }
-
- /**
- * Constructs a FeedbackContext
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackContext
- */
- public function getContext() {
- return new FeedbackContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.php
deleted file mode 100644
index 7a036b9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.php
+++ /dev/null
@@ -1,101 +0,0 @@
-options['issue'] = $issue;
- }
-
- /**
- * One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
- *
- * @param string $issue Issues experienced during the call
- * @return $this Fluent Builder
- */
- public function setIssue($issue) {
- $this->options['issue'] = $issue;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateFeedbackOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateFeedbackOptions extends Options {
- /**
- * @param string $issue Issues experienced during the call
- */
- public function __construct($issue = Values::NONE) {
- $this->options['issue'] = $issue;
- }
-
- /**
- * One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
- *
- * @param string $issue Issues experienced during the call
- * @return $this Fluent Builder
- */
- public function setIssue($issue) {
- $this->options['issue'] = $issue;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateFeedbackOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackPage.php
deleted file mode 100644
index 47a7e0f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FeedbackInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryContext.php
deleted file mode 100644
index 1a01efb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/FeedbackSummary/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a FeedbackSummaryInstance
- *
- * @return FeedbackSummaryInstance Fetched FeedbackSummaryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FeedbackSummaryInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FeedbackSummaryInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.FeedbackSummaryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryInstance.php
deleted file mode 100644
index fa32d11..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryInstance.php
+++ /dev/null
@@ -1,141 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'callCount' => Values::array_get($payload, 'call_count'),
- 'callFeedbackCount' => Values::array_get($payload, 'call_feedback_count'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'includeSubaccounts' => Values::array_get($payload, 'include_subaccounts'),
- 'issues' => Values::array_get($payload, 'issues'),
- 'qualityScoreAverage' => Values::array_get($payload, 'quality_score_average'),
- 'qualityScoreMedian' => Values::array_get($payload, 'quality_score_median'),
- 'qualityScoreStandardDeviation' => Values::array_get($payload, 'quality_score_standard_deviation'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'status' => Values::array_get($payload, 'status'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackSummaryContext Context
- * for this
- * FeedbackSummaryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FeedbackSummaryContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FeedbackSummaryInstance
- *
- * @return FeedbackSummaryInstance Fetched FeedbackSummaryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FeedbackSummaryInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.FeedbackSummaryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php
deleted file mode 100644
index 010d86c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php
+++ /dev/null
@@ -1,86 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/FeedbackSummary.json';
- }
-
- /**
- * Create a new FeedbackSummaryInstance
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @param array|Options $options Optional Arguments
- * @return FeedbackSummaryInstance Newly created FeedbackSummaryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($startDate, $endDate, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'StartDate' => Serialize::iso8601Date($startDate),
- 'EndDate' => Serialize::iso8601Date($endDate),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FeedbackSummaryInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Constructs a FeedbackSummaryContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackSummaryContext
- */
- public function getContext($sid) {
- return new FeedbackSummaryContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackSummaryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.php
deleted file mode 100644
index fd2fc5d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.php
+++ /dev/null
@@ -1,95 +0,0 @@
-options['includeSubaccounts'] = $includeSubaccounts;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- }
-
- /**
- * true to include feedback entries for the master account and all subaccounts. false to include feedback entries for the specified account. IncludeSubaccounts is false by default.
- *
- * @param boolean $includeSubaccounts true to include feedback entries for the
- * master account and all subaccounts.
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * The URL that Twilio will request when the Feedback Summary is completed.
- *
- * @param string $statusCallback The URL that Twilio will request when the
- * Feedback Summary is completed.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the StatusCallback URL. Either GET or POST.
- *
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateFeedbackSummaryOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryPage.php
deleted file mode 100644
index faab9b6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FeedbackSummaryInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackSummaryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationContext.php
deleted file mode 100644
index 016a802..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('accountSid' => $accountSid, 'callSid' => $callSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/' . rawurlencode($callSid) . '/Notifications/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a NotificationInstance
- *
- * @return NotificationInstance Fetched NotificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NotificationInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the NotificationInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.NotificationContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationInstance.php
deleted file mode 100644
index 67e95d0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- 'log' => Values::array_get($payload, 'log'),
- 'messageDate' => Deserialize::dateTime(Values::array_get($payload, 'message_date')),
- 'messageText' => Values::array_get($payload, 'message_text'),
- 'moreInfo' => Values::array_get($payload, 'more_info'),
- 'requestMethod' => Values::array_get($payload, 'request_method'),
- 'requestUrl' => Values::array_get($payload, 'request_url'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'requestVariables' => Values::array_get($payload, 'request_variables'),
- 'responseBody' => Values::array_get($payload, 'response_body'),
- 'responseHeaders' => Values::array_get($payload, 'response_headers'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'callSid' => $callSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\NotificationContext Context for
- * this
- * NotificationInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new NotificationContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a NotificationInstance
- *
- * @return NotificationInstance Fetched NotificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the NotificationInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.NotificationInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationList.php
deleted file mode 100644
index e2d7805..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'callSid' => $callSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/' . rawurlencode($callSid) . '/Notifications.json';
- }
-
- /**
- * Streams NotificationInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads NotificationInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return NotificationInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of NotificationInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of NotificationInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Log' => $options['log'],
- 'MessageDate<' => Serialize::iso8601Date($options['messageDateBefore']),
- 'MessageDate' => Serialize::iso8601Date($options['messageDate']),
- 'MessageDate>' => Serialize::iso8601Date($options['messageDateAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NotificationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of NotificationInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of NotificationInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new NotificationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a NotificationContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Call\NotificationContext
- */
- public function getContext($sid) {
- return new NotificationContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NotificationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.php
deleted file mode 100644
index 9bb1b17..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.php
+++ /dev/null
@@ -1,100 +0,0 @@
-options['log'] = $log;
- $this->options['messageDateBefore'] = $messageDateBefore;
- $this->options['messageDate'] = $messageDate;
- $this->options['messageDateAfter'] = $messageDateAfter;
- }
-
- /**
- * The log
- *
- * @param integer $log The log
- * @return $this Fluent Builder
- */
- public function setLog($log) {
- $this->options['log'] = $log;
- return $this;
- }
-
- /**
- * The message_date
- *
- * @param string $messageDateBefore The message_date
- * @return $this Fluent Builder
- */
- public function setMessageDateBefore($messageDateBefore) {
- $this->options['messageDateBefore'] = $messageDateBefore;
- return $this;
- }
-
- /**
- * The message_date
- *
- * @param string $messageDate The message_date
- * @return $this Fluent Builder
- */
- public function setMessageDate($messageDate) {
- $this->options['messageDate'] = $messageDate;
- return $this;
- }
-
- /**
- * The message_date
- *
- * @param string $messageDateAfter The message_date
- * @return $this Fluent Builder
- */
- public function setMessageDateAfter($messageDateAfter) {
- $this->options['messageDateAfter'] = $messageDateAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadNotificationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationPage.php
deleted file mode 100644
index 4868496..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/NotificationPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NotificationInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NotificationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingContext.php
deleted file mode 100644
index bf7e35f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('accountSid' => $accountSid, 'callSid' => $callSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/' . rawurlencode($callSid) . '/Recordings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Update the RecordingInstance
- *
- * @param string $status The status to change the recording to.
- * @param array|Options $options Optional Arguments
- * @return RecordingInstance Updated RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($status, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Status' => $status, 'PauseBehavior' => $options['pauseBehavior'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.RecordingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingInstance.php
deleted file mode 100644
index 4ea5945..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingInstance.php
+++ /dev/null
@@ -1,166 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'conferenceSid' => Values::array_get($payload, 'conference_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'price' => Values::array_get($payload, 'price'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'encryptionDetails' => Values::array_get($payload, 'encryption_details'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'status' => Values::array_get($payload, 'status'),
- 'channels' => Values::array_get($payload, 'channels'),
- 'source' => Values::array_get($payload, 'source'),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'callSid' => $callSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\RecordingContext Context for
- * this
- * RecordingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RecordingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Update the RecordingInstance
- *
- * @param string $status The status to change the recording to.
- * @param array|Options $options Optional Arguments
- * @return RecordingInstance Updated RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($status, $options = array()) {
- return $this->proxy()->update($status, $options);
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.RecordingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingList.php
deleted file mode 100644
index 57493a5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingList.php
+++ /dev/null
@@ -1,186 +0,0 @@
-solution = array('accountSid' => $accountSid, 'callSid' => $callSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/' . rawurlencode($callSid) . '/Recordings.json';
- }
-
- /**
- * Create a new RecordingInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RecordingInstance Newly created RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }),
- 'RecordingStatusCallback' => $options['recordingStatusCallback'],
- 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'],
- 'Trim' => $options['trim'],
- 'RecordingChannels' => $options['recordingChannels'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Streams RecordingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RecordingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RecordingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DateCreated<' => Serialize::iso8601Date($options['dateCreatedBefore']),
- 'DateCreated' => Serialize::iso8601Date($options['dateCreated']),
- 'DateCreated>' => Serialize::iso8601Date($options['dateCreatedAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RecordingContext
- *
- * @param string $sid Fetch by unique recording Sid
- * @return \Twilio\Rest\Api\V2010\Account\Call\RecordingContext
- */
- public function getContext($sid) {
- return new RecordingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['callSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.php
deleted file mode 100644
index 1291365..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.php
+++ /dev/null
@@ -1,243 +0,0 @@
-options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- $this->options['trim'] = $trim;
- $this->options['recordingChannels'] = $recordingChannels;
- }
-
- /**
- * The recording status changes that should generate a request to the URL specified in RecordingStatusCallback. Possible values: `in-progress`, `completed`, `failed`. To specify multiple values separate them with a space. Defaults to `completed`.
- *
- * @param string $recordingStatusCallbackEvent The recording status changes
- * that should generate a callback
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackEvent($recordingStatusCallbackEvent) {
- $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
- return $this;
- }
-
- /**
- * The URL which Twilio will make its GET or POST request to for the recording events specified in parameter RecordingStatusCallbackEvent. See [RecordingStatusCallback parameters](https://www.twilio.com/docs/voice/api/recording#recordingstatuscallback) for more details.
- *
- * @param string $recordingStatusCallback The callback URL for recording actions
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when making a request to the RecordingStatusCallback URL. Possible values: `GET`, `POST`. Defaults to `POST`.
- *
- * @param string $recordingStatusCallbackMethod The HTTP method Twilio should
- * use when making a request to
- * the RecordingStatusCallback URL
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * Possible values: `trim-silence` or `do-not-trim`. `trim-silence` will trim the silence from the beginning and end of the recording. `do-not-trim` will not trim the silence. Defaults to `do-not-trim`
- *
- * @param string $trim Whether to trim the silence in the recording
- * @return $this Fluent Builder
- */
- public function setTrim($trim) {
- $this->options['trim'] = $trim;
- return $this;
- }
-
- /**
- * Possible values: `mono` or `dual`. `mono` records all parties of your call into one channel. `dual` records a 2 party call into separate channels. Defaults to `mono`.
- *
- * @param string $recordingChannels The number of channels that the output
- * recording will be configured with
- * @return $this Fluent Builder
- */
- public function setRecordingChannels($recordingChannels) {
- $this->options['recordingChannels'] = $recordingChannels;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateRecordingOptions extends Options {
- /**
- * @param string $pauseBehavior Whether to record or not during the pause
- * period.
- */
- public function __construct($pauseBehavior = Values::NONE) {
- $this->options['pauseBehavior'] = $pauseBehavior;
- }
-
- /**
- * Only applicable when setting Status parameter to `paused`. Possible values: `skip` or `silence`. `skip` will result in no recording at all during the pause period. `silence` will replace the actual audio of the call with silence during the pause period. Defaults to `silence`
- *
- * @param string $pauseBehavior Whether to record or not during the pause
- * period.
- * @return $this Fluent Builder
- */
- public function setPauseBehavior($pauseBehavior) {
- $this->options['pauseBehavior'] = $pauseBehavior;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadRecordingOptions extends Options {
- /**
- * @param string $dateCreatedBefore Filter by date created
- * @param string $dateCreated Filter by date created
- * @param string $dateCreatedAfter Filter by date created
- */
- public function __construct($dateCreatedBefore = Values::NONE, $dateCreated = Values::NONE, $dateCreatedAfter = Values::NONE) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for recordings generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for recordings generated at or after midnight on a date.
- *
- * @param string $dateCreatedBefore Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for recordings generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for recordings generated at or after midnight on a date.
- *
- * @param string $dateCreated Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for recordings generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for recordings generated at or after midnight on a date.
- *
- * @param string $dateCreatedAfter Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingPage.php
deleted file mode 100644
index fb3bd5a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Call/RecordingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallContext.php
deleted file mode 100644
index 7ec9886..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallContext.php
+++ /dev/null
@@ -1,215 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Deletes the CallInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a CallInstance
- *
- * @return CallInstance Fetched CallInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CallInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the CallInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CallInstance Updated CallInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Url' => $options['url'],
- 'Method' => $options['method'],
- 'Status' => $options['status'],
- 'FallbackUrl' => $options['fallbackUrl'],
- 'FallbackMethod' => $options['fallbackMethod'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CallInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\RecordingList
- */
- protected function getRecordings() {
- if (!$this->_recordings) {
- $this->_recordings = new RecordingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_recordings;
- }
-
- /**
- * Access the notifications
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\NotificationList
- */
- protected function getNotifications() {
- if (!$this->_notifications) {
- $this->_notifications = new NotificationList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_notifications;
- }
-
- /**
- * Access the feedback
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackList
- */
- protected function getFeedback() {
- if (!$this->_feedback) {
- $this->_feedback = new FeedbackList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_feedback;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CallContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallInstance.php
deleted file mode 100644
index 5d8602c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallInstance.php
+++ /dev/null
@@ -1,205 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'annotation' => Values::array_get($payload, 'annotation'),
- 'answeredBy' => Values::array_get($payload, 'answered_by'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callerName' => Values::array_get($payload, 'caller_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'direction' => Values::array_get($payload, 'direction'),
- 'duration' => Values::array_get($payload, 'duration'),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'forwardedFrom' => Values::array_get($payload, 'forwarded_from'),
- 'from' => Values::array_get($payload, 'from'),
- 'fromFormatted' => Values::array_get($payload, 'from_formatted'),
- 'groupSid' => Values::array_get($payload, 'group_sid'),
- 'parentCallSid' => Values::array_get($payload, 'parent_call_sid'),
- 'phoneNumberSid' => Values::array_get($payload, 'phone_number_sid'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'status' => Values::array_get($payload, 'status'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'to' => Values::array_get($payload, 'to'),
- 'toFormatted' => Values::array_get($payload, 'to_formatted'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\CallContext Context for this
- * CallInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CallContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the CallInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a CallInstance
- *
- * @return CallInstance Fetched CallInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CallInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CallInstance Updated CallInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\RecordingList
- */
- protected function getRecordings() {
- return $this->proxy()->recordings;
- }
-
- /**
- * Access the notifications
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\NotificationList
- */
- protected function getNotifications() {
- return $this->proxy()->notifications;
- }
-
- /**
- * Access the feedback
- *
- * @return \Twilio\Rest\Api\V2010\Account\Call\FeedbackList
- */
- protected function getFeedback() {
- return $this->proxy()->feedback;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CallInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallList.php
deleted file mode 100644
index e9fec7c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallList.php
+++ /dev/null
@@ -1,255 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Calls.json';
- }
-
- /**
- * Create a new CallInstance
- *
- * @param string $to Phone number, SIP address, or client identifier to call
- * @param string $from Twilio number from which to originate the call
- * @param array|Options $options Optional Arguments
- * @return CallInstance Newly created CallInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $from, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'From' => $from,
- 'Url' => $options['url'],
- 'ApplicationSid' => $options['applicationSid'],
- 'Method' => $options['method'],
- 'FallbackUrl' => $options['fallbackUrl'],
- 'FallbackMethod' => $options['fallbackMethod'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }),
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'SendDigits' => $options['sendDigits'],
- 'IfMachine' => $options['ifMachine'],
- 'Timeout' => $options['timeout'],
- 'Record' => Serialize::booleanToString($options['record']),
- 'RecordingChannels' => $options['recordingChannels'],
- 'RecordingStatusCallback' => $options['recordingStatusCallback'],
- 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'],
- 'SipAuthUsername' => $options['sipAuthUsername'],
- 'SipAuthPassword' => $options['sipAuthPassword'],
- 'MachineDetection' => $options['machineDetection'],
- 'MachineDetectionTimeout' => $options['machineDetectionTimeout'],
- 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }),
- 'Trim' => $options['trim'],
- 'CallerId' => $options['callerId'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CallInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Streams CallInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CallInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CallInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CallInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CallInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'To' => $options['to'],
- 'From' => $options['from'],
- 'ParentCallSid' => $options['parentCallSid'],
- 'Status' => $options['status'],
- 'StartTime<' => Serialize::iso8601DateTime($options['startTimeBefore']),
- 'StartTime' => Serialize::iso8601DateTime($options['startTime']),
- 'StartTime>' => Serialize::iso8601DateTime($options['startTimeAfter']),
- 'EndTime<' => Serialize::iso8601DateTime($options['endTimeBefore']),
- 'EndTime' => Serialize::iso8601DateTime($options['endTime']),
- 'EndTime>' => Serialize::iso8601DateTime($options['endTimeAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CallPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CallInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CallInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CallPage($this->version, $response, $this->solution);
- }
-
- /**
- * Access the feedbackSummaries
- */
- protected function getFeedbackSummaries() {
- if (!$this->_feedbackSummaries) {
- $this->_feedbackSummaries = new FeedbackSummaryList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_feedbackSummaries;
- }
-
- /**
- * Constructs a CallContext
- *
- * @param string $sid Call Sid that uniquely identifies the Call to fetch
- * @return \Twilio\Rest\Api\V2010\Account\CallContext
- */
- public function getContext($sid) {
- return new CallContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CallList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallOptions.php
deleted file mode 100644
index f76b349..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallOptions.php
+++ /dev/null
@@ -1,699 +0,0 @@
-options['url'] = $url;
- $this->options['applicationSid'] = $applicationSid;
- $this->options['method'] = $method;
- $this->options['fallbackUrl'] = $fallbackUrl;
- $this->options['fallbackMethod'] = $fallbackMethod;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['sendDigits'] = $sendDigits;
- $this->options['ifMachine'] = $ifMachine;
- $this->options['timeout'] = $timeout;
- $this->options['record'] = $record;
- $this->options['recordingChannels'] = $recordingChannels;
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- $this->options['machineDetection'] = $machineDetection;
- $this->options['machineDetectionTimeout'] = $machineDetectionTimeout;
- $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
- $this->options['trim'] = $trim;
- $this->options['callerId'] = $callerId;
- }
-
- /**
- * The fully qualified URL that hosts instructions for the call. Twilio will consult this URL when the call connects. See the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) details in [Making Calls](https://www.twilio.com/docs/voice/make-calls) for more details.
- *
- * @param string $url Url from which to fetch TwiML
- * @return $this Fluent Builder
- */
- public function setUrl($url) {
- $this->options['url'] = $url;
- return $this;
- }
-
- /**
- * The 34-character SID of the application Twilio should use to handle this phone call. If this parameter is present, Twilio will ignore all of the voice URLs passed and use the URLs set on the application. See the [ApplicationSid Parameter](https://www.twilio.com/docs/voice/make-calls#specify-an-applicationsid-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls) for more details.
- *
- * @param string $applicationSid ApplicationSid that configures from where to
- * fetch TwiML
- * @return $this Fluent Builder
- */
- public function setApplicationSid($applicationSid) {
- $this->options['applicationSid'] = $applicationSid;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when making its request to the `Url` parameter's value. Defaults to `POST`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $method HTTP method to use to fetch TwiML
- * @return $this Fluent Builder
- */
- public function setMethod($method) {
- $this->options['method'] = $method;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML at `Url`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $fallbackUrl Fallback URL in case of error
- * @return $this Fluent Builder
- */
- public function setFallbackUrl($fallbackUrl) {
- $this->options['fallbackUrl'] = $fallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that Twilio should use to request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $fallbackMethod HTTP Method to use with FallbackUrl
- * @return $this Fluent Builder
- */
- public function setFallbackMethod($fallbackMethod) {
- $this->options['fallbackMethod'] = $fallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will send asynchronous webhook requests to on every call event specified in the `StatusCallbackEvent` parameter. If no event is specified, Twilio will send `completed` by default. If an `ApplicationSid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).
- *
- * @param string $statusCallback Status Callback URL
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The call progress events that will trigger a webhook from Twilio. Available values are `initiated`, `ringing`, `answered`, and `completed`. If no event is specified, defaults to `completed`. If you want to receive multiple events, please provide multiple `StatusCallbackEvent` values as individual parameters in the `POST` request. See the code sample for [monitoring call progress](https://www.twilio.com/docs/voice/api/call?code-sample=code-create-a-call-and-specify-a-statuscallbackevent). If an `ApplicationSid` is present, this parameter is ignored.
- *
- * @param string $statusCallbackEvent The call progress events that Twilio will
- * send webhooks on.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting the `StatusCallback` URL. Defaults to `POST`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $statusCallbackMethod HTTP Method to use with StatusCallback
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`' (to insert a half second pause). For example, if you connected to a company phone number and wanted to pause for one second, dial extension 1234, and then the pound key, use `SendDigits=ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
- *
- * @param string $sendDigits Digits to send
- * @return $this Fluent Builder
- */
- public function setSendDigits($sendDigits) {
- $this->options['sendDigits'] = $sendDigits;
- return $this;
- }
-
- /**
- * The if_machine
- *
- * @param string $ifMachine The if_machine
- * @return $this Fluent Builder
- */
- public function setIfMachine($ifMachine) {
- $this->options['ifMachine'] = $ifMachine;
- return $this;
- }
-
- /**
- * The integer number of seconds that Twilio should allow the phone to ring before assuming there is no answer. Default is `60` seconds, the maximum is `600` seconds. For some call flows, Twilio will add a 5-second buffer to the timeout value provided, so if you enter a timeout value of 10 seconds, you could see actual timeout closer to 15 seconds. Note, you could set this to a low value like `15` to hang up before reaching an answering machine or voicemail.
- *
- * @param integer $timeout Number of seconds to wait for an answer
- * @return $this Fluent Builder
- */
- public function setTimeout($timeout) {
- $this->options['timeout'] = $timeout;
- return $this;
- }
-
- /**
- * Set this parameter to `true` to record the entirety of a phone call. The `RecordingUrl` will be sent to the `StatusCallback` URL. Defaults to false.
- *
- * @param boolean $record Whether or not to record the Call
- * @return $this Fluent Builder
- */
- public function setRecord($record) {
- $this->options['record'] = $record;
- return $this;
- }
-
- /**
- * `mono` or `dual` – defaults to `mono`. Set this parameter to specify the number of channels in the final recording. In a mono-channel recording, both legs of the call are mixed down into a single channel within a single recording file. With dual-channel recording, both legs use separate channels within a single recording file. In dual-channel recordings, the parent call will always be in the first channel, and the child call will always be in the second channel.
- *
- * @param string $recordingChannels mono or dualSet this parameter to specify
- * the number of channels in the final
- * recording.
- * @return $this Fluent Builder
- */
- public function setRecordingChannels($recordingChannels) {
- $this->options['recordingChannels'] = $recordingChannels;
- return $this;
- }
-
- /**
- * A URL that Twilio will send a webhook request to when the recording is available for access.
- *
- * @param string $recordingStatusCallback A URL that Twilio will send a webhook
- * request to when the recording is
- * available for access.
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting the `RecordingStatusCallback` URL. Defaults to `POST`.
- *
- * @param string $recordingStatusCallbackMethod The HTTP method Twilio should
- * use when requesting the
- * `RecordingStatusCallback` URL.
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The sip_auth_username
- *
- * @param string $sipAuthUsername The sip_auth_username
- * @return $this Fluent Builder
- */
- public function setSipAuthUsername($sipAuthUsername) {
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- return $this;
- }
-
- /**
- * The sip_auth_password
- *
- * @param string $sipAuthPassword The sip_auth_password
- * @return $this Fluent Builder
- */
- public function setSipAuthPassword($sipAuthPassword) {
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- return $this;
- }
-
- /**
- * Detect if a human, answering machine, or fax has picked up the call. Use `Enable` if you would like Twilio to return an `AnsweredBy` value as soon as it identifies the called party. If you would like to leave a message on an answering machine, specify `DetectMessageEnd`. If both `SendDigits` and `MachineDetection` parameters are provided, then MachineDetection will be ignored. [Detailed documentation is here](https://www.twilio.com/docs/voice/answering-machine-detection).
- *
- * @param string $machineDetection Enable machine detection or end of greeting
- * detection
- * @return $this Fluent Builder
- */
- public function setMachineDetection($machineDetection) {
- $this->options['machineDetection'] = $machineDetection;
- return $this;
- }
-
- /**
- * The number of seconds that Twilio should attempt to perform answering machine detection before timing out and firing a voice request with `AnsweredBy` of `unknown`. Defaults to 30 seconds.
- *
- * @param integer $machineDetectionTimeout Number of miliseconds to wait for
- * machine detection
- * @return $this Fluent Builder
- */
- public function setMachineDetectionTimeout($machineDetectionTimeout) {
- $this->options['machineDetectionTimeout'] = $machineDetectionTimeout;
- return $this;
- }
-
- /**
- * The recording status events that will trigger Twilio to send webhooks on to the URL specified in `RecordingStatusCallback`. The available values are `in-progress`, `completed`, and `failed`. Defaults are `completed` and `failed`. To specify multiple values, separate them with a space. If any values are specified, the defaults are no longer applicable.
- *
- * @param string $recordingStatusCallbackEvent The recording status changes
- * that Twilio will send webhooks
- * on to the URL specified in
- * RecordingStatusCallback.
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackEvent($recordingStatusCallbackEvent) {
- $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
- return $this;
- }
-
- /**
- * `trim-silence` or `do-not-trim`. Set this parameter to define whether leading and trailing silence is trimmed from the recording. Defaults to `trim-silence`.
- *
- * @param string $trim Set this parameter to control trimming of silence on the
- * recording.
- * @return $this Fluent Builder
- */
- public function setTrim($trim) {
- $this->options['trim'] = $trim;
- return $this;
- }
-
- /**
- * The phone number, SIP address, or Client identifier that made this Call. Phone numbers are in [E.164 format](https://www.twilio.com/docs/glossary/what-e164) (e.g., +16175551212). SIP addresses are formatted as `name@company.com`.
- *
- * @param string $callerId The phone number, SIP address, or Client identifier
- * that made this Call. Phone numbers are in E.164
- * format (e.g., +16175551212). SIP addresses are
- * formatted as `name@company.com`.
- * @return $this Fluent Builder
- */
- public function setCallerId($callerId) {
- $this->options['callerId'] = $callerId;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateCallOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadCallOptions extends Options {
- /**
- * @param string $to Phone number or Client identifier to filter `to` on
- * @param string $from Phone number or Client identifier to filter `from` on
- * @param string $parentCallSid Parent Call Sid to filter on
- * @param string $status Status to filter on
- * @param string $startTimeBefore StartTime to filter on
- * @param string $startTime StartTime to filter on
- * @param string $startTimeAfter StartTime to filter on
- * @param string $endTimeBefore EndTime to filter on
- * @param string $endTime EndTime to filter on
- * @param string $endTimeAfter EndTime to filter on
- */
- public function __construct($to = Values::NONE, $from = Values::NONE, $parentCallSid = Values::NONE, $status = Values::NONE, $startTimeBefore = Values::NONE, $startTime = Values::NONE, $startTimeAfter = Values::NONE, $endTimeBefore = Values::NONE, $endTime = Values::NONE, $endTimeAfter = Values::NONE) {
- $this->options['to'] = $to;
- $this->options['from'] = $from;
- $this->options['parentCallSid'] = $parentCallSid;
- $this->options['status'] = $status;
- $this->options['startTimeBefore'] = $startTimeBefore;
- $this->options['startTime'] = $startTime;
- $this->options['startTimeAfter'] = $startTimeAfter;
- $this->options['endTimeBefore'] = $endTimeBefore;
- $this->options['endTime'] = $endTime;
- $this->options['endTimeAfter'] = $endTimeAfter;
- }
-
- /**
- * Only show calls to this phone number, SIP address, Client identifier or SIM SID.
- *
- * @param string $to Phone number or Client identifier to filter `to` on
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * Only show calls from this phone number, SIP address, Client identifier or SIM SID.
- *
- * @param string $from Phone number or Client identifier to filter `from` on
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * Only show calls spawned by the Call with this SID.
- *
- * @param string $parentCallSid Parent Call Sid to filter on
- * @return $this Fluent Builder
- */
- public function setParentCallSid($parentCallSid) {
- $this->options['parentCallSid'] = $parentCallSid;
- return $this;
- }
-
- /**
- * Only show calls currently in the specified status. May be `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
- *
- * @param string $status Status to filter on
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Only show calls that started on this date, given as `YYYY-MM-DD`. Also supports inequalities, such as `StartTime<=YYYY-MM-DD` for calls that started at or before midnight on a date, and `StartTime>=YYYY-MM-DD` for calls that started at or after midnight on a date.
- *
- * @param string $startTimeBefore StartTime to filter on
- * @return $this Fluent Builder
- */
- public function setStartTimeBefore($startTimeBefore) {
- $this->options['startTimeBefore'] = $startTimeBefore;
- return $this;
- }
-
- /**
- * Only show calls that started on this date, given as `YYYY-MM-DD`. Also supports inequalities, such as `StartTime<=YYYY-MM-DD` for calls that started at or before midnight on a date, and `StartTime>=YYYY-MM-DD` for calls that started at or after midnight on a date.
- *
- * @param string $startTime StartTime to filter on
- * @return $this Fluent Builder
- */
- public function setStartTime($startTime) {
- $this->options['startTime'] = $startTime;
- return $this;
- }
-
- /**
- * Only show calls that started on this date, given as `YYYY-MM-DD`. Also supports inequalities, such as `StartTime<=YYYY-MM-DD` for calls that started at or before midnight on a date, and `StartTime>=YYYY-MM-DD` for calls that started at or after midnight on a date.
- *
- * @param string $startTimeAfter StartTime to filter on
- * @return $this Fluent Builder
- */
- public function setStartTimeAfter($startTimeAfter) {
- $this->options['startTimeAfter'] = $startTimeAfter;
- return $this;
- }
-
- /**
- * Only show calls that ended on this date
- *
- * @param string $endTimeBefore EndTime to filter on
- * @return $this Fluent Builder
- */
- public function setEndTimeBefore($endTimeBefore) {
- $this->options['endTimeBefore'] = $endTimeBefore;
- return $this;
- }
-
- /**
- * Only show calls that ended on this date
- *
- * @param string $endTime EndTime to filter on
- * @return $this Fluent Builder
- */
- public function setEndTime($endTime) {
- $this->options['endTime'] = $endTime;
- return $this;
- }
-
- /**
- * Only show calls that ended on this date
- *
- * @param string $endTimeAfter EndTime to filter on
- * @return $this Fluent Builder
- */
- public function setEndTimeAfter($endTimeAfter) {
- $this->options['endTimeAfter'] = $endTimeAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadCallOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCallOptions extends Options {
- /**
- * @param string $url URL that returns TwiML
- * @param string $method HTTP method to use to fetch TwiML
- * @param string $status Status to update the Call with
- * @param string $fallbackUrl Fallback URL in case of error
- * @param string $fallbackMethod HTTP Method to use with FallbackUrl
- * @param string $statusCallback Status Callback URL
- * @param string $statusCallbackMethod HTTP Method to use with StatusCallback
- */
- public function __construct($url = Values::NONE, $method = Values::NONE, $status = Values::NONE, $fallbackUrl = Values::NONE, $fallbackMethod = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE) {
- $this->options['url'] = $url;
- $this->options['method'] = $method;
- $this->options['status'] = $status;
- $this->options['fallbackUrl'] = $fallbackUrl;
- $this->options['fallbackMethod'] = $fallbackMethod;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- }
-
- /**
- * that hosts instructions for the call. Twilio will consult this URL when the call connects. See the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls) for more details.
- *
- * @param string $url URL that returns TwiML
- * @return $this Fluent Builder
- */
- public function setUrl($url) {
- $this->options['url'] = $url;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when making its request to the `Url` parameter's value. Defaults to `POST`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $method HTTP method to use to fetch TwiML
- * @return $this Fluent Builder
- */
- public function setMethod($method) {
- $this->options['method'] = $method;
- return $this;
- }
-
- /**
- * Either `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing, but will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress.
- *
- * @param string $status Status to update the Call with
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs when requesting or executing the TwiML at `Url`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $fallbackUrl Fallback URL in case of error
- * @return $this Fluent Builder
- */
- public function setFallbackUrl($fallbackUrl) {
- $this->options['fallbackUrl'] = $fallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that Twilio should use to request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $fallbackMethod HTTP Method to use with FallbackUrl
- * @return $this Fluent Builder
- */
- public function setFallbackMethod($fallbackMethod) {
- $this->options['fallbackMethod'] = $fallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will send asynchronous webhook requests to on every call event specified in the `StatusCallbackEvent` parameter. If no event is specified, Twilio will send `completed` by default. If an `ApplicationSid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).
- *
- * @param string $statusCallback Status Callback URL
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting the `StatusCallback` URL. Defaults to `POST`. If an `ApplicationSid` parameter is present, this parameter is ignored.
- *
- * @param string $statusCallbackMethod HTTP Method to use with StatusCallback
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateCallOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallPage.php
deleted file mode 100644
index 4f24f19..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/CallPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CallInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CallPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantContext.php
deleted file mode 100644
index c50d223..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantContext.php
+++ /dev/null
@@ -1,123 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'conferenceSid' => $conferenceSid,
- 'callSid' => $callSid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Conferences/' . rawurlencode($conferenceSid) . '/Participants/' . rawurlencode($callSid) . '.json';
- }
-
- /**
- * Fetch a ParticipantInstance
- *
- * @return ParticipantInstance Fetched ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Update the ParticipantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ParticipantInstance Updated ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Muted' => Serialize::booleanToString($options['muted']),
- 'Hold' => Serialize::booleanToString($options['hold']),
- 'HoldUrl' => $options['holdUrl'],
- 'HoldMethod' => $options['holdMethod'],
- 'AnnounceUrl' => $options['announceUrl'],
- 'AnnounceMethod' => $options['announceMethod'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Deletes the ParticipantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ParticipantContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantInstance.php
deleted file mode 100644
index cdd111f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'conferenceSid' => Values::array_get($payload, 'conference_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'endConferenceOnExit' => Values::array_get($payload, 'end_conference_on_exit'),
- 'muted' => Values::array_get($payload, 'muted'),
- 'hold' => Values::array_get($payload, 'hold'),
- 'startConferenceOnEnter' => Values::array_get($payload, 'start_conference_on_enter'),
- 'status' => Values::array_get($payload, 'status'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'conferenceSid' => $conferenceSid,
- 'callSid' => $callSid ?: $this->properties['callSid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Conference\ParticipantContext Context
- * for
- * this
- * ParticipantInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ParticipantContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $this->solution['callSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ParticipantInstance
- *
- * @return ParticipantInstance Fetched ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ParticipantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ParticipantInstance Updated ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the ParticipantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ParticipantInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php
deleted file mode 100644
index d989789..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php
+++ /dev/null
@@ -1,213 +0,0 @@
-solution = array('accountSid' => $accountSid, 'conferenceSid' => $conferenceSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Conferences/' . rawurlencode($conferenceSid) . '/Participants.json';
- }
-
- /**
- * Create a new ParticipantInstance
- *
- * @param string $from The `from` phone number used to invite a participant.
- * @param string $to The number, client id, or sip address of the new
- * participant.
- * @param array|Options $options Optional Arguments
- * @return ParticipantInstance Newly created ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($from, $to, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'From' => $from,
- 'To' => $to,
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }),
- 'Timeout' => $options['timeout'],
- 'Record' => Serialize::booleanToString($options['record']),
- 'Muted' => Serialize::booleanToString($options['muted']),
- 'Beep' => $options['beep'],
- 'StartConferenceOnEnter' => Serialize::booleanToString($options['startConferenceOnEnter']),
- 'EndConferenceOnExit' => Serialize::booleanToString($options['endConferenceOnExit']),
- 'WaitUrl' => $options['waitUrl'],
- 'WaitMethod' => $options['waitMethod'],
- 'EarlyMedia' => Serialize::booleanToString($options['earlyMedia']),
- 'MaxParticipants' => $options['maxParticipants'],
- 'ConferenceRecord' => $options['conferenceRecord'],
- 'ConferenceTrim' => $options['conferenceTrim'],
- 'ConferenceStatusCallback' => $options['conferenceStatusCallback'],
- 'ConferenceStatusCallbackMethod' => $options['conferenceStatusCallbackMethod'],
- 'ConferenceStatusCallbackEvent' => Serialize::map($options['conferenceStatusCallbackEvent'], function($e) { return $e; }),
- 'RecordingChannels' => $options['recordingChannels'],
- 'RecordingStatusCallback' => $options['recordingStatusCallback'],
- 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'],
- 'SipAuthUsername' => $options['sipAuthUsername'],
- 'SipAuthPassword' => $options['sipAuthPassword'],
- 'Region' => $options['region'],
- 'ConferenceRecordingStatusCallback' => $options['conferenceRecordingStatusCallback'],
- 'ConferenceRecordingStatusCallbackMethod' => $options['conferenceRecordingStatusCallbackMethod'],
- 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }),
- 'ConferenceRecordingStatusCallbackEvent' => Serialize::map($options['conferenceRecordingStatusCallbackEvent'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid']
- );
- }
-
- /**
- * Streams ParticipantInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ParticipantInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ParticipantInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ParticipantInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ParticipantInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Muted' => Serialize::booleanToString($options['muted']),
- 'Hold' => Serialize::booleanToString($options['hold']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ParticipantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ParticipantInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ParticipantInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ParticipantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ParticipantContext
- *
- * @param string $callSid Fetch by unique participant Call SID
- * @return \Twilio\Rest\Api\V2010\Account\Conference\ParticipantContext
- */
- public function getContext($callSid) {
- return new ParticipantContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $callSid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ParticipantList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.php
deleted file mode 100644
index 2b00ddb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.php
+++ /dev/null
@@ -1,675 +0,0 @@
-options['muted'] = $muted;
- $this->options['hold'] = $hold;
- $this->options['holdUrl'] = $holdUrl;
- $this->options['holdMethod'] = $holdMethod;
- $this->options['announceUrl'] = $announceUrl;
- $this->options['announceMethod'] = $announceMethod;
- }
-
- /**
- * Specifying `true` will mute the participant, while `false` will un-mute. Anything other than `true` or `false` is interpreted as `false`.
- *
- * @param boolean $muted Indicates if the participant should be muted
- * @return $this Fluent Builder
- */
- public function setMuted($muted) {
- $this->options['muted'] = $muted;
- return $this;
- }
-
- /**
- * Specifying `true` will hold the participant, while `false` will remove them from hold.
- *
- * @param boolean $hold Specifying true will hold the participant, while false
- * will un-hold.
- * @return $this Fluent Builder
- */
- public function setHold($hold) {
- $this->options['hold'] = $hold;
- return $this;
- }
-
- /**
- * The 'HoldUrl' attribute lets you specify a URL for music that plays when a participant is on hold. The URL may be an MP3, a WAV or a TwiML document that uses ``, `` or ``.
- *
- * @param string $holdUrl The 'HoldUrl' attribute lets you specify a URL for
- * music that plays when a participant is held.
- * @return $this Fluent Builder
- */
- public function setHoldUrl($holdUrl) {
- $this->options['holdUrl'] = $holdUrl;
- return $this;
- }
-
- /**
- * Specify the HTTP method Twilio should use to request your `HoldUrl`, either `GET` or `POST`. Defaults to `GET`.
- *
- * @param string $holdMethod Specify GET or POST, defaults to GET
- * @return $this Fluent Builder
- */
- public function setHoldMethod($holdMethod) {
- $this->options['holdMethod'] = $holdMethod;
- return $this;
- }
-
- /**
- * The 'AnnounceUrl' attribute lets you specify a URL for announcing something to the participant. The URL may return an MP3, a WAV or a TwiML document with `` or ``.
- *
- * @param string $announceUrl The 'AnnounceUrl' attribute lets you specify a
- * URL for announcing something to the participant.
- * @return $this Fluent Builder
- */
- public function setAnnounceUrl($announceUrl) {
- $this->options['announceUrl'] = $announceUrl;
- return $this;
- }
-
- /**
- * Specify the HTTP method Twilio should use to request your `AnnounceUrl`, either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $announceMethod Specify GET or POST, defaults to POST
- * @return $this Fluent Builder
- */
- public function setAnnounceMethod($announceMethod) {
- $this->options['announceMethod'] = $announceMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateParticipantOptions extends Options {
- /**
- * @param string $statusCallback URL for conference event callback.
- * @param string $statusCallbackMethod Method Twilio should use to reach the
- * status callback URL.
- * @param string $statusCallbackEvent Set state change events that will trigger
- * a callback.
- * @param integer $timeout Number of seconds Twilio will wait for an answer.
- * @param boolean $record Record the agent and their conferences.
- * @param boolean $muted Mute the agent.
- * @param string $beep Play a beep when the participant joins the conference.
- * @param boolean $startConferenceOnEnter Begin the conference when the
- * participant joins.
- * @param boolean $endConferenceOnExit End the conference when the participant
- * leaves.
- * @param string $waitUrl URL that hosts pre-conference hold music
- * @param string $waitMethod The method Twilio should use to request `WaitUrl`.
- * @param boolean $earlyMedia Agents can hear the state of the outbound call.
- * @param integer $maxParticipants Maximum number of agent conference
- * participants.
- * @param string $conferenceRecord Record the conference.
- * @param string $conferenceTrim Trim silence from audio files.
- * @param string $conferenceStatusCallback Callback URL for conference events.
- * @param string $conferenceStatusCallbackMethod HTTP method for requesting
- * `ConferenceStatusCallback` URL.
- * @param string $conferenceStatusCallbackEvent Set which conference state
- * changes should webhook to the
- * `ConferenceStatusCallback`
- * @param string $recordingChannels Specify `mono` or `dual` recording channels.
- * @param string $recordingStatusCallback The absolute URL for Twilio's webhook
- * with recording status information.
- * @param string $recordingStatusCallbackMethod HTTP method for
- * `RecordingStatusCallback`
- * @param string $sipAuthUsername SIP username used for authenticating.
- * @param string $sipAuthPassword SIP password for authentication.
- * @param string $region The region where Twilio should mix the conference
- * audio.
- * @param string $conferenceRecordingStatusCallback Conference recording
- * callback URL.
- * @param string $conferenceRecordingStatusCallbackMethod Method Twilio should
- * use to request the
- * `ConferenceRecordingStatusCallback` URL.
- * @param string $recordingStatusCallbackEvent Set which recording state
- * changes should webhook to the
- * `RecordingStatusCallback`
- * @param string $conferenceRecordingStatusCallbackEvent Set which conference
- * recording state
- * changes should webhook
- * to the
- * `ConferenceRecordingStatusCallback`
- */
- public function __construct($statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $statusCallbackEvent = Values::NONE, $timeout = Values::NONE, $record = Values::NONE, $muted = Values::NONE, $beep = Values::NONE, $startConferenceOnEnter = Values::NONE, $endConferenceOnExit = Values::NONE, $waitUrl = Values::NONE, $waitMethod = Values::NONE, $earlyMedia = Values::NONE, $maxParticipants = Values::NONE, $conferenceRecord = Values::NONE, $conferenceTrim = Values::NONE, $conferenceStatusCallback = Values::NONE, $conferenceStatusCallbackMethod = Values::NONE, $conferenceStatusCallbackEvent = Values::NONE, $recordingChannels = Values::NONE, $recordingStatusCallback = Values::NONE, $recordingStatusCallbackMethod = Values::NONE, $sipAuthUsername = Values::NONE, $sipAuthPassword = Values::NONE, $region = Values::NONE, $conferenceRecordingStatusCallback = Values::NONE, $conferenceRecordingStatusCallbackMethod = Values::NONE, $recordingStatusCallbackEvent = Values::NONE, $conferenceRecordingStatusCallbackEvent = Values::NONE) {
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- $this->options['timeout'] = $timeout;
- $this->options['record'] = $record;
- $this->options['muted'] = $muted;
- $this->options['beep'] = $beep;
- $this->options['startConferenceOnEnter'] = $startConferenceOnEnter;
- $this->options['endConferenceOnExit'] = $endConferenceOnExit;
- $this->options['waitUrl'] = $waitUrl;
- $this->options['waitMethod'] = $waitMethod;
- $this->options['earlyMedia'] = $earlyMedia;
- $this->options['maxParticipants'] = $maxParticipants;
- $this->options['conferenceRecord'] = $conferenceRecord;
- $this->options['conferenceTrim'] = $conferenceTrim;
- $this->options['conferenceStatusCallback'] = $conferenceStatusCallback;
- $this->options['conferenceStatusCallbackMethod'] = $conferenceStatusCallbackMethod;
- $this->options['conferenceStatusCallbackEvent'] = $conferenceStatusCallbackEvent;
- $this->options['recordingChannels'] = $recordingChannels;
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- $this->options['region'] = $region;
- $this->options['conferenceRecordingStatusCallback'] = $conferenceRecordingStatusCallback;
- $this->options['conferenceRecordingStatusCallbackMethod'] = $conferenceRecordingStatusCallbackMethod;
- $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
- $this->options['conferenceRecordingStatusCallbackEvent'] = $conferenceRecordingStatusCallbackEvent;
- }
-
- /**
- * The absolute URL where Twilio should send a webhook with conference event information that you request with the `StatusCallbackEvent` parameter.
- *
- * @param string $statusCallback URL for conference event callback.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The method Twilio should use when requesting your `StatusCallback` URL. Options are `GET` and `POST`. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod Method Twilio should use to reach the
- * status callback URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Specifies which conference state changes should generate a webhook to the `StatusCallback` URL. Options are `initiated`, `ringing`, `answered`, and `completed`. To specify multiple values, separate each with a space. Defaults to `completed`.
- *
- * @param string $statusCallbackEvent Set state change events that will trigger
- * a callback.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- return $this;
- }
-
- /**
- * The number of seconds (integer) that Twilio should allow the phone to ring before assuming there is no answer. Defaults to 60 seconds. Minimum allowed timeout is `5`, max is `600`. Twilio always adds a 5-second timeout buffer to outgoing calls, so if you enter a timeout value of 10 seconds, you will see an actual timeout closer to 15 seconds.
- *
- * @param integer $timeout Number of seconds Twilio will wait for an answer.
- * @return $this Fluent Builder
- */
- public function setTimeout($timeout) {
- $this->options['timeout'] = $timeout;
- return $this;
- }
-
- /**
- * Records the agent and their conferences, including downtime between conferences. Values may be `true` or `false`. Defaults to `false`.
- *
- * @param boolean $record Record the agent and their conferences.
- * @return $this Fluent Builder
- */
- public function setRecord($record) {
- $this->options['record'] = $record;
- return $this;
- }
-
- /**
- * Specify whether the agent can speak in the conference. Values can be `true` or `false`. Defaults to `false`.
- *
- * @param boolean $muted Mute the agent.
- * @return $this Fluent Builder
- */
- public function setMuted($muted) {
- $this->options['muted'] = $muted;
- return $this;
- }
-
- /**
- * Play a notification beep to the conference when this participant joins. Options are `true`, `false`, `onEnter`, or `onExit`. Defaults to `true`.
- *
- * @param string $beep Play a beep when the participant joins the conference.
- * @return $this Fluent Builder
- */
- public function setBeep($beep) {
- $this->options['beep'] = $beep;
- return $this;
- }
-
- /**
- * If the conference has not already begun, `true` will start the conference when this participant joins. Specifying `false` will mute the participant and play background music until the conference begins. Defaults to `true`.
- *
- * @param boolean $startConferenceOnEnter Begin the conference when the
- * participant joins.
- * @return $this Fluent Builder
- */
- public function setStartConferenceOnEnter($startConferenceOnEnter) {
- $this->options['startConferenceOnEnter'] = $startConferenceOnEnter;
- return $this;
- }
-
- /**
- * If `true`, will end the conference when this participant leaves. Defaults to `false`.
- *
- * @param boolean $endConferenceOnExit End the conference when the participant
- * leaves.
- * @return $this Fluent Builder
- */
- public function setEndConferenceOnExit($endConferenceOnExit) {
- $this->options['endConferenceOnExit'] = $endConferenceOnExit;
- return $this;
- }
-
- /**
- * Specify an absolute URL that hosts music to play before the conference starts. Defualts to Twilio's standard [hold music](https://www.twilio.com/labs/twimlets/holdmusic).
- *
- * @param string $waitUrl URL that hosts pre-conference hold music
- * @return $this Fluent Builder
- */
- public function setWaitUrl($waitUrl) {
- $this->options['waitUrl'] = $waitUrl;
- return $this;
- }
-
- /**
- * Specify which method, `GET` or `POST`, Twilio should use to request the `WaitUrl` for this conference. Be sure to use `GET` if you are directly requesting static audio files so that Twilio properly caches the files. Defaults to `POST`.
- *
- * @param string $waitMethod The method Twilio should use to request `WaitUrl`.
- * @return $this Fluent Builder
- */
- public function setWaitMethod($waitMethod) {
- $this->options['waitMethod'] = $waitMethod;
- return $this;
- }
-
- /**
- * Allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be `true` or `false`. Defaults to `true`.
- *
- * @param boolean $earlyMedia Agents can hear the state of the outbound call.
- * @return $this Fluent Builder
- */
- public function setEarlyMedia($earlyMedia) {
- $this->options['earlyMedia'] = $earlyMedia;
- return $this;
- }
-
- /**
- * The maximum number of participants within this agent conference. Values can be positive integers from `2`-`10`. Defaults to `10`.
- *
- * @param integer $maxParticipants Maximum number of agent conference
- * participants.
- * @return $this Fluent Builder
- */
- public function setMaxParticipants($maxParticipants) {
- $this->options['maxParticipants'] = $maxParticipants;
- return $this;
- }
-
- /**
- * Records the conference that this participant is joining. Options are `true`, `false`, `record-from-start`, and `do-not-record`. Deafults to `false`
- *
- * @param string $conferenceRecord Record the conference.
- * @return $this Fluent Builder
- */
- public function setConferenceRecord($conferenceRecord) {
- $this->options['conferenceRecord'] = $conferenceRecord;
- return $this;
- }
-
- /**
- * Specify whether to trim leading and trailing silence from your recorded conference audio files. Options are `trim-silence` and `do-not-trim`. Defaults to `trim-silence`
- *
- * @param string $conferenceTrim Trim silence from audio files.
- * @return $this Fluent Builder
- */
- public function setConferenceTrim($conferenceTrim) {
- $this->options['conferenceTrim'] = $conferenceTrim;
- return $this;
- }
-
- /**
- * The absolute URL Twilio should request with conference events specified in `ConferenceStatusCallbackEvent`. This value is set by the first Participant to join the conference, and subsequent callback URLs will be ignored.
- *
- * @param string $conferenceStatusCallback Callback URL for conference events.
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallback($conferenceStatusCallback) {
- $this->options['conferenceStatusCallback'] = $conferenceStatusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting the `ConferenceStatusCallback` URL. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $conferenceStatusCallbackMethod HTTP method for requesting
- * `ConferenceStatusCallback` URL.
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallbackMethod($conferenceStatusCallbackMethod) {
- $this->options['conferenceStatusCallbackMethod'] = $conferenceStatusCallbackMethod;
- return $this;
- }
-
- /**
- * Specifies which conference state changes should generate a webhook to the URL specified in the `ConferenceStatusCallback` attribute. Available values are `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. To specify multiple values, separate them with a space. Defaults to `start` and `end`.
- *
- * @param string $conferenceStatusCallbackEvent Set which conference state
- * changes should webhook to the
- * `ConferenceStatusCallback`
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallbackEvent($conferenceStatusCallbackEvent) {
- $this->options['conferenceStatusCallbackEvent'] = $conferenceStatusCallbackEvent;
- return $this;
- }
-
- /**
- * Set the recording channels for the final agent/conference recording. Either `mono` or `dual`. Defaults to `mono`.
- *
- * @param string $recordingChannels Specify `mono` or `dual` recording channels.
- * @return $this Fluent Builder
- */
- public function setRecordingChannels($recordingChannels) {
- $this->options['recordingChannels'] = $recordingChannels;
- return $this;
- }
-
- /**
- * Specifies the `absolute URL` that Twilio should request when the recording is available if the agent and conference are recorded.
- *
- * @param string $recordingStatusCallback The absolute URL for Twilio's webhook
- * with recording status information.
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting the `RecordingStatusCallback`. `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $recordingStatusCallbackMethod HTTP method for
- * `RecordingStatusCallback`
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * SIP username used for authenticating.
- *
- * @param string $sipAuthUsername SIP username used for authenticating.
- * @return $this Fluent Builder
- */
- public function setSipAuthUsername($sipAuthUsername) {
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- return $this;
- }
-
- /**
- * SIP password for authentication.
- *
- * @param string $sipAuthPassword SIP password for authentication.
- * @return $this Fluent Builder
- */
- public function setSipAuthPassword($sipAuthPassword) {
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- return $this;
- }
-
- /**
- * Specifies the [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where Twilio should mix the recorded audio. Options are `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, `jp1`.
- *
- * @param string $region The region where Twilio should mix the conference
- * audio.
- * @return $this Fluent Builder
- */
- public function setRegion($region) {
- $this->options['region'] = $region;
- return $this;
- }
-
- /**
- * The `absolute URL` Twilio should request when the conference recording is available.
- *
- * @param string $conferenceRecordingStatusCallback Conference recording
- * callback URL.
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallback($conferenceRecordingStatusCallback) {
- $this->options['conferenceRecordingStatusCallback'] = $conferenceRecordingStatusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting your recording status callback URL, either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $conferenceRecordingStatusCallbackMethod Method Twilio should
- * use to request the
- * `ConferenceRecordingStatusCallback` URL.
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallbackMethod($conferenceRecordingStatusCallbackMethod) {
- $this->options['conferenceRecordingStatusCallbackMethod'] = $conferenceRecordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * Specifies which recording state changes should generate a webhook to the URL specified in the `RecordingStatusCallback` attribute. Available values are `in-progress`, `completed`, `failed`. To specify multiple values, separate them with a space. Defaults to `in-progress`, `completed`, `failed`.
- *
- * @param string $recordingStatusCallbackEvent Set which recording state
- * changes should webhook to the
- * `RecordingStatusCallback`
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackEvent($recordingStatusCallbackEvent) {
- $this->options['recordingStatusCallbackEvent'] = $recordingStatusCallbackEvent;
- return $this;
- }
-
- /**
- * Specifies which conference recording state changes should generate a webhook to the URL specified in the `ConferenceRecordingStatusCallback` attribute. Available values are `in-progress`, `completed`, `failed`. To specify multiple values, separate them with a space. Defaults to `in-progress`, `completed`, `failed`.
- *
- * @param string $conferenceRecordingStatusCallbackEvent Set which conference
- * recording state
- * changes should webhook
- * to the
- * `ConferenceRecordingStatusCallback`
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallbackEvent($conferenceRecordingStatusCallbackEvent) {
- $this->options['conferenceRecordingStatusCallbackEvent'] = $conferenceRecordingStatusCallbackEvent;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadParticipantOptions extends Options {
- /**
- * @param boolean $muted Filter by muted participants
- * @param boolean $hold Only show participants that are held or unheld.
- */
- public function __construct($muted = Values::NONE, $hold = Values::NONE) {
- $this->options['muted'] = $muted;
- $this->options['hold'] = $hold;
- }
-
- /**
- * Only return participants that are muted or unmuted. Either `true` or `false`.
- *
- * @param boolean $muted Filter by muted participants
- * @return $this Fluent Builder
- */
- public function setMuted($muted) {
- $this->options['muted'] = $muted;
- return $this;
- }
-
- /**
- * Only return participants that are on hold or not on hold. Either `true` or `false`.
- *
- * @param boolean $hold Only show participants that are held or unheld.
- * @return $this Fluent Builder
- */
- public function setHold($hold) {
- $this->options['hold'] = $hold;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantPage.php
deleted file mode 100644
index 29e2caf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/ParticipantPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ParticipantPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingContext.php
deleted file mode 100644
index f05f3c3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingContext.php
+++ /dev/null
@@ -1,115 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'conferenceSid' => $conferenceSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Conferences/' . rawurlencode($conferenceSid) . '/Recordings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Update the RecordingInstance
- *
- * @param string $status The status to change the recording to.
- * @param array|Options $options Optional Arguments
- * @return RecordingInstance Updated RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($status, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Status' => $status, 'PauseBehavior' => $options['pauseBehavior'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.RecordingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingInstance.php
deleted file mode 100644
index a1b1600..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingInstance.php
+++ /dev/null
@@ -1,166 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'conferenceSid' => Values::array_get($payload, 'conference_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'status' => Values::array_get($payload, 'status'),
- 'channels' => Values::array_get($payload, 'channels'),
- 'source' => Values::array_get($payload, 'source'),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- 'encryptionDetails' => Values::array_get($payload, 'encryption_details'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'conferenceSid' => $conferenceSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Conference\RecordingContext Context
- * for this
- * RecordingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RecordingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Update the RecordingInstance
- *
- * @param string $status The status to change the recording to.
- * @param array|Options $options Optional Arguments
- * @return RecordingInstance Updated RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($status, $options = array()) {
- return $this->proxy()->update($status, $options);
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.RecordingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingList.php
deleted file mode 100644
index 5e9c66c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('accountSid' => $accountSid, 'conferenceSid' => $conferenceSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Conferences/' . rawurlencode($conferenceSid) . '/Recordings.json';
- }
-
- /**
- * Streams RecordingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RecordingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RecordingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DateCreated<' => Serialize::iso8601Date($options['dateCreatedBefore']),
- 'DateCreated' => Serialize::iso8601Date($options['dateCreated']),
- 'DateCreated>' => Serialize::iso8601Date($options['dateCreatedAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RecordingContext
- *
- * @param string $sid Fetch by unique recording Sid
- * @return \Twilio\Rest\Api\V2010\Account\Conference\RecordingContext
- */
- public function getContext($sid) {
- return new RecordingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['conferenceSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.php
deleted file mode 100644
index 73808a0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.php
+++ /dev/null
@@ -1,132 +0,0 @@
-options['pauseBehavior'] = $pauseBehavior;
- }
-
- /**
- * Only applicable when setting Status parameter to `paused`. Possible values: `skip` or `silence`. `skip` will result in no recording at all during the pause period. `silence` will replace the actual audio of the call with silence during the pause period. Defaults to `silence`
- *
- * @param string $pauseBehavior Whether to record or not during the pause
- * period.
- * @return $this Fluent Builder
- */
- public function setPauseBehavior($pauseBehavior) {
- $this->options['pauseBehavior'] = $pauseBehavior;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadRecordingOptions extends Options {
- /**
- * @param string $dateCreatedBefore Filter by date created
- * @param string $dateCreated Filter by date created
- * @param string $dateCreatedAfter Filter by date created
- */
- public function __construct($dateCreatedBefore = Values::NONE, $dateCreated = Values::NONE, $dateCreatedAfter = Values::NONE) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for recordings generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for recordings generated at or after midnight on a date.
- *
- * @param string $dateCreatedBefore Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for recordings generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for recordings generated at or after midnight on a date.
- *
- * @param string $dateCreated Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for recordings generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for recordings generated at or after midnight on a date.
- *
- * @param string $dateCreatedAfter Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingPage.php
deleted file mode 100644
index 14529b1..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Conference/RecordingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['conferenceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceContext.php
deleted file mode 100644
index 21de964..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceContext.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Conferences/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a ConferenceInstance
- *
- * @return ConferenceInstance Fetched ConferenceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ConferenceInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ConferenceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ConferenceInstance Updated ConferenceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Status' => $options['status'],
- 'AnnounceUrl' => $options['announceUrl'],
- 'AnnounceMethod' => $options['announceMethod'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ConferenceInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the participants
- *
- * @return \Twilio\Rest\Api\V2010\Account\Conference\ParticipantList
- */
- protected function getParticipants() {
- if (!$this->_participants) {
- $this->_participants = new ParticipantList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_participants;
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Conference\RecordingList
- */
- protected function getRecordings() {
- if (!$this->_recordings) {
- $this->_recordings = new RecordingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_recordings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ConferenceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceInstance.php
deleted file mode 100644
index a804c1b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'region' => Values::array_get($payload, 'region'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceContext Context for this
- * ConferenceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ConferenceContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ConferenceInstance
- *
- * @return ConferenceInstance Fetched ConferenceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ConferenceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ConferenceInstance Updated ConferenceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the participants
- *
- * @return \Twilio\Rest\Api\V2010\Account\Conference\ParticipantList
- */
- protected function getParticipants() {
- return $this->proxy()->participants;
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Conference\RecordingList
- */
- protected function getRecordings() {
- return $this->proxy()->recordings;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ConferenceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceList.php
deleted file mode 100644
index 23ba51f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceList.php
+++ /dev/null
@@ -1,151 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Conferences.json';
- }
-
- /**
- * Streams ConferenceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ConferenceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ConferenceInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ConferenceInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ConferenceInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DateCreated<' => Serialize::iso8601Date($options['dateCreatedBefore']),
- 'DateCreated' => Serialize::iso8601Date($options['dateCreated']),
- 'DateCreated>' => Serialize::iso8601Date($options['dateCreatedAfter']),
- 'DateUpdated<' => Serialize::iso8601Date($options['dateUpdatedBefore']),
- 'DateUpdated' => Serialize::iso8601Date($options['dateUpdated']),
- 'DateUpdated>' => Serialize::iso8601Date($options['dateUpdatedAfter']),
- 'FriendlyName' => $options['friendlyName'],
- 'Status' => $options['status'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ConferencePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ConferenceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ConferenceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ConferencePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ConferenceContext
- *
- * @param string $sid Fetch by unique conference Sid
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceContext
- */
- public function getContext($sid) {
- return new ConferenceContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ConferenceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php
deleted file mode 100644
index c729b03..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php
+++ /dev/null
@@ -1,233 +0,0 @@
-options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateUpdatedBefore'] = $dateUpdatedBefore;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['dateUpdatedAfter'] = $dateUpdatedAfter;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['status'] = $status;
- }
-
- /**
- * Only show conferences that started on this date, given as `YYYY-MM-DD`. You can also specify inequality – for conferences that started at or before midnight on a date use `DateCreated<=YYYY-MM-DD`, or specify conferences that started at or after midnight on a date with `DateCreated>=YYYY-MM-DD`.
- *
- * @param string $dateCreatedBefore Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Only show conferences that started on this date, given as `YYYY-MM-DD`. You can also specify inequality – for conferences that started at or before midnight on a date use `DateCreated<=YYYY-MM-DD`, or specify conferences that started at or after midnight on a date with `DateCreated>=YYYY-MM-DD`.
- *
- * @param string $dateCreated Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * Only show conferences that started on this date, given as `YYYY-MM-DD`. You can also specify inequality – for conferences that started at or before midnight on a date use `DateCreated<=YYYY-MM-DD`, or specify conferences that started at or after midnight on a date with `DateCreated>=YYYY-MM-DD`.
- *
- * @param string $dateCreatedAfter Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show conferences that were last updated on this date, given as `YYYY-MM-DD`. You can also specify inequality – for conferences that were last updated at or before midnight on a date use `DateUpdated<=YYYY-MM-DD`, or specify conferences updated at or after midnight on a given date with `DateUpdated>=YYYY-MM-DD`.
- *
- * @param string $dateUpdatedBefore Filter by date updated
- * @return $this Fluent Builder
- */
- public function setDateUpdatedBefore($dateUpdatedBefore) {
- $this->options['dateUpdatedBefore'] = $dateUpdatedBefore;
- return $this;
- }
-
- /**
- * Only show conferences that were last updated on this date, given as `YYYY-MM-DD`. You can also specify inequality – for conferences that were last updated at or before midnight on a date use `DateUpdated<=YYYY-MM-DD`, or specify conferences updated at or after midnight on a given date with `DateUpdated>=YYYY-MM-DD`.
- *
- * @param string $dateUpdated Filter by date updated
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Only show conferences that were last updated on this date, given as `YYYY-MM-DD`. You can also specify inequality – for conferences that were last updated at or before midnight on a date use `DateUpdated<=YYYY-MM-DD`, or specify conferences updated at or after midnight on a given date with `DateUpdated>=YYYY-MM-DD`.
- *
- * @param string $dateUpdatedAfter Filter by date updated
- * @return $this Fluent Builder
- */
- public function setDateUpdatedAfter($dateUpdatedAfter) {
- $this->options['dateUpdatedAfter'] = $dateUpdatedAfter;
- return $this;
- }
-
- /**
- * Only show results who's friendly name exactly matches the string
- *
- * @param string $friendlyName Filter by friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A string representing the status of the conference. May be `init`, `in-progress`, or `completed`.
- *
- * @param string $status The status of the conference
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadConferenceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateConferenceOptions extends Options {
- /**
- * @param string $status Specifying completed will end the conference and kick
- * all participants
- * @param string $announceUrl The 'AnnounceUrl' attribute lets you specify a
- * URL for announcing something into a conference.
- * @param string $announceMethod Specify GET or POST, defaults to POST
- */
- public function __construct($status = Values::NONE, $announceUrl = Values::NONE, $announceMethod = Values::NONE) {
- $this->options['status'] = $status;
- $this->options['announceUrl'] = $announceUrl;
- $this->options['announceMethod'] = $announceMethod;
- }
-
- /**
- * Specifying `completed` will end the conference and kick all participants
- *
- * @param string $status Specifying completed will end the conference and kick
- * all participants
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The 'AnnounceUrl' attribute lets you specify a URL for announcing something into a conference. The URL may return an MP3, a WAV or a TwiML document with `` or ``.
- *
- * @param string $announceUrl The 'AnnounceUrl' attribute lets you specify a
- * URL for announcing something into a conference.
- * @return $this Fluent Builder
- */
- public function setAnnounceUrl($announceUrl) {
- $this->options['announceUrl'] = $announceUrl;
- return $this;
- }
-
- /**
- * Specify GET or POST, defaults to POST
- *
- * @param string $announceMethod Specify GET or POST, defaults to POST
- * @return $this Fluent Builder
- */
- public function setAnnounceMethod($announceMethod) {
- $this->options['announceMethod'] = $announceMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateConferenceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferencePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferencePage.php
deleted file mode 100644
index ef34942..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConferencePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ConferenceInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ConferencePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppContext.php
deleted file mode 100644
index 1f8a94e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppContext.php
+++ /dev/null
@@ -1,107 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/ConnectApps/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a ConnectAppInstance
- *
- * @return ConnectAppInstance Fetched ConnectAppInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ConnectAppInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ConnectAppInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ConnectAppInstance Updated ConnectAppInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'AuthorizeRedirectUrl' => $options['authorizeRedirectUrl'],
- 'CompanyName' => $options['companyName'],
- 'DeauthorizeCallbackMethod' => $options['deauthorizeCallbackMethod'],
- 'DeauthorizeCallbackUrl' => $options['deauthorizeCallbackUrl'],
- 'Description' => $options['description'],
- 'FriendlyName' => $options['friendlyName'],
- 'HomepageUrl' => $options['homepageUrl'],
- 'Permissions' => Serialize::map($options['permissions'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ConnectAppInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ConnectAppContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppInstance.php
deleted file mode 100644
index eb62240..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppInstance.php
+++ /dev/null
@@ -1,134 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'authorizeRedirectUrl' => Values::array_get($payload, 'authorize_redirect_url'),
- 'companyName' => Values::array_get($payload, 'company_name'),
- 'deauthorizeCallbackMethod' => Values::array_get($payload, 'deauthorize_callback_method'),
- 'deauthorizeCallbackUrl' => Values::array_get($payload, 'deauthorize_callback_url'),
- 'description' => Values::array_get($payload, 'description'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'homepageUrl' => Values::array_get($payload, 'homepage_url'),
- 'permissions' => Values::array_get($payload, 'permissions'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppContext Context for this
- * ConnectAppInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ConnectAppContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ConnectAppInstance
- *
- * @return ConnectAppInstance Fetched ConnectAppInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ConnectAppInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ConnectAppInstance Updated ConnectAppInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ConnectAppInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppList.php
deleted file mode 100644
index 40046ee..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppList.php
+++ /dev/null
@@ -1,137 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/ConnectApps.json';
- }
-
- /**
- * Streams ConnectAppInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ConnectAppInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ConnectAppInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ConnectAppInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ConnectAppInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ConnectAppPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ConnectAppInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ConnectAppInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ConnectAppPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ConnectAppContext
- *
- * @param string $sid Fetch by unique connect-app Sid
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppContext
- */
- public function getContext($sid) {
- return new ConnectAppContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ConnectAppList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.php
deleted file mode 100644
index 92b52e7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.php
+++ /dev/null
@@ -1,168 +0,0 @@
-options['authorizeRedirectUrl'] = $authorizeRedirectUrl;
- $this->options['companyName'] = $companyName;
- $this->options['deauthorizeCallbackMethod'] = $deauthorizeCallbackMethod;
- $this->options['deauthorizeCallbackUrl'] = $deauthorizeCallbackUrl;
- $this->options['description'] = $description;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['homepageUrl'] = $homepageUrl;
- $this->options['permissions'] = $permissions;
- }
-
- /**
- * The URL the user's browser will redirect to after Twilio authenticates the user and obtains authorization for this Connect App.
- *
- * @param string $authorizeRedirectUrl URIL Twilio sends requests when users
- * authorize
- * @return $this Fluent Builder
- */
- public function setAuthorizeRedirectUrl($authorizeRedirectUrl) {
- $this->options['authorizeRedirectUrl'] = $authorizeRedirectUrl;
- return $this;
- }
-
- /**
- * The company name set for this Connect App.
- *
- * @param string $companyName The company name set for this Connect App.
- * @return $this Fluent Builder
- */
- public function setCompanyName($companyName) {
- $this->options['companyName'] = $companyName;
- return $this;
- }
-
- /**
- * The HTTP method to be used when making a request to the `DeauthorizeCallbackUrl`. Either `GET` or `POST`.
- *
- * @param string $deauthorizeCallbackMethod HTTP method Twilio WIll use making
- * requests to the url
- * @return $this Fluent Builder
- */
- public function setDeauthorizeCallbackMethod($deauthorizeCallbackMethod) {
- $this->options['deauthorizeCallbackMethod'] = $deauthorizeCallbackMethod;
- return $this;
- }
-
- /**
- * The URL to which Twilio will send a request when a user de-authorizes this Connect App.
- *
- * @param string $deauthorizeCallbackUrl URL Twilio will send a request when a
- * user de-authorizes this app
- * @return $this Fluent Builder
- */
- public function setDeauthorizeCallbackUrl($deauthorizeCallbackUrl) {
- $this->options['deauthorizeCallbackUrl'] = $deauthorizeCallbackUrl;
- return $this;
- }
-
- /**
- * A more detailed human readable description of the Connect App.
- *
- * @param string $description A more detailed human readable description
- * @return $this Fluent Builder
- */
- public function setDescription($description) {
- $this->options['description'] = $description;
- return $this;
- }
-
- /**
- * A human readable description of the Connect App, with maximum length 64 characters.
- *
- * @param string $friendlyName A human readable name for the Connect App.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The public URL where users can obtain more information about this Connect App.
- *
- * @param string $homepageUrl The URL users can obtain more information
- * @return $this Fluent Builder
- */
- public function setHomepageUrl($homepageUrl) {
- $this->options['homepageUrl'] = $homepageUrl;
- return $this;
- }
-
- /**
- * A comma-separated list of permssions you will request from users of this ConnectApp. Valid permssions are `get-all` or `post-all`.
- *
- * @param string $permissions The set of permissions that your ConnectApp
- * requests.
- * @return $this Fluent Builder
- */
- public function setPermissions($permissions) {
- $this->options['permissions'] = $permissions;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateConnectAppOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppPage.php
deleted file mode 100644
index eefa867..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ConnectAppPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ConnectAppInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ConnectAppPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionContext.php
deleted file mode 100644
index 97f0f28..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'resourceSid' => $resourceSid,
- 'assignedAddOnSid' => $assignedAddOnSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/' . rawurlencode($resourceSid) . '/AssignedAddOns/' . rawurlencode($assignedAddOnSid) . '/Extensions/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AssignedAddOnExtensionInstance
- *
- * @return AssignedAddOnExtensionInstance Fetched AssignedAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssignedAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['assignedAddOnSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AssignedAddOnExtensionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionInstance.php
deleted file mode 100644
index 29ab5a5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionInstance.php
+++ /dev/null
@@ -1,130 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'resourceSid' => Values::array_get($payload, 'resource_sid'),
- 'assignedAddOnSid' => Values::array_get($payload, 'assigned_add_on_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'productName' => Values::array_get($payload, 'product_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'enabled' => Values::array_get($payload, 'enabled'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'resourceSid' => $resourceSid,
- 'assignedAddOnSid' => $assignedAddOnSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOn\AssignedAddOnExtensionContext Context for this
- * AssignedAddOnExtensionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AssignedAddOnExtensionContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['assignedAddOnSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AssignedAddOnExtensionInstance
- *
- * @return AssignedAddOnExtensionInstance Fetched AssignedAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AssignedAddOnExtensionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php
deleted file mode 100644
index bb5a875..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php
+++ /dev/null
@@ -1,156 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'resourceSid' => $resourceSid,
- 'assignedAddOnSid' => $assignedAddOnSid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/' . rawurlencode($resourceSid) . '/AssignedAddOns/' . rawurlencode($assignedAddOnSid) . '/Extensions.json';
- }
-
- /**
- * Streams AssignedAddOnExtensionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AssignedAddOnExtensionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AssignedAddOnExtensionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AssignedAddOnExtensionInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AssignedAddOnExtensionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssignedAddOnExtensionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AssignedAddOnExtensionInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AssignedAddOnExtensionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AssignedAddOnExtensionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AssignedAddOnExtensionContext
- *
- * @param string $sid The unique Extension Sid
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOn\AssignedAddOnExtensionContext
- */
- public function getContext($sid) {
- return new AssignedAddOnExtensionContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['assignedAddOnSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AssignedAddOnExtensionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionPage.php
deleted file mode 100644
index 20f2f94..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionPage.php
+++ /dev/null
@@ -1,43 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AssignedAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['assignedAddOnSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AssignedAddOnExtensionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnContext.php
deleted file mode 100644
index 50e50ad..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnContext.php
+++ /dev/null
@@ -1,142 +0,0 @@
-solution = array('accountSid' => $accountSid, 'resourceSid' => $resourceSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/' . rawurlencode($resourceSid) . '/AssignedAddOns/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AssignedAddOnInstance
- *
- * @return AssignedAddOnInstance Fetched AssignedAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssignedAddOnInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the AssignedAddOnInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the extensions
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOn\AssignedAddOnExtensionList
- */
- protected function getExtensions() {
- if (!$this->_extensions) {
- $this->_extensions = new AssignedAddOnExtensionList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_extensions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AssignedAddOnContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnInstance.php
deleted file mode 100644
index 7a05a2d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'resourceSid' => Values::array_get($payload, 'resource_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'description' => Values::array_get($payload, 'description'),
- 'configuration' => Values::array_get($payload, 'configuration'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'uri' => Values::array_get($payload, 'uri'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'resourceSid' => $resourceSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnContext Context for this
- * AssignedAddOnInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AssignedAddOnContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AssignedAddOnInstance
- *
- * @return AssignedAddOnInstance Fetched AssignedAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AssignedAddOnInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the extensions
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOn\AssignedAddOnExtensionList
- */
- protected function getExtensions() {
- return $this->proxy()->extensions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AssignedAddOnInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
deleted file mode 100644
index 0b8288d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array('accountSid' => $accountSid, 'resourceSid' => $resourceSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/' . rawurlencode($resourceSid) . '/AssignedAddOns.json';
- }
-
- /**
- * Streams AssignedAddOnInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AssignedAddOnInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AssignedAddOnInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AssignedAddOnInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AssignedAddOnInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssignedAddOnPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AssignedAddOnInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AssignedAddOnInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AssignedAddOnPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new AssignedAddOnInstance
- *
- * @param string $installedAddOnSid A string that uniquely identifies the
- * Add-on installation
- * @return AssignedAddOnInstance Newly created AssignedAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($installedAddOnSid) {
- $data = Values::of(array('InstalledAddOnSid' => $installedAddOnSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssignedAddOnInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['resourceSid']
- );
- }
-
- /**
- * Constructs a AssignedAddOnContext
- *
- * @param string $sid The unique Installed Add-on Sid
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnContext
- */
- public function getContext($sid) {
- return new AssignedAddOnContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['resourceSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AssignedAddOnList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnPage.php
deleted file mode 100644
index 6eabe47..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AssignedAddOnInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['resourceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AssignedAddOnPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalInstance.php
deleted file mode 100644
index 4ad18c0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalInstance.php
+++ /dev/null
@@ -1,123 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'identitySid' => Values::array_get($payload, 'identity_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'origin' => Values::array_get($payload, 'origin'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsApplicationSid' => Values::array_get($payload, 'sms_application_sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'voiceApplicationSid' => Values::array_get($payload, 'voice_application_sid'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LocalInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalList.php
deleted file mode 100644
index d4fdc3e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalList.php
+++ /dev/null
@@ -1,179 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/Local.json';
- }
-
- /**
- * Streams LocalInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads LocalInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return LocalInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of LocalInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of LocalInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'FriendlyName' => $options['friendlyName'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'Origin' => $options['origin'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new LocalPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of LocalInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of LocalInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new LocalPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new LocalInstance
- *
- * @param string $phoneNumber The phone number you want to purchase.
- * @param array|Options $options Optional Arguments
- * @return LocalInstance Newly created LocalInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumber, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PhoneNumber' => $phoneNumber,
- 'ApiVersion' => $options['apiVersion'],
- 'FriendlyName' => $options['friendlyName'],
- 'SmsApplicationSid' => $options['smsApplicationSid'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceApplicationSid' => $options['voiceApplicationSid'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'IdentitySid' => $options['identitySid'],
- 'AddressSid' => $options['addressSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new LocalInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LocalList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.php
deleted file mode 100644
index 5d54126..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.php
+++ /dev/null
@@ -1,436 +0,0 @@
-options['beta'] = $beta;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['origin'] = $origin;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include phone numbers new to the Twilio platform.
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName Only show the incoming phone number resources
- * with friendly names that exactly match this name.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit.
- *
- * @param string $phoneNumber Only show the incoming phone number resources
- * that match this pattern.
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * Include phone numbers based on the origin, by default, phone numbers of all origin are included. Possible values are either `twilio` or `hosted`.
- *
- * @param string $origin Include phone numbers based on the origin, by default,
- * phone numbers of all origin are included.
- * @return $this Fluent Builder
- */
- public function setOrigin($origin) {
- $this->options['origin'] = $origin;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadLocalOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateLocalOptions extends Options {
- /**
- * @param string $apiVersion The Twilio REST API version to use for incoming
- * calls made to this number.
- * @param string $friendlyName A human readable description of the new incoming
- * phone number.
- * @param string $smsApplicationSid The 34 character sid of the application
- * Twilio should use to handle SMSs sent to
- * the new number.
- * @param string $smsFallbackMethod The HTTP method that should be used to
- * request the SmsFallbackUrl.
- * @param string $smsFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML
- * defined by SmsUrl.
- * @param string $smsMethod The HTTP method that should be used to request the
- * SmsUrl.
- * @param string $smsUrl The URL that Twilio should request when somebody sends
- * an SMS to the phone number.
- * @param string $statusCallback The URL that Twilio will request to pass
- * status parameters to your application.
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @param string $voiceApplicationSid The 34 character sid of the application
- * Twilio should use to handle phone calls
- * to the new number.
- * @param boolean $voiceCallerIdLookup Do a lookup of a caller's name from the
- * CNAM database and post it to your app.
- * @param string $voiceFallbackMethod The HTTP method that should be used to
- * request the VoiceFallbackUrl.
- * @param string $voiceFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML at
- * Url.
- * @param string $voiceMethod The HTTP method that should be used to request
- * the VoiceUrl.
- * @param string $voiceUrl The URL that Twilio should request when somebody
- * dials the new phone number.
- * @param string $identitySid The identity_sid
- * @param string $addressSid The 34 character sid of the address Twilio should
- * associate with the number.
- */
- public function __construct($apiVersion = Values::NONE, $friendlyName = Values::NONE, $smsApplicationSid = Values::NONE, $smsFallbackMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsMethod = Values::NONE, $smsUrl = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $voiceApplicationSid = Values::NONE, $voiceCallerIdLookup = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceUrl = Values::NONE, $identitySid = Values::NONE, $addressSid = Values::NONE) {
- $this->options['apiVersion'] = $apiVersion;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['identitySid'] = $identitySid;
- $this->options['addressSid'] = $addressSid;
- }
-
- /**
- * The Twilio REST API version to use for incoming calls made to this number. If omitted, uses `2010-04-01`.
- *
- * @param string $apiVersion The Twilio REST API version to use for incoming
- * calls made to this number.
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * A human readable description of the new incoming phone number. Maximum 64 characters. Defaults to a formatted version of the number.
- *
- * @param string $friendlyName A human readable description of the new incoming
- * phone number.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle SMSs sent to the new number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application.
- *
- * @param string $smsApplicationSid The 34 character sid of the application
- * Twilio should use to handle SMSs sent to
- * the new number.
- * @return $this Fluent Builder
- */
- public function setSmsApplicationSid($smsApplicationSid) {
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsFallbackMethod The HTTP method that should be used to
- * request the SmsFallbackUrl.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML
- * defined by SmsUrl.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsMethod The HTTP method that should be used to request the
- * SmsUrl.
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody sends an SMS to the phone number.
- *
- * @param string $smsUrl The URL that Twilio should request when somebody sends
- * an SMS to the phone number.
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback The URL that Twilio will request to pass
- * status parameters to your application.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle phone calls to the new number. If a `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above and use those set on the application. Setting a `VoiceApplicationSid` will automatically delete your `TrunkSid` and vice versa.
- *
- * @param string $voiceApplicationSid The 34 character sid of the application
- * Twilio should use to handle phone calls
- * to the new number.
- * @return $this Fluent Builder
- */
- public function setVoiceApplicationSid($voiceApplicationSid) {
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- return $this;
- }
-
- /**
- * Do a lookup of a caller's name from the CNAM database and post it to your app. Either `true` or `false`. Defaults to `false`.
- *
- * @param boolean $voiceCallerIdLookup Do a lookup of a caller's name from the
- * CNAM database and post it to your app.
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceFallbackMethod The HTTP method that should be used to
- * request the VoiceFallbackUrl.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML at `Url`.
- *
- * @param string $voiceFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML at
- * Url.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceMethod The HTTP method that should be used to request
- * the VoiceUrl.
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials the new phone number. The VoiceURL will no longer be used if a `VoiceApplicationSid` or a `TrunkSid` is set.
- *
- * @param string $voiceUrl The URL that Twilio should request when somebody
- * dials the new phone number.
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The identity_sid
- *
- * @param string $identitySid The identity_sid
- * @return $this Fluent Builder
- */
- public function setIdentitySid($identitySid) {
- $this->options['identitySid'] = $identitySid;
- return $this;
- }
-
- /**
- * The 34 character sid of the address Twilio should associate with the number.
- *
- * @param string $addressSid The 34 character sid of the address Twilio should
- * associate with the number.
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateLocalOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalPage.php
deleted file mode 100644
index bd76719..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new LocalInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LocalPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileInstance.php
deleted file mode 100644
index 42e6bae..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileInstance.php
+++ /dev/null
@@ -1,123 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'identitySid' => Values::array_get($payload, 'identity_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'origin' => Values::array_get($payload, 'origin'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsApplicationSid' => Values::array_get($payload, 'sms_application_sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'voiceApplicationSid' => Values::array_get($payload, 'voice_application_sid'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MobileInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileList.php
deleted file mode 100644
index a88fdaa..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileList.php
+++ /dev/null
@@ -1,179 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/Mobile.json';
- }
-
- /**
- * Streams MobileInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MobileInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MobileInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MobileInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MobileInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'FriendlyName' => $options['friendlyName'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'Origin' => $options['origin'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MobilePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MobileInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MobileInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MobilePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new MobileInstance
- *
- * @param string $phoneNumber The phone number you want to purchase.
- * @param array|Options $options Optional Arguments
- * @return MobileInstance Newly created MobileInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumber, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PhoneNumber' => $phoneNumber,
- 'ApiVersion' => $options['apiVersion'],
- 'FriendlyName' => $options['friendlyName'],
- 'SmsApplicationSid' => $options['smsApplicationSid'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceApplicationSid' => $options['voiceApplicationSid'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'IdentitySid' => $options['identitySid'],
- 'AddressSid' => $options['addressSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MobileInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MobileList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.php
deleted file mode 100644
index b85739a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.php
+++ /dev/null
@@ -1,436 +0,0 @@
-options['beta'] = $beta;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['origin'] = $origin;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include phone numbers new to the Twilio platform.
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName Only show the incoming phone number resources
- * with friendly names that exactly match this name.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit.
- *
- * @param string $phoneNumber Only show the incoming phone number resources
- * that match this pattern.
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * Include phone numbers based on the origin, by default, phone numbers of all origin are included. Possible values are either `twilio` or `hosted`.
- *
- * @param string $origin Include phone numbers based on the origin, by default,
- * phone numbers of all origin are included.
- * @return $this Fluent Builder
- */
- public function setOrigin($origin) {
- $this->options['origin'] = $origin;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadMobileOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateMobileOptions extends Options {
- /**
- * @param string $apiVersion The Twilio REST API version to use for incoming
- * calls made to this number.
- * @param string $friendlyName A human readable description of the new incoming
- * phone number.
- * @param string $smsApplicationSid The 34 character sid of the application
- * Twilio should use to handle SMSs sent to
- * the new number.
- * @param string $smsFallbackMethod The HTTP method that should be used to
- * request the SmsFallbackUrl.
- * @param string $smsFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML
- * defined by SmsUrl.
- * @param string $smsMethod The HTTP method that should be used to request the
- * SmsUrl.
- * @param string $smsUrl The URL that Twilio should request when somebody sends
- * an SMS to the phone number.
- * @param string $statusCallback The URL that Twilio will request to pass
- * status parameters to your application.
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @param string $voiceApplicationSid The 34 character sid of the application
- * Twilio should use to handle phone calls
- * to the new number.
- * @param boolean $voiceCallerIdLookup Do a lookup of a caller's name from the
- * CNAM database and post it to your app.
- * @param string $voiceFallbackMethod The HTTP method that should be used to
- * request the VoiceFallbackUrl.
- * @param string $voiceFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML at
- * Url.
- * @param string $voiceMethod The HTTP method that should be used to request
- * the VoiceUrl.
- * @param string $voiceUrl The URL that Twilio should request when somebody
- * dials the new phone number.
- * @param string $identitySid The identity_sid
- * @param string $addressSid The 34 character sid of the address Twilio should
- * associate with the number.
- */
- public function __construct($apiVersion = Values::NONE, $friendlyName = Values::NONE, $smsApplicationSid = Values::NONE, $smsFallbackMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsMethod = Values::NONE, $smsUrl = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $voiceApplicationSid = Values::NONE, $voiceCallerIdLookup = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceUrl = Values::NONE, $identitySid = Values::NONE, $addressSid = Values::NONE) {
- $this->options['apiVersion'] = $apiVersion;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['identitySid'] = $identitySid;
- $this->options['addressSid'] = $addressSid;
- }
-
- /**
- * The Twilio REST API version to use for incoming calls made to this number. If omitted, uses `2010-04-01`.
- *
- * @param string $apiVersion The Twilio REST API version to use for incoming
- * calls made to this number.
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * A human readable description of the new incoming phone number. Maximum 64 characters. Defaults to a formatted version of the number.
- *
- * @param string $friendlyName A human readable description of the new incoming
- * phone number.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle SMSs sent to the new number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application.
- *
- * @param string $smsApplicationSid The 34 character sid of the application
- * Twilio should use to handle SMSs sent to
- * the new number.
- * @return $this Fluent Builder
- */
- public function setSmsApplicationSid($smsApplicationSid) {
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsFallbackMethod The HTTP method that should be used to
- * request the SmsFallbackUrl.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML
- * defined by SmsUrl.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsMethod The HTTP method that should be used to request the
- * SmsUrl.
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody sends an SMS to the phone number.
- *
- * @param string $smsUrl The URL that Twilio should request when somebody sends
- * an SMS to the phone number.
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback The URL that Twilio will request to pass
- * status parameters to your application.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle phone calls to the new number. If a `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above and use those set on the application. Setting a `VoiceApplicationSid` will automatically delete your `TrunkSid` and vice versa.
- *
- * @param string $voiceApplicationSid The 34 character sid of the application
- * Twilio should use to handle phone calls
- * to the new number.
- * @return $this Fluent Builder
- */
- public function setVoiceApplicationSid($voiceApplicationSid) {
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- return $this;
- }
-
- /**
- * Do a lookup of a caller's name from the CNAM database and post it to your app. Either `true` or `false`. Defaults to `false`.
- *
- * @param boolean $voiceCallerIdLookup Do a lookup of a caller's name from the
- * CNAM database and post it to your app.
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceFallbackMethod The HTTP method that should be used to
- * request the VoiceFallbackUrl.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML at `Url`.
- *
- * @param string $voiceFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML at
- * Url.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceMethod The HTTP method that should be used to request
- * the VoiceUrl.
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials the new phone number. The VoiceURL will no longer be used if a `VoiceApplicationSid` or a `TrunkSid` is set.
- *
- * @param string $voiceUrl The URL that Twilio should request when somebody
- * dials the new phone number.
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The identity_sid
- *
- * @param string $identitySid The identity_sid
- * @return $this Fluent Builder
- */
- public function setIdentitySid($identitySid) {
- $this->options['identitySid'] = $identitySid;
- return $this;
- }
-
- /**
- * The 34 character sid of the address Twilio should associate with the number.
- *
- * @param string $addressSid The 34 character sid of the address Twilio should
- * associate with the number.
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateMobileOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobilePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobilePage.php
deleted file mode 100644
index d1e2faa..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobilePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MobileInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MobilePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeInstance.php
deleted file mode 100644
index b14aa6d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeInstance.php
+++ /dev/null
@@ -1,123 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'identitySid' => Values::array_get($payload, 'identity_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'origin' => Values::array_get($payload, 'origin'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsApplicationSid' => Values::array_get($payload, 'sms_application_sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'voiceApplicationSid' => Values::array_get($payload, 'voice_application_sid'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TollFreeInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeList.php
deleted file mode 100644
index 2c62476..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeList.php
+++ /dev/null
@@ -1,179 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/TollFree.json';
- }
-
- /**
- * Streams TollFreeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TollFreeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TollFreeInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TollFreeInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TollFreeInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'FriendlyName' => $options['friendlyName'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'Origin' => $options['origin'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TollFreePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TollFreeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TollFreeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TollFreePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new TollFreeInstance
- *
- * @param string $phoneNumber The phone number you want to purchase.
- * @param array|Options $options Optional Arguments
- * @return TollFreeInstance Newly created TollFreeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumber, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PhoneNumber' => $phoneNumber,
- 'ApiVersion' => $options['apiVersion'],
- 'FriendlyName' => $options['friendlyName'],
- 'SmsApplicationSid' => $options['smsApplicationSid'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceApplicationSid' => $options['voiceApplicationSid'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'IdentitySid' => $options['identitySid'],
- 'AddressSid' => $options['addressSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TollFreeInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TollFreeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.php
deleted file mode 100644
index c9aa4a5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.php
+++ /dev/null
@@ -1,436 +0,0 @@
-options['beta'] = $beta;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['origin'] = $origin;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include phone numbers new to the Twilio platform.
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName Only show the incoming phone number resources
- * with friendly names that exactly match this name.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit.
- *
- * @param string $phoneNumber Only show the incoming phone number resources
- * that match this pattern.
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * Include phone numbers based on the origin, by default, phone numbers of all origin are included. Possible values are either `twilio` or `hosted`.
- *
- * @param string $origin Include phone numbers based on the origin, by default,
- * phone numbers of all origin are included.
- * @return $this Fluent Builder
- */
- public function setOrigin($origin) {
- $this->options['origin'] = $origin;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadTollFreeOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateTollFreeOptions extends Options {
- /**
- * @param string $apiVersion The Twilio REST API version to use for incoming
- * calls made to this number.
- * @param string $friendlyName A human readable description of the new incoming
- * phone number.
- * @param string $smsApplicationSid The 34 character sid of the application
- * Twilio should use to handle SMSs sent to
- * the new number.
- * @param string $smsFallbackMethod The HTTP method that should be used to
- * request the SmsFallbackUrl.
- * @param string $smsFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML
- * defined by SmsUrl.
- * @param string $smsMethod The HTTP method that should be used to request the
- * SmsUrl.
- * @param string $smsUrl The URL that Twilio should request when somebody sends
- * an SMS to the phone number.
- * @param string $statusCallback The URL that Twilio will request to pass
- * status parameters to your application.
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @param string $voiceApplicationSid The 34 character sid of the application
- * Twilio should use to handle phone calls
- * to the new number.
- * @param boolean $voiceCallerIdLookup Do a lookup of a caller's name from the
- * CNAM database and post it to your app.
- * @param string $voiceFallbackMethod The HTTP method that should be used to
- * request the VoiceFallbackUrl.
- * @param string $voiceFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML at
- * Url.
- * @param string $voiceMethod The HTTP method that should be used to request
- * the VoiceUrl.
- * @param string $voiceUrl The URL that Twilio should request when somebody
- * dials the new phone number.
- * @param string $identitySid The identity_sid
- * @param string $addressSid The 34 character sid of the address Twilio should
- * associate with the number.
- */
- public function __construct($apiVersion = Values::NONE, $friendlyName = Values::NONE, $smsApplicationSid = Values::NONE, $smsFallbackMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsMethod = Values::NONE, $smsUrl = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $voiceApplicationSid = Values::NONE, $voiceCallerIdLookup = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceUrl = Values::NONE, $identitySid = Values::NONE, $addressSid = Values::NONE) {
- $this->options['apiVersion'] = $apiVersion;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['identitySid'] = $identitySid;
- $this->options['addressSid'] = $addressSid;
- }
-
- /**
- * The Twilio REST API version to use for incoming calls made to this number. If omitted, uses `2010-04-01`.
- *
- * @param string $apiVersion The Twilio REST API version to use for incoming
- * calls made to this number.
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * A human readable description of the new incoming phone number. Maximum 64 characters. Defaults to a formatted version of the number.
- *
- * @param string $friendlyName A human readable description of the new incoming
- * phone number.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle SMSs sent to the new number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application.
- *
- * @param string $smsApplicationSid The 34 character sid of the application
- * Twilio should use to handle SMSs sent to
- * the new number.
- * @return $this Fluent Builder
- */
- public function setSmsApplicationSid($smsApplicationSid) {
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsFallbackMethod The HTTP method that should be used to
- * request the SmsFallbackUrl.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML
- * defined by SmsUrl.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsMethod The HTTP method that should be used to request the
- * SmsUrl.
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody sends an SMS to the phone number.
- *
- * @param string $smsUrl The URL that Twilio should request when somebody sends
- * an SMS to the phone number.
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback The URL that Twilio will request to pass
- * status parameters to your application.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod The HTTP method Twilio will use to make
- * requests to the StatusCallback URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle phone calls to the new number. If a `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above and use those set on the application. Setting a `VoiceApplicationSid` will automatically delete your `TrunkSid` and vice versa.
- *
- * @param string $voiceApplicationSid The 34 character sid of the application
- * Twilio should use to handle phone calls
- * to the new number.
- * @return $this Fluent Builder
- */
- public function setVoiceApplicationSid($voiceApplicationSid) {
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- return $this;
- }
-
- /**
- * Do a lookup of a caller's name from the CNAM database and post it to your app. Either `true` or `false`. Defaults to `false`.
- *
- * @param boolean $voiceCallerIdLookup Do a lookup of a caller's name from the
- * CNAM database and post it to your app.
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceFallbackMethod The HTTP method that should be used to
- * request the VoiceFallbackUrl.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML at `Url`.
- *
- * @param string $voiceFallbackUrl A URL that Twilio will request if an error
- * occurs requesting or executing the TwiML at
- * Url.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceMethod The HTTP method that should be used to request
- * the VoiceUrl.
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials the new phone number. The VoiceURL will no longer be used if a `VoiceApplicationSid` or a `TrunkSid` is set.
- *
- * @param string $voiceUrl The URL that Twilio should request when somebody
- * dials the new phone number.
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The identity_sid
- *
- * @param string $identitySid The identity_sid
- * @return $this Fluent Builder
- */
- public function setIdentitySid($identitySid) {
- $this->options['identitySid'] = $identitySid;
- return $this;
- }
-
- /**
- * The 34 character sid of the address Twilio should associate with the number.
- *
- * @param string $addressSid The 34 character sid of the address Twilio should
- * associate with the number.
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateTollFreeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreePage.php
deleted file mode 100644
index cd99aa8..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TollFreeInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TollFreePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberContext.php
deleted file mode 100644
index 2434144..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberContext.php
+++ /dev/null
@@ -1,189 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Update the IncomingPhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return IncomingPhoneNumberInstance Updated IncomingPhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'AccountSid' => $options['accountSid'],
- 'ApiVersion' => $options['apiVersion'],
- 'FriendlyName' => $options['friendlyName'],
- 'SmsApplicationSid' => $options['smsApplicationSid'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceApplicationSid' => $options['voiceApplicationSid'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'EmergencyStatus' => $options['emergencyStatus'],
- 'EmergencyAddressSid' => $options['emergencyAddressSid'],
- 'TrunkSid' => $options['trunkSid'],
- 'VoiceReceiveMode' => $options['voiceReceiveMode'],
- 'IdentitySid' => $options['identitySid'],
- 'AddressSid' => $options['addressSid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IncomingPhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Fetch a IncomingPhoneNumberInstance
- *
- * @return IncomingPhoneNumberInstance Fetched IncomingPhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IncomingPhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the IncomingPhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the assignedAddOns
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnList
- */
- protected function getAssignedAddOns() {
- if (!$this->_assignedAddOns) {
- $this->_assignedAddOns = new AssignedAddOnList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_assignedAddOns;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IncomingPhoneNumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberInstance.php
deleted file mode 100644
index 6913f42..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberInstance.php
+++ /dev/null
@@ -1,195 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'identitySid' => Values::array_get($payload, 'identity_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'origin' => Values::array_get($payload, 'origin'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsApplicationSid' => Values::array_get($payload, 'sms_application_sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'voiceApplicationSid' => Values::array_get($payload, 'voice_application_sid'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- 'emergencyStatus' => Values::array_get($payload, 'emergency_status'),
- 'emergencyAddressSid' => Values::array_get($payload, 'emergency_address_sid'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext Context
- * for this
- * IncomingPhoneNumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new IncomingPhoneNumberContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Update the IncomingPhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return IncomingPhoneNumberInstance Updated IncomingPhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Fetch a IncomingPhoneNumberInstance
- *
- * @return IncomingPhoneNumberInstance Fetched IncomingPhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the IncomingPhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the assignedAddOns
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnList
- */
- protected function getAssignedAddOns() {
- return $this->proxy()->assignedAddOns;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IncomingPhoneNumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberList.php
deleted file mode 100644
index bf7ea59..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberList.php
+++ /dev/null
@@ -1,273 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/IncomingPhoneNumbers.json';
- }
-
- /**
- * Streams IncomingPhoneNumberInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads IncomingPhoneNumberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return IncomingPhoneNumberInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of IncomingPhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of IncomingPhoneNumberInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Beta' => Serialize::booleanToString($options['beta']),
- 'FriendlyName' => $options['friendlyName'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'Origin' => $options['origin'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IncomingPhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of IncomingPhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of IncomingPhoneNumberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new IncomingPhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new IncomingPhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return IncomingPhoneNumberInstance Newly created IncomingPhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PhoneNumber' => $options['phoneNumber'],
- 'AreaCode' => $options['areaCode'],
- 'ApiVersion' => $options['apiVersion'],
- 'FriendlyName' => $options['friendlyName'],
- 'SmsApplicationSid' => $options['smsApplicationSid'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'VoiceApplicationSid' => $options['voiceApplicationSid'],
- 'VoiceCallerIdLookup' => Serialize::booleanToString($options['voiceCallerIdLookup']),
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'EmergencyStatus' => $options['emergencyStatus'],
- 'EmergencyAddressSid' => $options['emergencyAddressSid'],
- 'TrunkSid' => $options['trunkSid'],
- 'IdentitySid' => $options['identitySid'],
- 'AddressSid' => $options['addressSid'],
- 'VoiceReceiveMode' => $options['voiceReceiveMode'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IncomingPhoneNumberInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Access the local
- */
- protected function getLocal() {
- if (!$this->_local) {
- $this->_local = new LocalList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_local;
- }
-
- /**
- * Access the mobile
- */
- protected function getMobile() {
- if (!$this->_mobile) {
- $this->_mobile = new MobileList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_mobile;
- }
-
- /**
- * Access the tollFree
- */
- protected function getTollFree() {
- if (!$this->_tollFree) {
- $this->_tollFree = new TollFreeList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_tollFree;
- }
-
- /**
- * Constructs a IncomingPhoneNumberContext
- *
- * @param string $sid Fetch by unique incoming-phone-number Sid
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext
- */
- public function getContext($sid) {
- return new IncomingPhoneNumberContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IncomingPhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.php
deleted file mode 100644
index 90ed6fc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.php
+++ /dev/null
@@ -1,845 +0,0 @@
-options['accountSid'] = $accountSid;
- $this->options['apiVersion'] = $apiVersion;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['emergencyStatus'] = $emergencyStatus;
- $this->options['emergencyAddressSid'] = $emergencyAddressSid;
- $this->options['trunkSid'] = $trunkSid;
- $this->options['voiceReceiveMode'] = $voiceReceiveMode;
- $this->options['identitySid'] = $identitySid;
- $this->options['addressSid'] = $addressSid;
- }
-
- /**
- * The unique 34 character id of the account to which you wish to transfer this phone number. See [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).
- *
- * @param string $accountSid The new owner of the phone number
- * @return $this Fluent Builder
- */
- public function setAccountSid($accountSid) {
- $this->options['accountSid'] = $accountSid;
- return $this;
- }
-
- /**
- * Calls to this phone number will start a new TwiML session with this API version. Either `2010-04-01` or `2008-08-01`.
- *
- * @param string $apiVersion The Twilio REST API version to use
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * A human readable descriptive text for this resource, up to 64 characters long. By default, the `FriendlyName` is a nicely formatted version of the phone number.
- *
- * @param string $friendlyName A human readable description of this resource
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle SMSs sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application instead.
- *
- * @param string $smsApplicationSid Unique string that identifies the
- * application
- * @return $this Fluent Builder
- */
- public function setSmsApplicationSid($smsApplicationSid) {
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Either `GET` or `POST`.
- *
- * @param string $smsFallbackMethod HTTP method used with sms fallback url
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl URL Twilio will request if an error occurs in
- * executing TwiML
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when making requests to the `SmsUrl`. Either `GET` or `POST`.
- *
- * @param string $smsMethod HTTP method to use with sms url
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody sends an SMS to the new phone number.
- *
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback URL Twilio will use to pass status parameters
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`.
- *
- * @param string $statusCallbackMethod HTTP method twilio will use with status
- * callback
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle phone calls to this number. If a `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above and use those set on the application instead. Setting a `VoiceApplicationSid` will automatically delete your `TrunkSid` and vice versa.
- *
- * @param string $voiceApplicationSid The unique sid of the application to
- * handle this number
- * @return $this Fluent Builder
- */
- public function setVoiceApplicationSid($voiceApplicationSid) {
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- return $this;
- }
-
- /**
- * Look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Either `true` or `false`.
- *
- * @param boolean $voiceCallerIdLookup Look up the caller's caller-ID
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the `VoiceFallbackUrl`. Either `GET` or `POST`.
- *
- * @param string $voiceFallbackMethod HTTP method used with fallback_url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `VoiceUrl`.
- *
- * @param string $voiceFallbackUrl URL Twilio will request when an error occurs
- * in TwiML
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`.
- *
- * @param string $voiceMethod HTTP method used with the voice url
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials the phone number. The VoiceURL will no longer be used if a `VoiceApplicationSid` or a `TrunkSid` is set.
- *
- * @param string $voiceUrl URL Twilio will request when receiving a call
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The configuration status parameter determining whether this phone number is enabled for emergency calling
- *
- * @param string $emergencyStatus Status determining whether the number is
- * enabled for emergency calling
- * @return $this Fluent Builder
- */
- public function setEmergencyStatus($emergencyStatus) {
- $this->options['emergencyStatus'] = $emergencyStatus;
- return $this;
- }
-
- /**
- * The 34 character sid of the EmergencyAddress configuration to leverage emergency calling for this phone number
- *
- * @param string $emergencyAddressSid EmergencyAddress configuration to
- * leverage emergency calling
- * @return $this Fluent Builder
- */
- public function setEmergencyAddressSid($emergencyAddressSid) {
- $this->options['emergencyAddressSid'] = $emergencyAddressSid;
- return $this;
- }
-
- /**
- * The 34 character sid of the Trunk Twilio should use to handle phone calls to this number. If a `TrunkSid` is present, Twilio will ignore all of the voice urls and voice applications above and use those set on the Trunk. Setting a `TrunkSid` will automatically delete your `VoiceApplicationSid` and vice versa.
- *
- * @param string $trunkSid Unique string to identify the trunk
- * @return $this Fluent Builder
- */
- public function setTrunkSid($trunkSid) {
- $this->options['trunkSid'] = $trunkSid;
- return $this;
- }
-
- /**
- * The configuration parameter for this phone number to receive incoming voice calls or faxes. Must be either `fax` or `voice`. Defaults to `voice`
- *
- * @param string $voiceReceiveMode Incoming call type: `fax` or `voice`
- * @return $this Fluent Builder
- */
- public function setVoiceReceiveMode($voiceReceiveMode) {
- $this->options['voiceReceiveMode'] = $voiceReceiveMode;
- return $this;
- }
-
- /**
- * The 34 character sid of the identity Twilio should use to associate with the number. Identities are required in some regions to meet local regulations
- *
- * @param string $identitySid Unique string that identifies the identity
- * associated with number
- * @return $this Fluent Builder
- */
- public function setIdentitySid($identitySid) {
- $this->options['identitySid'] = $identitySid;
- return $this;
- }
-
- /**
- * The 34 character sid of the address Twilio should associate with the number. If the number has address restrictions, only another address that satisfies the requirement can replace the existing one.
- *
- * @param string $addressSid Unique string that identifies the address
- * associated with number
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateIncomingPhoneNumberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadIncomingPhoneNumberOptions extends Options {
- /**
- * @param boolean $beta Include new phone numbers
- * @param string $friendlyName Filter by friendly name
- * @param string $phoneNumber Filter by incoming phone number
- * @param string $origin Include phone numbers based on the origin, by default,
- * phone numbers of all origin are included.
- */
- public function __construct($beta = Values::NONE, $friendlyName = Values::NONE, $phoneNumber = Values::NONE, $origin = Values::NONE) {
- $this->options['beta'] = $beta;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['origin'] = $origin;
- }
-
- /**
- * Include phone numbers new to the Twilio platform. Possible values are either `true` or `false`. Default is `true`.
- *
- * @param boolean $beta Include new phone numbers
- * @return $this Fluent Builder
- */
- public function setBeta($beta) {
- $this->options['beta'] = $beta;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName Filter by friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only show the incoming phone number resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit.
- *
- * @param string $phoneNumber Filter by incoming phone number
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * Include phone numbers based on the origin, by default, phone numbers of all origin are included. Possible values are either `twilio` or `hosted`.
- *
- * @param string $origin Include phone numbers based on the origin, by default,
- * phone numbers of all origin are included.
- * @return $this Fluent Builder
- */
- public function setOrigin($origin) {
- $this->options['origin'] = $origin;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadIncomingPhoneNumberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateIncomingPhoneNumberOptions extends Options {
- /**
- * @param string $phoneNumber The phone number
- * @param string $areaCode The desired area code for the new number
- * @param string $apiVersion The Twilio Rest API version to use
- * @param string $friendlyName A human readable description of this resource
- * @param string $smsApplicationSid Unique string that identifies the
- * application
- * @param string $smsFallbackMethod HTTP method used with sms fallback url
- * @param string $smsFallbackUrl URL Twilio will request if an error occurs in
- * executing TwiML
- * @param string $smsMethod HTTP method to use with sms url
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @param string $statusCallback URL Twilio will use to pass status parameters
- * @param string $statusCallbackMethod HTTP method twilio will use with status
- * callback
- * @param string $voiceApplicationSid The unique sid of the application to
- * handle this number
- * @param boolean $voiceCallerIdLookup Look up the caller's caller-ID
- * @param string $voiceFallbackMethod HTTP method used with fallback_url
- * @param string $voiceFallbackUrl URL Twilio will request when an error occurs
- * in TwiML
- * @param string $voiceMethod HTTP method used with the voice url
- * @param string $voiceUrl URL Twilio will request when receiving a call
- * @param string $emergencyStatus Status determining whether the number is
- * enabled for emergency calling
- * @param string $emergencyAddressSid EmergencyAddress configuration to
- * leverage emergency calling
- * @param string $trunkSid Unique string to identify the trunk
- * @param string $identitySid Unique string that identifies the identity
- * associated with number
- * @param string $addressSid Unique string that identifies the address
- * associated with number
- * @param string $voiceReceiveMode Incoming call type: `fax` or `voice`
- */
- public function __construct($phoneNumber = Values::NONE, $areaCode = Values::NONE, $apiVersion = Values::NONE, $friendlyName = Values::NONE, $smsApplicationSid = Values::NONE, $smsFallbackMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsMethod = Values::NONE, $smsUrl = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $voiceApplicationSid = Values::NONE, $voiceCallerIdLookup = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceUrl = Values::NONE, $emergencyStatus = Values::NONE, $emergencyAddressSid = Values::NONE, $trunkSid = Values::NONE, $identitySid = Values::NONE, $addressSid = Values::NONE, $voiceReceiveMode = Values::NONE) {
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['areaCode'] = $areaCode;
- $this->options['apiVersion'] = $apiVersion;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['emergencyStatus'] = $emergencyStatus;
- $this->options['emergencyAddressSid'] = $emergencyAddressSid;
- $this->options['trunkSid'] = $trunkSid;
- $this->options['identitySid'] = $identitySid;
- $this->options['addressSid'] = $addressSid;
- $this->options['voiceReceiveMode'] = $voiceReceiveMode;
- }
-
- /**
- * The phone number you want to purchase. The number should be formatted starting with a '+' followed by the country code and the number in [E.164](http://en.wikipedia.org/wiki/E.164) format e.g., '+15105555555'. **You must include either this or an `AreaCode` parameter to have your POST succeed.**
- *
- * @param string $phoneNumber The phone number
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * The desired area code for your new incoming phone number. Any three digit, US or Canada area code is valid. Twilio will provision a random phone number within this area code for you. **You must include either this or a `PhoneNumber` parameter to have your POST succeed.** (US and Canada only)
- *
- * @param string $areaCode The desired area code for the new number
- * @return $this Fluent Builder
- */
- public function setAreaCode($areaCode) {
- $this->options['areaCode'] = $areaCode;
- return $this;
- }
-
- /**
- * The Twilio REST API version to use for incoming calls made to this number. If omitted, uses `2010-04-01`.
- *
- * @param string $apiVersion The Twilio Rest API version to use
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * A human readable descriptive text for this resource, up to 64 characters long. By default, the `FriendlyName` is a nicely formatted version of the phone number.
- *
- * @param string $friendlyName A human readable description of this resource
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle SMSs sent to the new number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application.
- *
- * @param string $smsApplicationSid Unique string that identifies the
- * application
- * @return $this Fluent Builder
- */
- public function setSmsApplicationSid($smsApplicationSid) {
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsFallbackMethod HTTP method used with sms fallback url
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by `SmsUrl`.
- *
- * @param string $smsFallbackUrl URL Twilio will request if an error occurs in
- * executing TwiML
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $smsMethod HTTP method to use with sms url
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL Twilio will request when receiving an incoming SMS message to this number.
- *
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $statusCallback URL Twilio will use to pass status parameters
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod HTTP method twilio will use with status
- * callback
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The 34 character sid of the application Twilio should use to handle phone calls to the new number. If a `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above and use those set on the application. Setting a `VoiceApplicationSid` will automatically delete your `TrunkSid` and vice versa.
- *
- * @param string $voiceApplicationSid The unique sid of the application to
- * handle this number
- * @return $this Fluent Builder
- */
- public function setVoiceApplicationSid($voiceApplicationSid) {
- $this->options['voiceApplicationSid'] = $voiceApplicationSid;
- return $this;
- }
-
- /**
- * Do a lookup of a caller's name from the CNAM database and post it to your app. Either `true` or `false`. Defaults to `false`.
- *
- * @param boolean $voiceCallerIdLookup Look up the caller's caller-ID
- * @return $this Fluent Builder
- */
- public function setVoiceCallerIdLookup($voiceCallerIdLookup) {
- $this->options['voiceCallerIdLookup'] = $voiceCallerIdLookup;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceFallbackMethod HTTP method used with fallback_url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request if an error occurs retrieving or executing the TwiML requested by `Url`.
- *
- * @param string $voiceFallbackUrl URL Twilio will request when an error occurs
- * in TwiML
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
- *
- * @param string $voiceMethod HTTP method used with the voice url
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody dials the new phone number. The VoiceURL will no longer be used if a `VoiceApplicationSid` or a `TrunkSid` is set.
- *
- * @param string $voiceUrl URL Twilio will request when receiving a call
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The configuration status parameter determining whether this phone number is enabled for emergency calling
- *
- * @param string $emergencyStatus Status determining whether the number is
- * enabled for emergency calling
- * @return $this Fluent Builder
- */
- public function setEmergencyStatus($emergencyStatus) {
- $this->options['emergencyStatus'] = $emergencyStatus;
- return $this;
- }
-
- /**
- * The 34 character sid of the EmergencyAddress configuration to leverage emergency calling for this phone number
- *
- * @param string $emergencyAddressSid EmergencyAddress configuration to
- * leverage emergency calling
- * @return $this Fluent Builder
- */
- public function setEmergencyAddressSid($emergencyAddressSid) {
- $this->options['emergencyAddressSid'] = $emergencyAddressSid;
- return $this;
- }
-
- /**
- * The 34 character sid of the Trunk Twilio should use to handle phone calls to this number. If a `TrunkSid` is present, Twilio will ignore all of the voice urls and voice applications above and use those set on the Trunk. Setting a `TrunkSid` will automatically delete your `VoiceApplicationSid` and vice versa.
- *
- * @param string $trunkSid Unique string to identify the trunk
- * @return $this Fluent Builder
- */
- public function setTrunkSid($trunkSid) {
- $this->options['trunkSid'] = $trunkSid;
- return $this;
- }
-
- /**
- * The 34 character sid of the identity Twilio should use to associate with the number. Identities are required in some regions to meet local regulations
- *
- * @param string $identitySid Unique string that identifies the identity
- * associated with number
- * @return $this Fluent Builder
- */
- public function setIdentitySid($identitySid) {
- $this->options['identitySid'] = $identitySid;
- return $this;
- }
-
- /**
- * The 34 character sid of the address Twilio should use to associate with the number. Addresses are required in some regions to meet local regulations
- *
- * @param string $addressSid Unique string that identifies the address
- * associated with number
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * The configuration parameter for this phone number to receive incoming voice calls or faxes. Must be either `fax` or `voice`. Defaults to `voice`
- *
- * @param string $voiceReceiveMode Incoming call type: `fax` or `voice`
- * @return $this Fluent Builder
- */
- public function setVoiceReceiveMode($voiceReceiveMode) {
- $this->options['voiceReceiveMode'] = $voiceReceiveMode;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateIncomingPhoneNumberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberPage.php
deleted file mode 100644
index d79f4a4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new IncomingPhoneNumberInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IncomingPhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyContext.php
deleted file mode 100644
index dbedb92..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyContext.php
+++ /dev/null
@@ -1,107 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Keys/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a KeyInstance
- *
- * @return KeyInstance Fetched KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new KeyInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the KeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return KeyInstance Updated KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new KeyInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the KeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.KeyContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyInstance.php
deleted file mode 100644
index a591c4a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyInstance.php
+++ /dev/null
@@ -1,132 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\KeyContext Context for this
- * KeyInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new KeyContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a KeyInstance
- *
- * @return KeyInstance Fetched KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the KeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return KeyInstance Updated KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the KeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.KeyInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyList.php
deleted file mode 100644
index 394d633..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Keys.json';
- }
-
- /**
- * Streams KeyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads KeyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return KeyInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of KeyInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of KeyInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new KeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of KeyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of KeyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new KeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a KeyContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\KeyContext
- */
- public function getContext($sid) {
- return new KeyContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.KeyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyOptions.php
deleted file mode 100644
index 26cea13..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A descriptive string for this resource, chosen by your application, up to 64 characters long.
- *
- * @param string $friendlyName A descriptive string for this resource, chosen
- * by your application, up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateKeyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyPage.php
deleted file mode 100644
index ce8821b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/KeyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new KeyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.KeyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackInstance.php
deleted file mode 100644
index 4e8b862..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackInstance.php
+++ /dev/null
@@ -1,80 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'messageSid' => Values::array_get($payload, 'message_sid'),
- 'outcome' => Values::array_get($payload, 'outcome'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'messageSid' => $messageSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackList.php
deleted file mode 100644
index e3ded30..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackList.php
+++ /dev/null
@@ -1,70 +0,0 @@
-solution = array('accountSid' => $accountSid, 'messageSid' => $messageSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Messages/' . rawurlencode($messageSid) . '/Feedback.json';
- }
-
- /**
- * Create a new FeedbackInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FeedbackInstance Newly created FeedbackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Outcome' => $options['outcome'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FeedbackInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['messageSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.php
deleted file mode 100644
index 0f83278..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['outcome'] = $outcome;
- }
-
- /**
- * The outcome
- *
- * @param string $outcome The outcome
- * @return $this Fluent Builder
- */
- public function setOutcome($outcome) {
- $this->options['outcome'] = $outcome;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateFeedbackOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackPage.php
deleted file mode 100644
index 98c749d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/FeedbackPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FeedbackInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['messageSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.FeedbackPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaContext.php
deleted file mode 100644
index fd5660c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('accountSid' => $accountSid, 'messageSid' => $messageSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Messages/' . rawurlencode($messageSid) . '/Media/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Deletes the MediaInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a MediaInstance
- *
- * @return MediaInstance Fetched MediaInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MediaInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['messageSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.MediaContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaInstance.php
deleted file mode 100644
index bc180a0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaInstance.php
+++ /dev/null
@@ -1,131 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'contentType' => Values::array_get($payload, 'content_type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'parentSid' => Values::array_get($payload, 'parent_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'messageSid' => $messageSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Message\MediaContext Context for this
- * MediaInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MediaContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['messageSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the MediaInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a MediaInstance
- *
- * @return MediaInstance Fetched MediaInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.MediaInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaList.php
deleted file mode 100644
index 546d16e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaList.php
+++ /dev/null
@@ -1,152 +0,0 @@
-solution = array('accountSid' => $accountSid, 'messageSid' => $messageSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Messages/' . rawurlencode($messageSid) . '/Media.json';
- }
-
- /**
- * Streams MediaInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MediaInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MediaInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MediaInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MediaInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DateCreated<' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateCreated>' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MediaPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MediaInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MediaInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MediaPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MediaContext
- *
- * @param string $sid Fetch by unique media Sid
- * @return \Twilio\Rest\Api\V2010\Account\Message\MediaContext
- */
- public function getContext($sid) {
- return new MediaContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['messageSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MediaList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.php
deleted file mode 100644
index f5ca1b0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.php
+++ /dev/null
@@ -1,86 +0,0 @@
-options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- }
-
- /**
- * Only show media created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for media generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for media generated at or after midnight on a date.
- *
- * @param string $dateCreatedBefore Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Only show media created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for media generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for media generated at or after midnight on a date.
- *
- * @param string $dateCreated Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * Only show media created on the given date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `DateCreated<=YYYY-MM-DD` for media generated at or before midnight on a date, and `DateCreated>=YYYY-MM-DD` for media generated at or after midnight on a date.
- *
- * @param string $dateCreatedAfter Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadMediaOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaPage.php
deleted file mode 100644
index facbdd1..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Message/MediaPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MediaInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['messageSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MediaPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageContext.php
deleted file mode 100644
index 4b7fe30..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageContext.php
+++ /dev/null
@@ -1,183 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Messages/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the MessageInstance
- *
- * @param string $body The text of the message you want to send, limited to
- * 1600 characters.
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($body) {
- $data = Values::of(array('Body' => $body, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the media
- *
- * @return \Twilio\Rest\Api\V2010\Account\Message\MediaList
- */
- protected function getMedia() {
- if (!$this->_media) {
- $this->_media = new MediaList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_media;
- }
-
- /**
- * Access the feedback
- *
- * @return \Twilio\Rest\Api\V2010\Account\Message\FeedbackList
- */
- protected function getFeedback() {
- if (!$this->_feedback) {
- $this->_feedback = new FeedbackList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_feedback;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.MessageContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageInstance.php
deleted file mode 100644
index 3fd2800..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageInstance.php
+++ /dev/null
@@ -1,184 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'body' => Values::array_get($payload, 'body'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'dateSent' => Deserialize::dateTime(Values::array_get($payload, 'date_sent')),
- 'direction' => Values::array_get($payload, 'direction'),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- 'errorMessage' => Values::array_get($payload, 'error_message'),
- 'from' => Values::array_get($payload, 'from'),
- 'messagingServiceSid' => Values::array_get($payload, 'messaging_service_sid'),
- 'numMedia' => Values::array_get($payload, 'num_media'),
- 'numSegments' => Values::array_get($payload, 'num_segments'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'to' => Values::array_get($payload, 'to'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\MessageContext Context for this
- * MessageInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MessageContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the MessageInstance
- *
- * @param string $body The text of the message you want to send, limited to
- * 1600 characters.
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($body) {
- return $this->proxy()->update($body);
- }
-
- /**
- * Access the media
- *
- * @return \Twilio\Rest\Api\V2010\Account\Message\MediaList
- */
- protected function getMedia() {
- return $this->proxy()->media;
- }
-
- /**
- * Access the feedback
- *
- * @return \Twilio\Rest\Api\V2010\Account\Message\FeedbackList
- */
- protected function getFeedback() {
- return $this->proxy()->feedback;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.MessageInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageList.php
deleted file mode 100644
index 09ab8f1..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageList.php
+++ /dev/null
@@ -1,188 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Messages.json';
- }
-
- /**
- * Create a new MessageInstance
- *
- * @param string $to The phone number to receive the message
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Newly created MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'From' => $options['from'],
- 'MessagingServiceSid' => $options['messagingServiceSid'],
- 'Body' => $options['body'],
- 'MediaUrl' => Serialize::map($options['mediaUrl'], function($e) { return $e; }),
- 'StatusCallback' => $options['statusCallback'],
- 'ApplicationSid' => $options['applicationSid'],
- 'MaxPrice' => $options['maxPrice'],
- 'ProvideFeedback' => Serialize::booleanToString($options['provideFeedback']),
- 'ValidityPeriod' => $options['validityPeriod'],
- 'MaxRate' => $options['maxRate'],
- 'ForceDelivery' => Serialize::booleanToString($options['forceDelivery']),
- 'ProviderSid' => $options['providerSid'],
- 'ContentRetention' => $options['contentRetention'],
- 'AddressRetention' => $options['addressRetention'],
- 'SmartEncoded' => Serialize::booleanToString($options['smartEncoded']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Streams MessageInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MessageInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MessageInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MessageInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'To' => $options['to'],
- 'From' => $options['from'],
- 'DateSent<' => Serialize::iso8601DateTime($options['dateSentBefore']),
- 'DateSent' => Serialize::iso8601DateTime($options['dateSent']),
- 'DateSent>' => Serialize::iso8601DateTime($options['dateSentAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MessageInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MessageContext
- *
- * @param string $sid Fetch by unique message Sid
- * @return \Twilio\Rest\Api\V2010\Account\MessageContext
- */
- public function getContext($sid) {
- return new MessageContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MessageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageOptions.php
deleted file mode 100644
index d9532e8..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessageOptions.php
+++ /dev/null
@@ -1,383 +0,0 @@
-options['from'] = $from;
- $this->options['messagingServiceSid'] = $messagingServiceSid;
- $this->options['body'] = $body;
- $this->options['mediaUrl'] = $mediaUrl;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['applicationSid'] = $applicationSid;
- $this->options['maxPrice'] = $maxPrice;
- $this->options['provideFeedback'] = $provideFeedback;
- $this->options['validityPeriod'] = $validityPeriod;
- $this->options['maxRate'] = $maxRate;
- $this->options['forceDelivery'] = $forceDelivery;
- $this->options['providerSid'] = $providerSid;
- $this->options['contentRetention'] = $contentRetention;
- $this->options['addressRetention'] = $addressRetention;
- $this->options['smartEncoded'] = $smartEncoded;
- }
-
- /**
- * A Twilio phone number (in [E.164](https://www.twilio.com/docs/glossary/what-e164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id) or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) enabled for the type of message you wish to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-codes) purchased from Twilio work here. You cannot (for example) spoof messages from your own cell phone number. *Do not use this parameter if you are using `MessagingServiceSid`.*
- *
- * @param string $from The phone number that initiated the message
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The 34-character unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with this Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `From` phone number for delivery. *Do not pass this value if you are using `From`.*
- *
- * @param string $messagingServiceSid The 34 character unique id of the
- * Messaging Service you want to associate
- * with this Message.
- * @return $this Fluent Builder
- */
- public function setMessagingServiceSid($messagingServiceSid) {
- $this->options['messagingServiceSid'] = $messagingServiceSid;
- return $this;
- }
-
- /**
- * The text of the message you want to send, limited to 1600 characters.
- *
- * @param string $body The text of the message you want to send, limited to
- * 1600 characters.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * The URL containing the media you wish to send with the message. `gif` , `png` and `jpeg` content is currently supported and will be formatted correctly on the recipient's device. [Other types](https://www.twilio.com/docs/sms/accepted-mime-types) are also accepted by the API. The media size limit is 5MB. If you wish to send more than one image in the message body, please provide multiple `MediaUrl` values in the POST request. You may include up to 10 MediaUrls per message. *Sending images via SMS is currently only possible in the US and Canada*
- *
- * @param string $mediaUrl The URL of the media you wish to send out with the
- * message.
- * @return $this Fluent Builder
- */
- public function setMediaUrl($mediaUrl) {
- $this->options['mediaUrl'] = $mediaUrl;
- return $this;
- }
-
- /**
- * A URL where Twilio will POST each time your message status changes to one of the following: `queued`, `failed`, `sent`, `delivered`, or `undelivered`. Twilio will POST its [standard request parameters](https://www.twilio.com/docs/sms/twiml#request-parameters) as well as some additional parameters including `MessageSid`, `MessageStatus`, and `ErrorCode`(see more details [below](#statuscallback-request-parameters)). If you include this parameter in addition to a `MessagingServiceSid`, Twilio will override the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/sms/services/api). URLs must contain a valid hostname – underscores are not allowed.
- *
- * @param string $statusCallback URL Twilio will request when the status changes
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * Twilio will POST a `MessageSid` as well as `MessageStatus=sent` or `MessageStatus=failed` to the URL in the `MessageStatusCallback` property of this [application](https://www.twilio.com/docs/usage/api/applications). If the `StatusCallback` parameter is also passed, the application's `MessageStatusCallback` parameter will take precedence.
- *
- * @param string $applicationSid The application to use for callbacks
- * @return $this Fluent Builder
- */
- public function setApplicationSid($applicationSid) {
- $this->options['applicationSid'] = $applicationSid;
- return $this;
- }
-
- /**
- * The total maximum price up to the fourth decimal (0.0001) in US dollars acceptable for the message to be delivered. *All messages will be queued for delivery regardless of the price point.* A POST request will later be made to your Status Callback URL with a status change of `Sent` or `Failed`. When the price of the message is greater than this value, the message will fail and not be sent. When `MaxPrice` is not set, all prices for the message are accepted.
- *
- * @param string $maxPrice The total maximum price up to the fourth decimal in
- * US dollars acceptable for the message to be
- * delivered.
- * @return $this Fluent Builder
- */
- public function setMaxPrice($maxPrice) {
- $this->options['maxPrice'] = $maxPrice;
- return $this;
- }
-
- /**
- * Set this value to `true` if you are sending messages that have a trackable user action and you intend to confirm delivery of the message using the [Message Feedback API](https://www.twilio.com/docs/sms/api/message-feedback). This parameter is `false` by default.
- *
- * @param boolean $provideFeedback Set this value to true if you are sending
- * messages that have a trackable user action
- * and you intend to confirm delivery of the
- * message using the Message Feedback API.
- * @return $this Fluent Builder
- */
- public function setProvideFeedback($provideFeedback) {
- $this->options['provideFeedback'] = $provideFeedback;
- return $this;
- }
-
- /**
- * The number of seconds that the message can remain in a Twilio queue. After exceeding this time limit, the message will fail and a POST request will later be made to your Status Callback URL. Valid values are between 1 and 14400 seconds (the default). Please note that Twilio cannot guarantee that a message will not be queued by the carrier after they accept the message. We do not recommend setting validity periods of less than 5 seconds.
- *
- * @param integer $validityPeriod The number of seconds that the message can
- * remain in a Twilio queue.
- * @return $this Fluent Builder
- */
- public function setValidityPeriod($validityPeriod) {
- $this->options['validityPeriod'] = $validityPeriod;
- return $this;
- }
-
- /**
- * The max_rate
- *
- * @param string $maxRate The max_rate
- * @return $this Fluent Builder
- */
- public function setMaxRate($maxRate) {
- $this->options['maxRate'] = $maxRate;
- return $this;
- }
-
- /**
- * The force_delivery
- *
- * @param boolean $forceDelivery The force_delivery
- * @return $this Fluent Builder
- */
- public function setForceDelivery($forceDelivery) {
- $this->options['forceDelivery'] = $forceDelivery;
- return $this;
- }
-
- /**
- * The provider_sid
- *
- * @param string $providerSid The provider_sid
- * @return $this Fluent Builder
- */
- public function setProviderSid($providerSid) {
- $this->options['providerSid'] = $providerSid;
- return $this;
- }
-
- /**
- * The content_retention
- *
- * @param string $contentRetention The content_retention
- * @return $this Fluent Builder
- */
- public function setContentRetention($contentRetention) {
- $this->options['contentRetention'] = $contentRetention;
- return $this;
- }
-
- /**
- * The address_retention
- *
- * @param string $addressRetention The address_retention
- * @return $this Fluent Builder
- */
- public function setAddressRetention($addressRetention) {
- $this->options['addressRetention'] = $addressRetention;
- return $this;
- }
-
- /**
- * The smart_encoded
- *
- * @param boolean $smartEncoded The smart_encoded
- * @return $this Fluent Builder
- */
- public function setSmartEncoded($smartEncoded) {
- $this->options['smartEncoded'] = $smartEncoded;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMessageOptions extends Options {
- /**
- * @param string $to Filter by messages to this number
- * @param string $from Filter by from number
- * @param string $dateSentBefore Filter by date sent
- * @param string $dateSent Filter by date sent
- * @param string $dateSentAfter Filter by date sent
- */
- public function __construct($to = Values::NONE, $from = Values::NONE, $dateSentBefore = Values::NONE, $dateSent = Values::NONE, $dateSentAfter = Values::NONE) {
- $this->options['to'] = $to;
- $this->options['from'] = $from;
- $this->options['dateSentBefore'] = $dateSentBefore;
- $this->options['dateSent'] = $dateSent;
- $this->options['dateSentAfter'] = $dateSentAfter;
- }
-
- /**
- * Only show messages to this phone number.
- *
- * @param string $to Filter by messages to this number
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * Only show messages from this phone number or alphanumeric sender ID.
- *
- * @param string $from Filter by from number
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * Only show messages sent on this date (in [GMT](https://en.wikipedia.org/wiki/Greenwich_Mean_Time) format), given as `YYYY-MM-DD`. Example: `DateSent=2009-07-06`. You can also specify inequality, such as `DateSent<=YYYY-MM-DD` for messages that were sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` for messages sent on or after midnight on a date.
- *
- * @param string $dateSentBefore Filter by date sent
- * @return $this Fluent Builder
- */
- public function setDateSentBefore($dateSentBefore) {
- $this->options['dateSentBefore'] = $dateSentBefore;
- return $this;
- }
-
- /**
- * Only show messages sent on this date (in [GMT](https://en.wikipedia.org/wiki/Greenwich_Mean_Time) format), given as `YYYY-MM-DD`. Example: `DateSent=2009-07-06`. You can also specify inequality, such as `DateSent<=YYYY-MM-DD` for messages that were sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` for messages sent on or after midnight on a date.
- *
- * @param string $dateSent Filter by date sent
- * @return $this Fluent Builder
- */
- public function setDateSent($dateSent) {
- $this->options['dateSent'] = $dateSent;
- return $this;
- }
-
- /**
- * Only show messages sent on this date (in [GMT](https://en.wikipedia.org/wiki/Greenwich_Mean_Time) format), given as `YYYY-MM-DD`. Example: `DateSent=2009-07-06`. You can also specify inequality, such as `DateSent<=YYYY-MM-DD` for messages that were sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` for messages sent on or after midnight on a date.
- *
- * @param string $dateSentAfter Filter by date sent
- * @return $this Fluent Builder
- */
- public function setDateSentAfter($dateSentAfter) {
- $this->options['dateSentAfter'] = $dateSentAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadMessageOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessagePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessagePage.php
deleted file mode 100644
index 05758e0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/MessagePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessageInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MessagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyInstance.php
deleted file mode 100644
index 9de47be..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyInstance.php
+++ /dev/null
@@ -1,78 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'secret' => Values::array_get($payload, 'secret'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NewKeyInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyList.php
deleted file mode 100644
index 04a84d2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyList.php
+++ /dev/null
@@ -1,65 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Keys.json';
- }
-
- /**
- * Create a new NewKeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return NewKeyInstance Newly created NewKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new NewKeyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NewKeyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyOptions.php
deleted file mode 100644
index 1635fbf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateNewKeyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyPage.php
deleted file mode 100644
index 2f90020..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewKeyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NewKeyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NewKeyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyInstance.php
deleted file mode 100644
index 750c02c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyInstance.php
+++ /dev/null
@@ -1,78 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'secret' => Values::array_get($payload, 'secret'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NewSigningKeyInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyList.php
deleted file mode 100644
index d490245..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyList.php
+++ /dev/null
@@ -1,65 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SigningKeys.json';
- }
-
- /**
- * Create a new NewSigningKeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return NewSigningKeyInstance Newly created NewSigningKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new NewSigningKeyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NewSigningKeyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.php
deleted file mode 100644
index 0ea9a14..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateNewSigningKeyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyPage.php
deleted file mode 100644
index 889da4d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NewSigningKeyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NewSigningKeyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NewSigningKeyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationContext.php
deleted file mode 100644
index 74f88eb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Notifications/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a NotificationInstance
- *
- * @return NotificationInstance Fetched NotificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NotificationInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the NotificationInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.NotificationContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationInstance.php
deleted file mode 100644
index 91be282..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationInstance.php
+++ /dev/null
@@ -1,145 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- 'log' => Values::array_get($payload, 'log'),
- 'messageDate' => Deserialize::dateTime(Values::array_get($payload, 'message_date')),
- 'messageText' => Values::array_get($payload, 'message_text'),
- 'moreInfo' => Values::array_get($payload, 'more_info'),
- 'requestMethod' => Values::array_get($payload, 'request_method'),
- 'requestUrl' => Values::array_get($payload, 'request_url'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'requestVariables' => Values::array_get($payload, 'request_variables'),
- 'responseBody' => Values::array_get($payload, 'response_body'),
- 'responseHeaders' => Values::array_get($payload, 'response_headers'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\NotificationContext Context for this
- * NotificationInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new NotificationContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a NotificationInstance
- *
- * @return NotificationInstance Fetched NotificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the NotificationInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.NotificationInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationList.php
deleted file mode 100644
index ea75884..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationList.php
+++ /dev/null
@@ -1,147 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Notifications.json';
- }
-
- /**
- * Streams NotificationInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads NotificationInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return NotificationInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of NotificationInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of NotificationInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Log' => $options['log'],
- 'MessageDate<' => Serialize::iso8601Date($options['messageDateBefore']),
- 'MessageDate' => Serialize::iso8601Date($options['messageDate']),
- 'MessageDate>' => Serialize::iso8601Date($options['messageDateAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NotificationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of NotificationInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of NotificationInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new NotificationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a NotificationContext
- *
- * @param string $sid Fetch by unique notification Sid
- * @return \Twilio\Rest\Api\V2010\Account\NotificationContext
- */
- public function getContext($sid) {
- return new NotificationContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NotificationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationOptions.php
deleted file mode 100644
index d65ec71..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationOptions.php
+++ /dev/null
@@ -1,100 +0,0 @@
-options['log'] = $log;
- $this->options['messageDateBefore'] = $messageDateBefore;
- $this->options['messageDate'] = $messageDate;
- $this->options['messageDateAfter'] = $messageDateAfter;
- }
-
- /**
- * Only show notifications for this log, using the integer log values shown above.
- *
- * @param integer $log Filter by log level
- * @return $this Fluent Builder
- */
- public function setLog($log) {
- $this->options['log'] = $log;
- return $this;
- }
-
- /**
- * Only show notifications for this date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `MessageDate<=YYYY-MM-DD` for messages logged at or before midnight on a date, and `MessageDate>=YYYY-MM-DD` for messages logged at or after midnight on a date.
- *
- * @param string $messageDateBefore Filter by date
- * @return $this Fluent Builder
- */
- public function setMessageDateBefore($messageDateBefore) {
- $this->options['messageDateBefore'] = $messageDateBefore;
- return $this;
- }
-
- /**
- * Only show notifications for this date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `MessageDate<=YYYY-MM-DD` for messages logged at or before midnight on a date, and `MessageDate>=YYYY-MM-DD` for messages logged at or after midnight on a date.
- *
- * @param string $messageDate Filter by date
- * @return $this Fluent Builder
- */
- public function setMessageDate($messageDate) {
- $this->options['messageDate'] = $messageDate;
- return $this;
- }
-
- /**
- * Only show notifications for this date. Should be formatted as `YYYY-MM-DD`. You can also specify inequality, such as `MessageDate<=YYYY-MM-DD` for messages logged at or before midnight on a date, and `MessageDate>=YYYY-MM-DD` for messages logged at or after midnight on a date.
- *
- * @param string $messageDateAfter Filter by date
- * @return $this Fluent Builder
- */
- public function setMessageDateAfter($messageDateAfter) {
- $this->options['messageDateAfter'] = $messageDateAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadNotificationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationPage.php
deleted file mode 100644
index 13592e2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/NotificationPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NotificationInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.NotificationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdContext.php
deleted file mode 100644
index 498807a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdContext.php
+++ /dev/null
@@ -1,107 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/OutgoingCallerIds/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a OutgoingCallerIdInstance
- *
- * @return OutgoingCallerIdInstance Fetched OutgoingCallerIdInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new OutgoingCallerIdInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the OutgoingCallerIdInstance
- *
- * @param array|Options $options Optional Arguments
- * @return OutgoingCallerIdInstance Updated OutgoingCallerIdInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new OutgoingCallerIdInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the OutgoingCallerIdInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.OutgoingCallerIdContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php
deleted file mode 100644
index 1489397..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php
+++ /dev/null
@@ -1,138 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdContext Context for
- * this
- * OutgoingCallerIdInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new OutgoingCallerIdContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a OutgoingCallerIdInstance
- *
- * @return OutgoingCallerIdInstance Fetched OutgoingCallerIdInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the OutgoingCallerIdInstance
- *
- * @param array|Options $options Optional Arguments
- * @return OutgoingCallerIdInstance Updated OutgoingCallerIdInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the OutgoingCallerIdInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.OutgoingCallerIdInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdList.php
deleted file mode 100644
index b56e690..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdList.php
+++ /dev/null
@@ -1,144 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/OutgoingCallerIds.json';
- }
-
- /**
- * Streams OutgoingCallerIdInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads OutgoingCallerIdInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return OutgoingCallerIdInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of OutgoingCallerIdInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of OutgoingCallerIdInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'PhoneNumber' => $options['phoneNumber'],
- 'FriendlyName' => $options['friendlyName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new OutgoingCallerIdPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of OutgoingCallerIdInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of OutgoingCallerIdInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new OutgoingCallerIdPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a OutgoingCallerIdContext
- *
- * @param string $sid Fetch by unique outgoing-caller-id Sid
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdContext
- */
- public function getContext($sid) {
- return new OutgoingCallerIdContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.OutgoingCallerIdList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.php
deleted file mode 100644
index ebc003e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.php
+++ /dev/null
@@ -1,115 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A human readable description of a Caller ID, with maximum length of 64 characters. Defaults to a nicely formatted version of the phone number.
- *
- * @param string $friendlyName A human readable description of the caller ID
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateOutgoingCallerIdOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadOutgoingCallerIdOptions extends Options {
- /**
- * @param string $phoneNumber Filter by phone number
- * @param string $friendlyName Filter by friendly name
- */
- public function __construct($phoneNumber = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * Only show the caller id resource that exactly matches this phone number.
- *
- * @param string $phoneNumber Filter by phone number
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * Only show the caller id resource that exactly matches this name.
- *
- * @param string $friendlyName Filter by friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadOutgoingCallerIdOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdPage.php
deleted file mode 100644
index 5819b04..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new OutgoingCallerIdInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.OutgoingCallerIdPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberContext.php
deleted file mode 100644
index 8c38485..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberContext.php
+++ /dev/null
@@ -1,102 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'queueSid' => $queueSid,
- 'callSid' => $callSid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Queues/' . rawurlencode($queueSid) . '/Members/' . rawurlencode($callSid) . '.json';
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['queueSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Update the MemberInstance
- *
- * @param string $url The url
- * @param string $method The method
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($url, $method) {
- $data = Values::of(array('Url' => $url, 'Method' => $method, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['queueSid'],
- $this->solution['callSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.MemberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberInstance.php
deleted file mode 100644
index 06d32fc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberInstance.php
+++ /dev/null
@@ -1,129 +0,0 @@
-properties = array(
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'dateEnqueued' => Deserialize::dateTime(Values::array_get($payload, 'date_enqueued')),
- 'position' => Values::array_get($payload, 'position'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'waitTime' => Values::array_get($payload, 'wait_time'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'queueSid' => $queueSid,
- 'callSid' => $callSid ?: $this->properties['callSid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Queue\MemberContext Context for this
- * MemberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MemberContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['queueSid'],
- $this->solution['callSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the MemberInstance
- *
- * @param string $url The url
- * @param string $method The method
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($url, $method) {
- return $this->proxy()->update($url, $method);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.MemberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberList.php
deleted file mode 100644
index b60c3f7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('accountSid' => $accountSid, 'queueSid' => $queueSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Queues/' . rawurlencode($queueSid) . '/Members.json';
- }
-
- /**
- * Streams MemberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MemberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MemberInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MemberInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MemberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MemberContext
- *
- * @param string $callSid The call_sid
- * @return \Twilio\Rest\Api\V2010\Account\Queue\MemberContext
- */
- public function getContext($callSid) {
- return new MemberContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['queueSid'],
- $callSid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MemberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberPage.php
deleted file mode 100644
index 7aa87c5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Queue/MemberPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['queueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MemberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueContext.php
deleted file mode 100644
index 19a534d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueContext.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Queues/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a QueueInstance
- *
- * @return QueueInstance Fetched QueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new QueueInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the QueueInstance
- *
- * @param array|Options $options Optional Arguments
- * @return QueueInstance Updated QueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'MaxSize' => $options['maxSize'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new QueueInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the QueueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\Api\V2010\Account\Queue\MemberList
- */
- protected function getMembers() {
- if (!$this->_members) {
- $this->_members = new MemberList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_members;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.QueueContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueInstance.php
deleted file mode 100644
index 27d15e6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'averageWaitTime' => Values::array_get($payload, 'average_wait_time'),
- 'currentSize' => Values::array_get($payload, 'current_size'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'maxSize' => Values::array_get($payload, 'max_size'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\QueueContext Context for this
- * QueueInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new QueueContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a QueueInstance
- *
- * @return QueueInstance Fetched QueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the QueueInstance
- *
- * @param array|Options $options Optional Arguments
- * @return QueueInstance Updated QueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the QueueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\Api\V2010\Account\Queue\MemberList
- */
- protected function getMembers() {
- return $this->proxy()->members;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.QueueInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueList.php
deleted file mode 100644
index 8321857..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueList.php
+++ /dev/null
@@ -1,162 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Queues.json';
- }
-
- /**
- * Streams QueueInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads QueueInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return QueueInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of QueueInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of QueueInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new QueuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of QueueInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of QueueInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new QueuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new QueueInstance
- *
- * @param string $friendlyName A user-provided string that identifies this
- * queue.
- * @param array|Options $options Optional Arguments
- * @return QueueInstance Newly created QueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $friendlyName, 'MaxSize' => $options['maxSize'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new QueueInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Constructs a QueueContext
- *
- * @param string $sid Fetch by unique queue Sid
- * @return \Twilio\Rest\Api\V2010\Account\QueueContext
- */
- public function getContext($sid) {
- return new QueueContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.QueueList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueOptions.php
deleted file mode 100644
index 3a57bce..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueueOptions.php
+++ /dev/null
@@ -1,115 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['maxSize'] = $maxSize;
- }
-
- /**
- * A human readable description of the queue
- *
- * @param string $friendlyName A human readable description of the queue
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The maximum number of members that can be in the queue at a time
- *
- * @param integer $maxSize The max number of members allowed in the queue
- * @return $this Fluent Builder
- */
- public function setMaxSize($maxSize) {
- $this->options['maxSize'] = $maxSize;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateQueueOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateQueueOptions extends Options {
- /**
- * @param integer $maxSize The max number of calls allowed in the queue
- */
- public function __construct($maxSize = Values::NONE) {
- $this->options['maxSize'] = $maxSize;
- }
-
- /**
- * The upper limit of calls allowed to be in the queue. The default is 100. The maximum is 1000.
- *
- * @param integer $maxSize The max number of calls allowed in the queue
- * @return $this Fluent Builder
- */
- public function setMaxSize($maxSize) {
- $this->options['maxSize'] = $maxSize;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateQueueOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueuePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueuePage.php
deleted file mode 100644
index da1f8e7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/QueuePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new QueueInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.QueuePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadContext.php
deleted file mode 100644
index eba0a99..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadContext.php
+++ /dev/null
@@ -1,88 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'referenceSid' => $referenceSid,
- 'addOnResultSid' => $addOnResultSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($referenceSid) . '/AddOnResults/' . rawurlencode($addOnResultSid) . '/Payloads/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a PayloadInstance
- *
- * @return PayloadInstance Fetched PayloadInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PayloadInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['addOnResultSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the PayloadInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.PayloadContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadInstance.php
deleted file mode 100644
index 5d1b51d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadInstance.php
+++ /dev/null
@@ -1,141 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'addOnResultSid' => Values::array_get($payload, 'add_on_result_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'label' => Values::array_get($payload, 'label'),
- 'addOnSid' => Values::array_get($payload, 'add_on_sid'),
- 'addOnConfigurationSid' => Values::array_get($payload, 'add_on_configuration_sid'),
- 'contentType' => Values::array_get($payload, 'content_type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'referenceSid' => Values::array_get($payload, 'reference_sid'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'referenceSid' => $referenceSid,
- 'addOnResultSid' => $addOnResultSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadContext Context for this PayloadInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PayloadContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['addOnResultSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a PayloadInstance
- *
- * @return PayloadInstance Fetched PayloadInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the PayloadInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.PayloadInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php
deleted file mode 100644
index 639cd7f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php
+++ /dev/null
@@ -1,149 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'referenceSid' => $referenceSid,
- 'addOnResultSid' => $addOnResultSid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($referenceSid) . '/AddOnResults/' . rawurlencode($addOnResultSid) . '/Payloads.json';
- }
-
- /**
- * Streams PayloadInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads PayloadInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return PayloadInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of PayloadInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of PayloadInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PayloadPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of PayloadInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of PayloadInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new PayloadPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a PayloadContext
- *
- * @param string $sid Fetch by unique payload Sid
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadContext
- */
- public function getContext($sid) {
- return new PayloadContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['addOnResultSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.PayloadList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadPage.php
deleted file mode 100644
index 077066e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadPage.php
+++ /dev/null
@@ -1,40 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PayloadInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['addOnResultSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.PayloadPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultContext.php
deleted file mode 100644
index 84360a2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultContext.php
+++ /dev/null
@@ -1,144 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'referenceSid' => $referenceSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($referenceSid) . '/AddOnResults/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AddOnResultInstance
- *
- * @return AddOnResultInstance Fetched AddOnResultInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AddOnResultInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the AddOnResultInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the payloads
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadList
- */
- protected function getPayloads() {
- if (!$this->_payloads) {
- $this->_payloads = new PayloadList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_payloads;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AddOnResultContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultInstance.php
deleted file mode 100644
index 6fa45b9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultInstance.php
+++ /dev/null
@@ -1,149 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'addOnSid' => Values::array_get($payload, 'add_on_sid'),
- 'addOnConfigurationSid' => Values::array_get($payload, 'add_on_configuration_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'dateCompleted' => Deserialize::dateTime(Values::array_get($payload, 'date_completed')),
- 'referenceSid' => Values::array_get($payload, 'reference_sid'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'referenceSid' => $referenceSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResultContext Context
- * for this
- * AddOnResultInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AddOnResultContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AddOnResultInstance
- *
- * @return AddOnResultInstance Fetched AddOnResultInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AddOnResultInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the payloads
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadList
- */
- protected function getPayloads() {
- return $this->proxy()->payloads;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AddOnResultInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultList.php
deleted file mode 100644
index 96c59af..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('accountSid' => $accountSid, 'referenceSid' => $referenceSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($referenceSid) . '/AddOnResults.json';
- }
-
- /**
- * Streams AddOnResultInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AddOnResultInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AddOnResultInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AddOnResultInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AddOnResultInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AddOnResultPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AddOnResultInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AddOnResultInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AddOnResultPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AddOnResultContext
- *
- * @param string $sid Fetch by unique result Sid
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResultContext
- */
- public function getContext($sid) {
- return new AddOnResultContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['referenceSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AddOnResultList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultPage.php
deleted file mode 100644
index 400796e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AddOnResultInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['referenceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AddOnResultPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionContext.php
deleted file mode 100644
index 914a5f5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionContext.php
+++ /dev/null
@@ -1,85 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'recordingSid' => $recordingSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($recordingSid) . '/Transcriptions/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a TranscriptionInstance
- *
- * @return TranscriptionInstance Fetched TranscriptionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TranscriptionInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['recordingSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TranscriptionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.TranscriptionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionInstance.php
deleted file mode 100644
index 3eeb152..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionInstance.php
+++ /dev/null
@@ -1,142 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'recordingSid' => Values::array_get($payload, 'recording_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'transcriptionText' => Values::array_get($payload, 'transcription_text'),
- 'type' => Values::array_get($payload, 'type'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'recordingSid' => $recordingSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\TranscriptionContext Context for this TranscriptionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TranscriptionContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['recordingSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TranscriptionInstance
- *
- * @return TranscriptionInstance Fetched TranscriptionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the TranscriptionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.TranscriptionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionList.php
deleted file mode 100644
index 77d0707..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('accountSid' => $accountSid, 'recordingSid' => $recordingSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($recordingSid) . '/Transcriptions.json';
- }
-
- /**
- * Streams TranscriptionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TranscriptionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TranscriptionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TranscriptionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TranscriptionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TranscriptionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TranscriptionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TranscriptionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TranscriptionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a TranscriptionContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Recording\TranscriptionContext
- */
- public function getContext($sid) {
- return new TranscriptionContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['recordingSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TranscriptionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionPage.php
deleted file mode 100644
index 5853bbd..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TranscriptionInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['recordingSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TranscriptionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingContext.php
deleted file mode 100644
index 7a0224d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingContext.php
+++ /dev/null
@@ -1,158 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the transcriptions
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\TranscriptionList
- */
- protected function getTranscriptions() {
- if (!$this->_transcriptions) {
- $this->_transcriptions = new TranscriptionList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_transcriptions;
- }
-
- /**
- * Access the addOnResults
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResultList
- */
- protected function getAddOnResults() {
- if (!$this->_addOnResults) {
- $this->_addOnResults = new AddOnResultList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_addOnResults;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.RecordingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingInstance.php
deleted file mode 100644
index 19a039d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingInstance.php
+++ /dev/null
@@ -1,168 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- 'conferenceSid' => Values::array_get($payload, 'conference_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'status' => Values::array_get($payload, 'status'),
- 'channels' => Values::array_get($payload, 'channels'),
- 'source' => Values::array_get($payload, 'source'),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'encryptionDetails' => Values::array_get($payload, 'encryption_details'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\RecordingContext Context for this
- * RecordingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RecordingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the transcriptions
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\TranscriptionList
- */
- protected function getTranscriptions() {
- return $this->proxy()->transcriptions;
- }
-
- /**
- * Access the addOnResults
- *
- * @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResultList
- */
- protected function getAddOnResults() {
- return $this->proxy()->addOnResults;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.RecordingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingList.php
deleted file mode 100644
index 7c16a15..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Recordings.json';
- }
-
- /**
- * Streams RecordingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RecordingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RecordingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DateCreated<' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateCreated>' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'CallSid' => $options['callSid'],
- 'ConferenceSid' => $options['conferenceSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RecordingContext
- *
- * @param string $sid Fetch by unique recording SID
- * @return \Twilio\Rest\Api\V2010\Account\RecordingContext
- */
- public function getContext($sid) {
- return new RecordingContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingOptions.php
deleted file mode 100644
index bb51ead..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingOptions.php
+++ /dev/null
@@ -1,114 +0,0 @@
-options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['callSid'] = $callSid;
- $this->options['conferenceSid'] = $conferenceSid;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted `YYYY-MM-DD`. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date.
- *
- * @param string $dateCreatedBefore Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted `YYYY-MM-DD`. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date.
- *
- * @param string $dateCreated Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * Only show recordings created on the given date. Should be formatted `YYYY-MM-DD`. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date.
- *
- * @param string $dateCreatedAfter Filter by date created
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show recordings made during the call indicated by this call SID
- *
- * @param string $callSid Filter by call_sid
- * @return $this Fluent Builder
- */
- public function setCallSid($callSid) {
- $this->options['callSid'] = $callSid;
- return $this;
- }
-
- /**
- * The conference_sid
- *
- * @param string $conferenceSid The conference_sid
- * @return $this Fluent Builder
- */
- public function setConferenceSid($conferenceSid) {
- $this->options['conferenceSid'] = $conferenceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingPage.php
deleted file mode 100644
index da63ed7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/RecordingPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RecordingInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeContext.php
deleted file mode 100644
index 1c5f94b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeContext.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SMS/ShortCodes/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a ShortCodeInstance
- *
- * @return ShortCodeInstance Fetched ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ShortCodeInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ShortCodeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ShortCodeInstance Updated ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'ApiVersion' => $options['apiVersion'],
- 'SmsUrl' => $options['smsUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ShortCodeInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ShortCodeContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeInstance.php
deleted file mode 100644
index ce5e132..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeInstance.php
+++ /dev/null
@@ -1,137 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'shortCode' => Values::array_get($payload, 'short_code'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeContext Context for this
- * ShortCodeInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ShortCodeContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ShortCodeInstance
- *
- * @return ShortCodeInstance Fetched ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ShortCodeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ShortCodeInstance Updated ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.ShortCodeInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeList.php
deleted file mode 100644
index ece7cb8..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeList.php
+++ /dev/null
@@ -1,144 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SMS/ShortCodes.json';
- }
-
- /**
- * Streams ShortCodeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ShortCodeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ShortCodeInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ShortCodeInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ShortCodeInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'ShortCode' => $options['shortCode'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ShortCodePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ShortCodeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ShortCodeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ShortCodePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ShortCodeContext
- *
- * @param string $sid Fetch by unique short-code Sid
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeContext
- */
- public function getContext($sid) {
- return new ShortCodeContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ShortCodeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.php
deleted file mode 100644
index 7333a50..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.php
+++ /dev/null
@@ -1,191 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['apiVersion'] = $apiVersion;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- }
-
- /**
- * A human readable descriptive text for this resource, up to 64 characters long. By default, the `FriendlyName` is just the short code.
- *
- * @param string $friendlyName A human readable description of this resource
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * SMSs to this short code will start a new TwiML session with this API version. Either `2010-04-01` or `2008-08-01`.
- *
- * @param string $apiVersion The API version to use
- * @return $this Fluent Builder
- */
- public function setApiVersion($apiVersion) {
- $this->options['apiVersion'] = $apiVersion;
- return $this;
- }
-
- /**
- * The URL Twilio will request when receiving an incoming SMS message to this short code.
- *
- * @param string $smsUrl URL Twilio will request when receiving an SMS
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when making requests to the `SmsUrl`. Either `GET` or `POST`.
- *
- * @param string $smsMethod HTTP method to use when requesting the sms url
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request if an error occurs retrieving or executing the TwiML from `SmsUrl`.
- *
- * @param string $smsFallbackUrl URL Twilio will request if an error occurs in
- * executing TwiML
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the `SmsFallbackUrl`. Either `GET` or `POST`.
- *
- * @param string $smsFallbackMethod HTTP method Twilio will use with sms
- * fallback url
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateShortCodeOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadShortCodeOptions extends Options {
- /**
- * @param string $friendlyName Filter by friendly name
- * @param string $shortCode Filter by ShortCode
- */
- public function __construct($friendlyName = Values::NONE, $shortCode = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['shortCode'] = $shortCode;
- }
-
- /**
- * Only show the ShortCode resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName Filter by friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit.
- *
- * @param string $shortCode Filter by ShortCode
- * @return $this Fluent Builder
- */
- public function setShortCode($shortCode) {
- $this->options['shortCode'] = $shortCode;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadShortCodeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodePage.php
deleted file mode 100644
index aec1f33..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ShortCodePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ShortCodeInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ShortCodePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyContext.php
deleted file mode 100644
index 3b6e446..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyContext.php
+++ /dev/null
@@ -1,107 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SigningKeys/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a SigningKeyInstance
- *
- * @return SigningKeyInstance Fetched SigningKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SigningKeyInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the SigningKeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SigningKeyInstance Updated SigningKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SigningKeyInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SigningKeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.SigningKeyContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyInstance.php
deleted file mode 100644
index a0ac1cb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyInstance.php
+++ /dev/null
@@ -1,132 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyContext Context for this
- * SigningKeyInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SigningKeyContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SigningKeyInstance
- *
- * @return SigningKeyInstance Fetched SigningKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the SigningKeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SigningKeyInstance Updated SigningKeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the SigningKeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.SigningKeyInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyList.php
deleted file mode 100644
index 779952a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SigningKeys.json';
- }
-
- /**
- * Streams SigningKeyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SigningKeyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SigningKeyInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SigningKeyInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SigningKeyInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SigningKeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SigningKeyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SigningKeyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SigningKeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SigningKeyContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyContext
- */
- public function getContext($sid) {
- return new SigningKeyContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SigningKeyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.php
deleted file mode 100644
index 96c0676..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateSigningKeyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyPage.php
deleted file mode 100644
index cd2d07d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SigningKeyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SigningKeyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SigningKeyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialContext.php
deleted file mode 100644
index d7d2520..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialContext.php
+++ /dev/null
@@ -1,114 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'credentialListSid' => $credentialListSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/CredentialLists/' . rawurlencode($credentialListSid) . '/Credentials/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['credentialListSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Password' => $options['password'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['credentialListSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CredentialContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialInstance.php
deleted file mode 100644
index b9a35c2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'credentialListSid' => Values::array_get($payload, 'credential_list_sid'),
- 'username' => Values::array_get($payload, 'username'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'credentialListSid' => $credentialListSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialList\CredentialContext Context for this CredentialInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['credentialListSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CredentialInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php
deleted file mode 100644
index be94794..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php
+++ /dev/null
@@ -1,170 +0,0 @@
-solution = array('accountSid' => $accountSid, 'credentialListSid' => $credentialListSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/CredentialLists/' . rawurlencode($credentialListSid) . '/Credentials.json';
- }
-
- /**
- * Streams CredentialInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialInstance
- *
- * @param string $username The username for this credential.
- * @param string $password The password will not be returned in the response.
- * @return CredentialInstance Newly created CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($username, $password) {
- $data = Values::of(array('Username' => $username, 'Password' => $password, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['credentialListSid']
- );
- }
-
- /**
- * Constructs a CredentialContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialList\CredentialContext
- */
- public function getContext($sid) {
- return new CredentialContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['credentialListSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.php
deleted file mode 100644
index 9cb45df..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['password'] = $password;
- }
-
- /**
- * The password that the username will use when when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg “IWasAtSignal2018”)
- *
- * @param string $password The password will not be returned in the response.
- * @return $this Fluent Builder
- */
- public function setPassword($password) {
- $this->options['password'] = $password;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialPage.php
deleted file mode 100644
index 69d10cc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['credentialListSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListContext.php
deleted file mode 100644
index 0a5faed..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListContext.php
+++ /dev/null
@@ -1,162 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/CredentialLists/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a CredentialListInstance
- *
- * @return CredentialListInstance Fetched CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialListInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the CredentialListInstance
- *
- * @param string $friendlyName Human readable descriptive text
- * @return CredentialListInstance Updated CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialListInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the CredentialListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the credentials
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialList\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_credentials;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CredentialListContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListInstance.php
deleted file mode 100644
index 823953a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListInstance.php
+++ /dev/null
@@ -1,149 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialListContext Context for
- * this
- * CredentialListInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialListContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialListInstance
- *
- * @return CredentialListInstance Fetched CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialListInstance
- *
- * @param string $friendlyName Human readable descriptive text
- * @return CredentialListInstance Updated CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($friendlyName) {
- return $this->proxy()->update($friendlyName);
- }
-
- /**
- * Deletes the CredentialListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the credentials
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialList\CredentialList
- */
- protected function getCredentials() {
- return $this->proxy()->credentials;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CredentialListInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListList.php
deleted file mode 100644
index 8385905..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListList.php
+++ /dev/null
@@ -1,158 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/CredentialLists.json';
- }
-
- /**
- * Streams CredentialListInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialListInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialListInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialListInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialListInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialListInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialListInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialListInstance
- *
- * @param string $friendlyName Human readable descriptive text
- * @return CredentialListInstance Newly created CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialListInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Constructs a CredentialListContext
- *
- * @param string $sid Fetch by unique credential list Sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialListContext
- */
- public function getContext($sid) {
- return new CredentialListContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CredentialListList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListPage.php
deleted file mode 100644
index a8b292a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/CredentialListPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialListInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CredentialListPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingContext.php
deleted file mode 100644
index 59e26d3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/Auth/Calls/CredentialListMappings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AuthCallsCredentialListMappingInstance
- *
- * @return AuthCallsCredentialListMappingInstance Fetched
- * AuthCallsCredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthCallsCredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the AuthCallsCredentialListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthCallsCredentialListMappingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php
deleted file mode 100644
index 3b9f1ba..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php
+++ /dev/null
@@ -1,128 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'domainSid' => $domainSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsCredentialListMappingContext Context for this
- * AuthCallsCredentialListMappingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AuthCallsCredentialListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AuthCallsCredentialListMappingInstance
- *
- * @return AuthCallsCredentialListMappingInstance Fetched
- * AuthCallsCredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AuthCallsCredentialListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthCallsCredentialListMappingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php
deleted file mode 100644
index 0db26c0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/Auth/Calls/CredentialListMappings.json';
- }
-
- /**
- * Create a new AuthCallsCredentialListMappingInstance
- *
- * @param string $credentialListSid A string that uniquely identifies this
- * credential list resource
- * @return AuthCallsCredentialListMappingInstance Newly created
- * AuthCallsCredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($credentialListSid) {
- $data = Values::of(array('CredentialListSid' => $credentialListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AuthCallsCredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Streams AuthCallsCredentialListMappingInstance records from the API as a
- * generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AuthCallsCredentialListMappingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AuthCallsCredentialListMappingInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AuthCallsCredentialListMappingInstance records
- * from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AuthCallsCredentialListMappingInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthCallsCredentialListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AuthCallsCredentialListMappingInstance records
- * from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AuthCallsCredentialListMappingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AuthCallsCredentialListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AuthCallsCredentialListMappingContext
- *
- * @param string $sid Fetch by unique credential list Sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsCredentialListMappingContext
- */
- public function getContext($sid) {
- return new AuthCallsCredentialListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthCallsCredentialListMappingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingPage.php
deleted file mode 100644
index 28e3115..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthCallsCredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthCallsCredentialListMappingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingContext.php
deleted file mode 100644
index 0e9b13f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/Auth/Calls/IpAccessControlListMappings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AuthCallsIpAccessControlListMappingInstance
- *
- * @return AuthCallsIpAccessControlListMappingInstance Fetched
- * AuthCallsIpAccessControlListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthCallsIpAccessControlListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the AuthCallsIpAccessControlListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthCallsIpAccessControlListMappingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingInstance.php
deleted file mode 100644
index 65b528b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingInstance.php
+++ /dev/null
@@ -1,128 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'domainSid' => $domainSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsIpAccessControlListMappingContext Context for this
- * AuthCallsIpAccessControlListMappingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AuthCallsIpAccessControlListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AuthCallsIpAccessControlListMappingInstance
- *
- * @return AuthCallsIpAccessControlListMappingInstance Fetched
- * AuthCallsIpAccessControlListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AuthCallsIpAccessControlListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthCallsIpAccessControlListMappingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php
deleted file mode 100644
index c915cbc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingList.php
+++ /dev/null
@@ -1,174 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/Auth/Calls/IpAccessControlListMappings.json';
- }
-
- /**
- * Create a new AuthCallsIpAccessControlListMappingInstance
- *
- * @param string $ipAccessControlListSid A string that uniquely identifies IP
- * Access Control List
- * @return AuthCallsIpAccessControlListMappingInstance Newly created
- * AuthCallsIpAccessControlListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($ipAccessControlListSid) {
- $data = Values::of(array('IpAccessControlListSid' => $ipAccessControlListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AuthCallsIpAccessControlListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Streams AuthCallsIpAccessControlListMappingInstance records from the API as
- * a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AuthCallsIpAccessControlListMappingInstance records from the API as a
- * list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AuthCallsIpAccessControlListMappingInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AuthCallsIpAccessControlListMappingInstance
- * records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AuthCallsIpAccessControlListMappingInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthCallsIpAccessControlListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AuthCallsIpAccessControlListMappingInstance
- * records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AuthCallsIpAccessControlListMappingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AuthCallsIpAccessControlListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AuthCallsIpAccessControlListMappingContext
- *
- * @param string $sid Fetch by unique IP Access Control List Sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsIpAccessControlListMappingContext
- */
- public function getContext($sid) {
- return new AuthCallsIpAccessControlListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthCallsIpAccessControlListMappingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingPage.php
deleted file mode 100644
index e8ea323..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthCallsIpAccessControlListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthCallsIpAccessControlListMappingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsInstance.php
deleted file mode 100644
index 22ca08d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsInstance.php
+++ /dev/null
@@ -1,61 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypeCallsInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsList.php
deleted file mode 100644
index 60d7f47..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsList.php
+++ /dev/null
@@ -1,114 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
- }
-
- /**
- * Access the credentialListMappings
- */
- protected function getCredentialListMappings() {
- if (!$this->_credentialListMappings) {
- $this->_credentialListMappings = new AuthCallsCredentialListMappingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- return $this->_credentialListMappings;
- }
-
- /**
- * Access the ipAccessControlListMappings
- */
- protected function getIpAccessControlListMappings() {
- if (!$this->_ipAccessControlListMappings) {
- $this->_ipAccessControlListMappings = new AuthCallsIpAccessControlListMappingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- return $this->_ipAccessControlListMappings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypeCallsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsPage.php
deleted file mode 100644
index 9121aca..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCallsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthTypeCallsInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypeCallsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingContext.php
deleted file mode 100644
index b5a15bf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/Auth/Registrations/CredentialListMappings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AuthRegistrationsCredentialListMappingInstance
- *
- * @return AuthRegistrationsCredentialListMappingInstance Fetched
- * AuthRegistrationsCredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthRegistrationsCredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the AuthRegistrationsCredentialListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthRegistrationsCredentialListMappingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingInstance.php
deleted file mode 100644
index 85dfcff..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingInstance.php
+++ /dev/null
@@ -1,128 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'domainSid' => $domainSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeRegistrations\AuthRegistrationsCredentialListMappingContext Context for
- * this AuthRegistrationsCredentialListMappingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AuthRegistrationsCredentialListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AuthRegistrationsCredentialListMappingInstance
- *
- * @return AuthRegistrationsCredentialListMappingInstance Fetched
- * AuthRegistrationsCredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AuthRegistrationsCredentialListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AuthRegistrationsCredentialListMappingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
deleted file mode 100644
index 97c3ce6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
+++ /dev/null
@@ -1,174 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/Auth/Registrations/CredentialListMappings.json';
- }
-
- /**
- * Create a new AuthRegistrationsCredentialListMappingInstance
- *
- * @param string $credentialListSid A string that uniquely identifies
- * credential list resource
- * @return AuthRegistrationsCredentialListMappingInstance Newly created
- * AuthRegistrationsCredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($credentialListSid) {
- $data = Values::of(array('CredentialListSid' => $credentialListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AuthRegistrationsCredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Streams AuthRegistrationsCredentialListMappingInstance records from the API
- * as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AuthRegistrationsCredentialListMappingInstance records from the API as
- * a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AuthRegistrationsCredentialListMappingInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AuthRegistrationsCredentialListMappingInstance
- * records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AuthRegistrationsCredentialListMappingInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthRegistrationsCredentialListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AuthRegistrationsCredentialListMappingInstance
- * records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AuthRegistrationsCredentialListMappingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AuthRegistrationsCredentialListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AuthRegistrationsCredentialListMappingContext
- *
- * @param string $sid Fetch by unique credential list Sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeRegistrations\AuthRegistrationsCredentialListMappingContext
- */
- public function getContext($sid) {
- return new AuthRegistrationsCredentialListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthRegistrationsCredentialListMappingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingPage.php
deleted file mode 100644
index 1965e93..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthRegistrationsCredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthRegistrationsCredentialListMappingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsInstance.php
deleted file mode 100644
index e6e9dd4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsInstance.php
+++ /dev/null
@@ -1,61 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypeRegistrationsInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsList.php
deleted file mode 100644
index 1aaa170..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsList.php
+++ /dev/null
@@ -1,95 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
- }
-
- /**
- * Access the credentialListMappings
- */
- protected function getCredentialListMappings() {
- if (!$this->_credentialListMappings) {
- $this->_credentialListMappings = new AuthRegistrationsCredentialListMappingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- return $this->_credentialListMappings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypeRegistrationsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsPage.php
deleted file mode 100644
index 4388edf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthTypeRegistrationsInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypeRegistrationsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesInstance.php
deleted file mode 100644
index a311233..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesInstance.php
+++ /dev/null
@@ -1,61 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypesInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php
deleted file mode 100644
index e440e92..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php
+++ /dev/null
@@ -1,112 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
- }
-
- /**
- * Access the calls
- */
- protected function getCalls() {
- if (!$this->_calls) {
- $this->_calls = new AuthTypeCallsList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- return $this->_calls;
- }
-
- /**
- * Access the registrations
- */
- protected function getRegistrations() {
- if (!$this->_registrations) {
- $this->_registrations = new AuthTypeRegistrationsList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- return $this->_registrations;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypesList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesPage.php
deleted file mode 100644
index f4c7f3a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthTypesInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AuthTypesPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingContext.php
deleted file mode 100644
index c1c9544..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/CredentialListMappings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a CredentialListMappingInstance
- *
- * @return CredentialListMappingInstance Fetched CredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the CredentialListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CredentialListMappingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingInstance.php
deleted file mode 100644
index 64b4be4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingInstance.php
+++ /dev/null
@@ -1,132 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'domainSid' => $domainSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\CredentialListMappingContext Context for this
- * CredentialListMappingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialListMappingInstance
- *
- * @return CredentialListMappingInstance Fetched CredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the CredentialListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.CredentialListMappingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingList.php
deleted file mode 100644
index 70acfeb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/CredentialListMappings.json';
- }
-
- /**
- * Create a new CredentialListMappingInstance
- *
- * @param string $credentialListSid The credential_list_sid
- * @return CredentialListMappingInstance Newly created
- * CredentialListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($credentialListSid) {
- $data = Values::of(array('CredentialListSid' => $credentialListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Streams CredentialListMappingInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialListMappingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialListMappingInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialListMappingInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialListMappingInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialListMappingInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialListMappingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CredentialListMappingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\CredentialListMappingContext
- */
- public function getContext($sid) {
- return new CredentialListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CredentialListMappingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingPage.php
deleted file mode 100644
index 27ed38f..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.CredentialListMappingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingContext.php
deleted file mode 100644
index dc237e9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/IpAccessControlListMappings/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a IpAccessControlListMappingInstance
- *
- * @return IpAccessControlListMappingInstance Fetched
- * IpAccessControlListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAccessControlListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the IpAccessControlListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IpAccessControlListMappingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingInstance.php
deleted file mode 100644
index 2c962ff..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingInstance.php
+++ /dev/null
@@ -1,133 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'domainSid' => $domainSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingContext Context for this
- * IpAccessControlListMappingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new IpAccessControlListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a IpAccessControlListMappingInstance
- *
- * @return IpAccessControlListMappingInstance Fetched
- * IpAccessControlListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the IpAccessControlListMappingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IpAccessControlListMappingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php
deleted file mode 100644
index c391c3d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('accountSid' => $accountSid, 'domainSid' => $domainSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($domainSid) . '/IpAccessControlListMappings.json';
- }
-
- /**
- * Create a new IpAccessControlListMappingInstance
- *
- * @param string $ipAccessControlListSid The ip_access_control_list_sid
- * @return IpAccessControlListMappingInstance Newly created
- * IpAccessControlListMappingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($ipAccessControlListSid) {
- $data = Values::of(array('IpAccessControlListSid' => $ipAccessControlListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IpAccessControlListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Streams IpAccessControlListMappingInstance records from the API as a
- * generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads IpAccessControlListMappingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return IpAccessControlListMappingInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of IpAccessControlListMappingInstance records from
- * the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of IpAccessControlListMappingInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAccessControlListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of IpAccessControlListMappingInstance records from
- * the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of IpAccessControlListMappingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new IpAccessControlListMappingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a IpAccessControlListMappingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingContext
- */
- public function getContext($sid) {
- return new IpAccessControlListMappingContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['domainSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IpAccessControlListMappingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingPage.php
deleted file mode 100644
index 7a5cbed..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new IpAccessControlListMappingInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['domainSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IpAccessControlListMappingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
deleted file mode 100644
index 3d9fc3e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
+++ /dev/null
@@ -1,217 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a DomainInstance
- *
- * @return DomainInstance Fetched DomainInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DomainInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the DomainInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DomainInstance Updated DomainInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'AuthType' => $options['authType'],
- 'FriendlyName' => $options['friendlyName'],
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceStatusCallbackMethod' => $options['voiceStatusCallbackMethod'],
- 'VoiceStatusCallbackUrl' => $options['voiceStatusCallbackUrl'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'SipRegistration' => Serialize::booleanToString($options['sipRegistration']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DomainInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the DomainInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the ipAccessControlListMappings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingList
- */
- protected function getIpAccessControlListMappings() {
- if (!$this->_ipAccessControlListMappings) {
- $this->_ipAccessControlListMappings = new IpAccessControlListMappingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_ipAccessControlListMappings;
- }
-
- /**
- * Access the credentialListMappings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\CredentialListMappingList
- */
- protected function getCredentialListMappings() {
- if (!$this->_credentialListMappings) {
- $this->_credentialListMappings = new CredentialListMappingList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_credentialListMappings;
- }
-
- /**
- * Access the auth
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypesList
- */
- protected function getAuth() {
- if (!$this->_auth) {
- $this->_auth = new AuthTypesList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_auth;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.DomainContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainInstance.php
deleted file mode 100644
index 231a160..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainInstance.php
+++ /dev/null
@@ -1,189 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'authType' => Values::array_get($payload, 'auth_type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'domainName' => Values::array_get($payload, 'domain_name'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceStatusCallbackMethod' => Values::array_get($payload, 'voice_status_callback_method'),
- 'voiceStatusCallbackUrl' => Values::array_get($payload, 'voice_status_callback_url'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'sipRegistration' => Values::array_get($payload, 'sip_registration'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\DomainContext Context for this
- * DomainInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DomainContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DomainInstance
- *
- * @return DomainInstance Fetched DomainInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the DomainInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DomainInstance Updated DomainInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the DomainInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the ipAccessControlListMappings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingList
- */
- protected function getIpAccessControlListMappings() {
- return $this->proxy()->ipAccessControlListMappings;
- }
-
- /**
- * Access the credentialListMappings
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\CredentialListMappingList
- */
- protected function getCredentialListMappings() {
- return $this->proxy()->credentialListMappings;
- }
-
- /**
- * Access the auth
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypesList
- */
- protected function getAuth() {
- return $this->proxy()->auth;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.DomainInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainList.php
deleted file mode 100644
index b41f3c6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainList.php
+++ /dev/null
@@ -1,174 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/Domains.json';
- }
-
- /**
- * Streams DomainInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DomainInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DomainInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DomainInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DomainInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DomainPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DomainInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DomainInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DomainPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new DomainInstance
- *
- * @param string $domainName The unique address on Twilio to route SIP traffic
- * @param array|Options $options Optional Arguments
- * @return DomainInstance Newly created DomainInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($domainName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'DomainName' => $domainName,
- 'FriendlyName' => $options['friendlyName'],
- 'AuthType' => $options['authType'],
- 'VoiceUrl' => $options['voiceUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceStatusCallbackUrl' => $options['voiceStatusCallbackUrl'],
- 'VoiceStatusCallbackMethod' => $options['voiceStatusCallbackMethod'],
- 'SipRegistration' => Serialize::booleanToString($options['sipRegistration']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DomainInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Constructs a DomainContext
- *
- * @param string $sid Fetch by unique Domain Sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\DomainContext
- */
- public function getContext($sid) {
- return new DomainContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DomainList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.php
deleted file mode 100644
index ed4bfe9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.php
+++ /dev/null
@@ -1,343 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['authType'] = $authType;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl;
- $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod;
- $this->options['sipRegistration'] = $sipRegistration;
- }
-
- /**
- * A human readable descriptive text, up to 64 characters long.
- *
- * @param string $friendlyName A user-specified, human-readable name for the
- * trigger.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The types of authentication you have mapped to your domain
- *
- * @param string $authType The types of authentication mapped to the domain
- * @return $this Fluent Builder
- */
- public function setAuthType($authType) {
- $this->options['authType'] = $authType;
- return $this;
- }
-
- /**
- * The URL Twilio will request when this domain receives a call.
- *
- * @param string $voiceUrl URL Twilio will request when receiving a call
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the above Url. Either `GET` or `POST`.
- *
- * @param string $voiceMethod HTTP method to use with voice_url
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request if an error occurs retrieving or executing the TwiML requested by VoiceUrl.
- *
- * @param string $voiceFallbackUrl URL Twilio will request if an error occurs
- * in executing TwiML
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the VoiceFallbackUrl. Either `GET` or `POST`.
- *
- * @param string $voiceFallbackMethod HTTP method used with voice_fallback_url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request to pass status parameters (such as call ended) to your application.
- *
- * @param string $voiceStatusCallbackUrl URL that Twilio will request with
- * status updates
- * @return $this Fluent Builder
- */
- public function setVoiceStatusCallbackUrl($voiceStatusCallbackUrl) {
- $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use to make requests to the StatusCallback URL. Either `GET` or `POST`.
- *
- * @param string $voiceStatusCallbackMethod The HTTP method Twilio will use to
- * make requests to the StatusCallback
- * URL.
- * @return $this Fluent Builder
- */
- public function setVoiceStatusCallbackMethod($voiceStatusCallbackMethod) {
- $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The sip_registration
- *
- * @param boolean $sipRegistration The sip_registration
- * @return $this Fluent Builder
- */
- public function setSipRegistration($sipRegistration) {
- $this->options['sipRegistration'] = $sipRegistration;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateDomainOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateDomainOptions extends Options {
- /**
- * @param string $authType The auth_type
- * @param string $friendlyName A user-specified, human-readable name for the
- * trigger.
- * @param string $voiceFallbackMethod The voice_fallback_method
- * @param string $voiceFallbackUrl The voice_fallback_url
- * @param string $voiceMethod HTTP method to use with voice_url
- * @param string $voiceStatusCallbackMethod The voice_status_callback_method
- * @param string $voiceStatusCallbackUrl The voice_status_callback_url
- * @param string $voiceUrl The voice_url
- * @param boolean $sipRegistration The sip_registration
- */
- public function __construct($authType = Values::NONE, $friendlyName = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceStatusCallbackMethod = Values::NONE, $voiceStatusCallbackUrl = Values::NONE, $voiceUrl = Values::NONE, $sipRegistration = Values::NONE) {
- $this->options['authType'] = $authType;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod;
- $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl;
- $this->options['voiceUrl'] = $voiceUrl;
- $this->options['sipRegistration'] = $sipRegistration;
- }
-
- /**
- * The auth_type
- *
- * @param string $authType The auth_type
- * @return $this Fluent Builder
- */
- public function setAuthType($authType) {
- $this->options['authType'] = $authType;
- return $this;
- }
-
- /**
- * A user-specified, human-readable name for the trigger.
- *
- * @param string $friendlyName A user-specified, human-readable name for the
- * trigger.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The voice_fallback_method
- *
- * @param string $voiceFallbackMethod The voice_fallback_method
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The voice_fallback_url
- *
- * @param string $voiceFallbackUrl The voice_fallback_url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method to use with the voice_url
- *
- * @param string $voiceMethod HTTP method to use with voice_url
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The voice_status_callback_method
- *
- * @param string $voiceStatusCallbackMethod The voice_status_callback_method
- * @return $this Fluent Builder
- */
- public function setVoiceStatusCallbackMethod($voiceStatusCallbackMethod) {
- $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The voice_status_callback_url
- *
- * @param string $voiceStatusCallbackUrl The voice_status_callback_url
- * @return $this Fluent Builder
- */
- public function setVoiceStatusCallbackUrl($voiceStatusCallbackUrl) {
- $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl;
- return $this;
- }
-
- /**
- * The voice_url
- *
- * @param string $voiceUrl The voice_url
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * The sip_registration
- *
- * @param boolean $sipRegistration The sip_registration
- * @return $this Fluent Builder
- */
- public function setSipRegistration($sipRegistration) {
- $this->options['sipRegistration'] = $sipRegistration;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateDomainOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainPage.php
deleted file mode 100644
index 3589576..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/DomainPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DomainInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DomainPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressContext.php
deleted file mode 100644
index 2c076b9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'ipAccessControlListSid' => $ipAccessControlListSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/IpAccessControlLists/' . rawurlencode($ipAccessControlListSid) . '/IpAddresses/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a IpAddressInstance
- *
- * @return IpAddressInstance Fetched IpAddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAddressInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['ipAccessControlListSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the IpAddressInstance
- *
- * @param array|Options $options Optional Arguments
- * @return IpAddressInstance Updated IpAddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'IpAddress' => $options['ipAddress'],
- 'FriendlyName' => $options['friendlyName'],
- 'CidrPrefixLength' => $options['cidrPrefixLength'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IpAddressInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['ipAccessControlListSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the IpAddressInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IpAddressContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressInstance.php
deleted file mode 100644
index cd0bcfe..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressInstance.php
+++ /dev/null
@@ -1,148 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'ipAddress' => Values::array_get($payload, 'ip_address'),
- 'cidrPrefixLength' => Values::array_get($payload, 'cidr_prefix_length'),
- 'ipAccessControlListSid' => Values::array_get($payload, 'ip_access_control_list_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array(
- 'accountSid' => $accountSid,
- 'ipAccessControlListSid' => $ipAccessControlListSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlList\IpAddressContext Context for this
- * IpAddressInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new IpAddressContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['ipAccessControlListSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a IpAddressInstance
- *
- * @return IpAddressInstance Fetched IpAddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the IpAddressInstance
- *
- * @param array|Options $options Optional Arguments
- * @return IpAddressInstance Updated IpAddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the IpAddressInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IpAddressInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressList.php
deleted file mode 100644
index 01ef7c5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array(
- 'accountSid' => $accountSid,
- 'ipAccessControlListSid' => $ipAccessControlListSid,
- );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/IpAccessControlLists/' . rawurlencode($ipAccessControlListSid) . '/IpAddresses.json';
- }
-
- /**
- * Streams IpAddressInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads IpAddressInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return IpAddressInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of IpAddressInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of IpAddressInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAddressPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of IpAddressInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of IpAddressInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new IpAddressPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new IpAddressInstance
- *
- * @param string $friendlyName The friendly_name
- * @param string $ipAddress The ip_address
- * @param array|Options $options Optional Arguments
- * @return IpAddressInstance Newly created IpAddressInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $ipAddress, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'IpAddress' => $ipAddress,
- 'CidrPrefixLength' => $options['cidrPrefixLength'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IpAddressInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['ipAccessControlListSid']
- );
- }
-
- /**
- * Constructs a IpAddressContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlList\IpAddressContext
- */
- public function getContext($sid) {
- return new IpAddressContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['ipAccessControlListSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IpAddressList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.php
deleted file mode 100644
index 84ee831..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.php
+++ /dev/null
@@ -1,129 +0,0 @@
-options['cidrPrefixLength'] = $cidrPrefixLength;
- }
-
- /**
- * The cidr_prefix_length
- *
- * @param integer $cidrPrefixLength The cidr_prefix_length
- * @return $this Fluent Builder
- */
- public function setCidrPrefixLength($cidrPrefixLength) {
- $this->options['cidrPrefixLength'] = $cidrPrefixLength;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateIpAddressOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateIpAddressOptions extends Options {
- /**
- * @param string $ipAddress The ip_address
- * @param string $friendlyName The friendly_name
- * @param integer $cidrPrefixLength The cidr_prefix_length
- */
- public function __construct($ipAddress = Values::NONE, $friendlyName = Values::NONE, $cidrPrefixLength = Values::NONE) {
- $this->options['ipAddress'] = $ipAddress;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['cidrPrefixLength'] = $cidrPrefixLength;
- }
-
- /**
- * The ip_address
- *
- * @param string $ipAddress The ip_address
- * @return $this Fluent Builder
- */
- public function setIpAddress($ipAddress) {
- $this->options['ipAddress'] = $ipAddress;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The cidr_prefix_length
- *
- * @param integer $cidrPrefixLength The cidr_prefix_length
- * @return $this Fluent Builder
- */
- public function setCidrPrefixLength($cidrPrefixLength) {
- $this->options['cidrPrefixLength'] = $cidrPrefixLength;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateIpAddressOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressPage.php
deleted file mode 100644
index bb77809..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new IpAddressInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['ipAccessControlListSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IpAddressPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListContext.php
deleted file mode 100644
index 381ddbb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListContext.php
+++ /dev/null
@@ -1,162 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/IpAccessControlLists/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a IpAccessControlListInstance
- *
- * @return IpAccessControlListInstance Fetched IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAccessControlListInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the IpAccessControlListInstance
- *
- * @param string $friendlyName A human readable description of this resource
- * @return IpAccessControlListInstance Updated IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IpAccessControlListInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the IpAccessControlListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the ipAddresses
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlList\IpAddressList
- */
- protected function getIpAddresses() {
- if (!$this->_ipAddresses) {
- $this->_ipAddresses = new IpAddressList(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_ipAddresses;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IpAccessControlListContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListInstance.php
deleted file mode 100644
index b73cd5d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlListContext Context for this IpAccessControlListInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new IpAccessControlListContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a IpAccessControlListInstance
- *
- * @return IpAccessControlListInstance Fetched IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the IpAccessControlListInstance
- *
- * @param string $friendlyName A human readable description of this resource
- * @return IpAccessControlListInstance Updated IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($friendlyName) {
- return $this->proxy()->update($friendlyName);
- }
-
- /**
- * Deletes the IpAccessControlListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the ipAddresses
- *
- * @return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlList\IpAddressList
- */
- protected function getIpAddresses() {
- return $this->proxy()->ipAddresses;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.IpAccessControlListInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListList.php
deleted file mode 100644
index ceac9ae..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListList.php
+++ /dev/null
@@ -1,159 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/SIP/IpAccessControlLists.json';
- }
-
- /**
- * Streams IpAccessControlListInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads IpAccessControlListInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return IpAccessControlListInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of IpAccessControlListInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of IpAccessControlListInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAccessControlListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of IpAccessControlListInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of IpAccessControlListInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new IpAccessControlListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new IpAccessControlListInstance
- *
- * @param string $friendlyName A human readable description of this resource
- * @return IpAccessControlListInstance Newly created IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IpAccessControlListInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Constructs a IpAccessControlListContext
- *
- * @param string $sid Fetch by unique ip-access-control-list Sid
- * @return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlListContext
- */
- public function getContext($sid) {
- return new IpAccessControlListContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IpAccessControlListList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListPage.php
deleted file mode 100644
index a8b33c3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new IpAccessControlListInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.IpAccessControlListPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipInstance.php
deleted file mode 100644
index bf46e65..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipInstance.php
+++ /dev/null
@@ -1,61 +0,0 @@
-solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SipInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipList.php
deleted file mode 100644
index 6deb6e9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipList.php
+++ /dev/null
@@ -1,124 +0,0 @@
-solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Access the domains
- */
- protected function getDomains() {
- if (!$this->_domains) {
- $this->_domains = new DomainList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_domains;
- }
-
- /**
- * Access the ipAccessControlLists
- */
- protected function getIpAccessControlLists() {
- if (!$this->_ipAccessControlLists) {
- $this->_ipAccessControlLists = new IpAccessControlListList(
- $this->version,
- $this->solution['accountSid']
- );
- }
-
- return $this->_ipAccessControlLists;
- }
-
- /**
- * Access the credentialLists
- */
- protected function getCredentialLists() {
- if (!$this->_credentialLists) {
- $this->_credentialLists = new CredentialListList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_credentialLists;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SipList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipPage.php
deleted file mode 100644
index 4787039..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/SipPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SipInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.SipPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenInstance.php
deleted file mode 100644
index 2415737..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenInstance.php
+++ /dev/null
@@ -1,81 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'iceServers' => Values::array_get($payload, 'ice_servers'),
- 'password' => Values::array_get($payload, 'password'),
- 'ttl' => Values::array_get($payload, 'ttl'),
- 'username' => Values::array_get($payload, 'username'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TokenInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenList.php
deleted file mode 100644
index dc0986a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenList.php
+++ /dev/null
@@ -1,64 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Tokens.json';
- }
-
- /**
- * Create a new TokenInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TokenInstance Newly created TokenInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Ttl' => $options['ttl'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TokenInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TokenList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenOptions.php
deleted file mode 100644
index c075846..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['ttl'] = $ttl;
- }
-
- /**
- * The duration in seconds for which the generated credentials are valid, the default value is 86400 (24 hours).
- *
- * @param integer $ttl The duration in seconds the credentials are valid
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateTokenOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenPage.php
deleted file mode 100644
index ed9acf2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TokenPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TokenInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TokenPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionContext.php
deleted file mode 100644
index 6cfb788..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Transcriptions/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a TranscriptionInstance
- *
- * @return TranscriptionInstance Fetched TranscriptionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TranscriptionInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TranscriptionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.TranscriptionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionInstance.php
deleted file mode 100644
index 954bedd..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionInstance.php
+++ /dev/null
@@ -1,137 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'recordingSid' => Values::array_get($payload, 'recording_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'transcriptionText' => Values::array_get($payload, 'transcription_text'),
- 'type' => Values::array_get($payload, 'type'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionContext Context for this
- * TranscriptionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TranscriptionContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TranscriptionInstance
- *
- * @return TranscriptionInstance Fetched TranscriptionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the TranscriptionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.TranscriptionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionList.php
deleted file mode 100644
index c73d37a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionList.php
+++ /dev/null
@@ -1,137 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Transcriptions.json';
- }
-
- /**
- * Streams TranscriptionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TranscriptionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TranscriptionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TranscriptionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TranscriptionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TranscriptionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TranscriptionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TranscriptionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TranscriptionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a TranscriptionContext
- *
- * @param string $sid Fetch by unique transcription SID
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionContext
- */
- public function getContext($sid) {
- return new TranscriptionContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TranscriptionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionPage.php
deleted file mode 100644
index a4cc8a5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/TranscriptionPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TranscriptionInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TranscriptionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeInstance.php
deleted file mode 100644
index d96963e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AllTimeInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeList.php
deleted file mode 100644
index 5bf48bc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/AllTime.json';
- }
-
- /**
- * Streams AllTimeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AllTimeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AllTimeInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AllTimeInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AllTimeInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AllTimePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AllTimeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AllTimeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AllTimePage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AllTimeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.php
deleted file mode 100644
index 7a75e6a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadAllTimeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimePage.php
deleted file mode 100644
index a33d2d3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AllTimeInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AllTimePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyInstance.php
deleted file mode 100644
index 199e9ba..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DailyInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyList.php
deleted file mode 100644
index 09f50a6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/Daily.json';
- }
-
- /**
- * Streams DailyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DailyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DailyInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DailyInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DailyInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DailyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DailyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DailyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DailyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DailyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.php
deleted file mode 100644
index 6a0b6b0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadDailyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyPage.php
deleted file mode 100644
index 928b17d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DailyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.DailyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthInstance.php
deleted file mode 100644
index 6437db0..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LastMonthInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthList.php
deleted file mode 100644
index e915962..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/LastMonth.json';
- }
-
- /**
- * Streams LastMonthInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads LastMonthInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return LastMonthInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of LastMonthInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of LastMonthInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new LastMonthPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of LastMonthInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of LastMonthInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new LastMonthPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LastMonthList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.php
deleted file mode 100644
index b058401..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * The category of usage. See [Usage Categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories) below.
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadLastMonthOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthPage.php
deleted file mode 100644
index 052355b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new LastMonthInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.LastMonthPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyInstance.php
deleted file mode 100644
index a3bcb6a..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MonthlyInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyList.php
deleted file mode 100644
index e48a160..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/Monthly.json';
- }
-
- /**
- * Streams MonthlyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MonthlyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MonthlyInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MonthlyInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MonthlyInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MonthlyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MonthlyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MonthlyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MonthlyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MonthlyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.php
deleted file mode 100644
index 4b13b17..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadMonthlyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyPage.php
deleted file mode 100644
index 014c6c9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MonthlyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.MonthlyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthInstance.php
deleted file mode 100644
index 3a9beaf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ThisMonthInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthList.php
deleted file mode 100644
index bdd3afb..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/ThisMonth.json';
- }
-
- /**
- * Streams ThisMonthInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ThisMonthInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ThisMonthInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ThisMonthInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ThisMonthInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ThisMonthPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ThisMonthInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ThisMonthInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ThisMonthPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ThisMonthList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.php
deleted file mode 100644
index 2e34dc9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadThisMonthOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthPage.php
deleted file mode 100644
index 9ce2191..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ThisMonthInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ThisMonthPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayInstance.php
deleted file mode 100644
index a6ce49d..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TodayInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayList.php
deleted file mode 100644
index 4e9127c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/Today.json';
- }
-
- /**
- * Streams TodayInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TodayInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TodayInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TodayInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TodayInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TodayPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TodayInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TodayInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TodayPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TodayList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.php
deleted file mode 100644
index 29ca473..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadTodayOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayPage.php
deleted file mode 100644
index 35eaeef..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TodayInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TodayPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyInstance.php
deleted file mode 100644
index 5f011bf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.YearlyInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyList.php
deleted file mode 100644
index e2678e3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/Yearly.json';
- }
-
- /**
- * Streams YearlyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads YearlyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return YearlyInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of YearlyInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of YearlyInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new YearlyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of YearlyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of YearlyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new YearlyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.YearlyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.php
deleted file mode 100644
index 10fc9cf..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadYearlyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyPage.php
deleted file mode 100644
index 5d09063..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new YearlyInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.YearlyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayInstance.php
deleted file mode 100644
index 5c06a79..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.YesterdayInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayList.php
deleted file mode 100644
index f292e94..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayList.php
+++ /dev/null
@@ -1,138 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records/Yesterday.json';
- }
-
- /**
- * Streams YesterdayInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads YesterdayInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return YesterdayInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of YesterdayInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of YesterdayInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new YesterdayPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of YesterdayInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of YesterdayInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new YesterdayPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.YesterdayList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.php
deleted file mode 100644
index bf902fa..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of this usage category.
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Only include usage that has occurred on or before
- * this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * The include_subaccounts
- *
- * @param boolean $includeSubaccounts The include_subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadYesterdayOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayPage.php
deleted file mode 100644
index 434a5d1..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new YesterdayInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.YesterdayPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordInstance.php
deleted file mode 100644
index 04a63a1..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordInstance.php
+++ /dev/null
@@ -1,96 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'category' => Values::array_get($payload, 'category'),
- 'count' => Values::array_get($payload, 'count'),
- 'countUnit' => Values::array_get($payload, 'count_unit'),
- 'description' => Values::array_get($payload, 'description'),
- 'endDate' => Deserialize::dateTime(Values::array_get($payload, 'end_date')),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'startDate' => Deserialize::dateTime(Values::array_get($payload, 'start_date')),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usage' => Values::array_get($payload, 'usage'),
- 'usageUnit' => Values::array_get($payload, 'usage_unit'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
deleted file mode 100644
index ebc54b1..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
+++ /dev/null
@@ -1,287 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Records.json';
- }
-
- /**
- * Streams RecordInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RecordInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RecordInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RecordInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RecordInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Category' => $options['category'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'IncludeSubaccounts' => Serialize::booleanToString($options['includeSubaccounts']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RecordInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RecordInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RecordPage($this->version, $response, $this->solution);
- }
-
- /**
- * Access the allTime
- */
- protected function getAllTime() {
- if (!$this->_allTime) {
- $this->_allTime = new AllTimeList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_allTime;
- }
-
- /**
- * Access the daily
- */
- protected function getDaily() {
- if (!$this->_daily) {
- $this->_daily = new DailyList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_daily;
- }
-
- /**
- * Access the lastMonth
- */
- protected function getLastMonth() {
- if (!$this->_lastMonth) {
- $this->_lastMonth = new LastMonthList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_lastMonth;
- }
-
- /**
- * Access the monthly
- */
- protected function getMonthly() {
- if (!$this->_monthly) {
- $this->_monthly = new MonthlyList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_monthly;
- }
-
- /**
- * Access the thisMonth
- */
- protected function getThisMonth() {
- if (!$this->_thisMonth) {
- $this->_thisMonth = new ThisMonthList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_thisMonth;
- }
-
- /**
- * Access the today
- */
- protected function getToday() {
- if (!$this->_today) {
- $this->_today = new TodayList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_today;
- }
-
- /**
- * Access the yearly
- */
- protected function getYearly() {
- if (!$this->_yearly) {
- $this->_yearly = new YearlyList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_yearly;
- }
-
- /**
- * Access the yesterday
- */
- protected function getYesterday() {
- if (!$this->_yesterday) {
- $this->_yesterday = new YesterdayList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_yesterday;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.php
deleted file mode 100644
index 706fdc4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.php
+++ /dev/null
@@ -1,103 +0,0 @@
-options['category'] = $category;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- }
-
- /**
- * Only include usage of this [usage category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $category Only include usage of a given category
- * @return $this Fluent Builder
- */
- public function setCategory($category) {
- $this->options['category'] = $category;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `StartDate=-30days` will make `StartDate` be 30 days before today.
- *
- * @param \DateTime $startDate Filter by start date
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can also specify offsets to today. For example, `EndDate=+30days` will make `EndDate` be 30 days from today.
- *
- * @param \DateTime $endDate Filter by end date
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * `true` to include usage from the master account and all subaccounts. `false` to only retrieve usage from the specified account. `IncludeSubaccounts` is `true` by default.
- *
- * @param boolean $includeSubaccounts Include usage from the master account and
- * all subaccounts
- * @return $this Fluent Builder
- */
- public function setIncludeSubaccounts($includeSubaccounts) {
- $this->options['includeSubaccounts'] = $includeSubaccounts;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadRecordOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordPage.php
deleted file mode 100644
index 31ce257..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/RecordPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RecordInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.RecordPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerContext.php
deleted file mode 100644
index 5de3c24..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('accountSid' => $accountSid, 'sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Triggers/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a TriggerInstance
- *
- * @return TriggerInstance Fetched TriggerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TriggerInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the TriggerInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TriggerInstance Updated TriggerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'CallbackMethod' => $options['callbackMethod'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TriggerInstance(
- $this->version,
- $payload,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TriggerInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.TriggerContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerInstance.php
deleted file mode 100644
index 11b8484..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerInstance.php
+++ /dev/null
@@ -1,156 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'callbackMethod' => Values::array_get($payload, 'callback_method'),
- 'callbackUrl' => Values::array_get($payload, 'callback_url'),
- 'currentValue' => Values::array_get($payload, 'current_value'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateFired' => Deserialize::dateTime(Values::array_get($payload, 'date_fired')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'recurring' => Values::array_get($payload, 'recurring'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'triggerBy' => Values::array_get($payload, 'trigger_by'),
- 'triggerValue' => Values::array_get($payload, 'trigger_value'),
- 'uri' => Values::array_get($payload, 'uri'),
- 'usageCategory' => Values::array_get($payload, 'usage_category'),
- 'usageRecordUri' => Values::array_get($payload, 'usage_record_uri'),
- );
-
- $this->solution = array('accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\Account\Usage\TriggerContext Context for this
- * TriggerInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TriggerContext(
- $this->version,
- $this->solution['accountSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TriggerInstance
- *
- * @return TriggerInstance Fetched TriggerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TriggerInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TriggerInstance Updated TriggerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the TriggerInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.TriggerInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php
deleted file mode 100644
index f0cf94b..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php
+++ /dev/null
@@ -1,179 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Usage/Triggers.json';
- }
-
- /**
- * Create a new TriggerInstance
- *
- * @param string $callbackUrl URL Twilio will request when the trigger fires
- * @param string $triggerValue the value at which the trigger will fire
- * @param string $usageCategory The usage category the trigger watches
- * @param array|Options $options Optional Arguments
- * @return TriggerInstance Newly created TriggerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($callbackUrl, $triggerValue, $usageCategory, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'CallbackUrl' => $callbackUrl,
- 'TriggerValue' => $triggerValue,
- 'UsageCategory' => $usageCategory,
- 'CallbackMethod' => $options['callbackMethod'],
- 'FriendlyName' => $options['friendlyName'],
- 'Recurring' => $options['recurring'],
- 'TriggerBy' => $options['triggerBy'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TriggerInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Streams TriggerInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TriggerInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TriggerInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TriggerInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TriggerInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Recurring' => $options['recurring'],
- 'TriggerBy' => $options['triggerBy'],
- 'UsageCategory' => $options['usageCategory'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TriggerPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TriggerInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TriggerInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TriggerPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a TriggerContext
- *
- * @param string $sid Fetch by unique usage-trigger Sid
- * @return \Twilio\Rest\Api\V2010\Account\Usage\TriggerContext
- */
- public function getContext($sid) {
- return new TriggerContext($this->version, $this->solution['accountSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TriggerList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.php
deleted file mode 100644
index 7e06f06..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.php
+++ /dev/null
@@ -1,248 +0,0 @@
-options['callbackMethod'] = $callbackMethod;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The HTTP method Twilio will use when making a request to the CallbackUrl. `GET` or `POST`.
- *
- * @param string $callbackMethod HTTP method to use with callback_url
- * @return $this Fluent Builder
- */
- public function setCallbackMethod($callbackMethod) {
- $this->options['callbackMethod'] = $callbackMethod;
- return $this;
- }
-
- /**
- * Twilio will make a request to this url when the trigger fires.
- *
- * @param string $callbackUrl URL Twilio will request when the trigger fires
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * A user-specified, human-readable name for the trigger.
- *
- * @param string $friendlyName A user-specified, human-readable name for the
- * trigger.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateTriggerOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateTriggerOptions extends Options {
- /**
- * @param string $callbackMethod HTTP method to use with callback_url
- * @param string $friendlyName A user-specified, human-readable name for the
- * trigger.
- * @param string $recurring How this trigger recurs
- * @param string $triggerBy The field in the UsageRecord that fires the trigger
- */
- public function __construct($callbackMethod = Values::NONE, $friendlyName = Values::NONE, $recurring = Values::NONE, $triggerBy = Values::NONE) {
- $this->options['callbackMethod'] = $callbackMethod;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['recurring'] = $recurring;
- $this->options['triggerBy'] = $triggerBy;
- }
-
- /**
- * Twilio will use this HTTP method when making a request to the CallbackUrl. `GET` or `POST`. The default is `POST`.
- *
- * @param string $callbackMethod HTTP method to use with callback_url
- * @return $this Fluent Builder
- */
- public function setCallbackMethod($callbackMethod) {
- $this->options['callbackMethod'] = $callbackMethod;
- return $this;
- }
-
- /**
- * A human readable description of the new trigger. Maximum 64 characters.
- *
- * @param string $friendlyName A user-specified, human-readable name for the
- * trigger.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * How this trigger recurs. Empty for non-recurring triggers. One of `daily`, `monthly`, or `yearly` for recurring triggers. A trigger will only fire once during each recurring period. Recurring periods are in GMT.
- *
- * @param string $recurring How this trigger recurs
- * @return $this Fluent Builder
- */
- public function setRecurring($recurring) {
- $this->options['recurring'] = $recurring;
- return $this;
- }
-
- /**
- * The field in the [UsageRecord](https://www.twilio.com/docs/api/rest/usage-records) that will fire the trigger. One of `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price). The default is `usage`.
- *
- * @param string $triggerBy The field in the UsageRecord that fires the trigger
- * @return $this Fluent Builder
- */
- public function setTriggerBy($triggerBy) {
- $this->options['triggerBy'] = $triggerBy;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateTriggerOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadTriggerOptions extends Options {
- /**
- * @param string $recurring Filter by recurring
- * @param string $triggerBy Filter by trigger by
- * @param string $usageCategory Filter by Usage Category
- */
- public function __construct($recurring = Values::NONE, $triggerBy = Values::NONE, $usageCategory = Values::NONE) {
- $this->options['recurring'] = $recurring;
- $this->options['triggerBy'] = $triggerBy;
- $this->options['usageCategory'] = $usageCategory;
- }
-
- /**
- * Only show UsageTriggers that count over this interval. One of `daily`, `monthly`, or `yearly`. To retrieve non-recurring triggers, leave this empty or use `alltime`.
- *
- * @param string $recurring Filter by recurring
- * @return $this Fluent Builder
- */
- public function setRecurring($recurring) {
- $this->options['recurring'] = $recurring;
- return $this;
- }
-
- /**
- * Only show UsageTriggers that trigger by this field in the UsageRecord. Must be one of: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
- *
- * @param string $triggerBy Filter by trigger by
- * @return $this Fluent Builder
- */
- public function setTriggerBy($triggerBy) {
- $this->options['triggerBy'] = $triggerBy;
- return $this;
- }
-
- /**
- * Only show UsageTriggers that watch this usage category. Must be one of the supported [usage categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
- *
- * @param string $usageCategory Filter by Usage Category
- * @return $this Fluent Builder
- */
- public function setUsageCategory($usageCategory) {
- $this->options['usageCategory'] = $usageCategory;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadTriggerOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerPage.php
deleted file mode 100644
index 4a090d7..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/Usage/TriggerPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TriggerInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.TriggerPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageInstance.php
deleted file mode 100644
index 2d3f2f5..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageInstance.php
+++ /dev/null
@@ -1,61 +0,0 @@
-solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.UsageInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageList.php
deleted file mode 100644
index a7d61d6..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsageList.php
+++ /dev/null
@@ -1,105 +0,0 @@
-solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Access the records
- */
- protected function getRecords() {
- if (!$this->_records) {
- $this->_records = new RecordList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_records;
- }
-
- /**
- * Access the triggers
- */
- protected function getTriggers() {
- if (!$this->_triggers) {
- $this->_triggers = new TriggerList($this->version, $this->solution['accountSid']);
- }
-
- return $this->_triggers;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.UsageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsagePage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsagePage.php
deleted file mode 100644
index 69a393e..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/UsagePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UsageInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.UsagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestInstance.php
deleted file mode 100644
index 8642484..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestInstance.php
+++ /dev/null
@@ -1,77 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'validationCode' => Values::array_get($payload, 'validation_code'),
- 'callSid' => Values::array_get($payload, 'call_sid'),
- );
-
- $this->solution = array('accountSid' => $accountSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ValidationRequestInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestList.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestList.php
deleted file mode 100644
index 9ebfed2..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestList.php
+++ /dev/null
@@ -1,73 +0,0 @@
-solution = array('accountSid' => $accountSid, );
-
- $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/OutgoingCallerIds.json';
- }
-
- /**
- * Create a new ValidationRequestInstance
- *
- * @param string $phoneNumber The phone number to verify.
- * @param array|Options $options Optional Arguments
- * @return ValidationRequestInstance Newly created ValidationRequestInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumber, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PhoneNumber' => $phoneNumber,
- 'FriendlyName' => $options['friendlyName'],
- 'CallDelay' => $options['callDelay'],
- 'Extension' => $options['extension'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ValidationRequestInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ValidationRequestList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.php
deleted file mode 100644
index e6d3fd4..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.php
+++ /dev/null
@@ -1,132 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['callDelay'] = $callDelay;
- $this->options['extension'] = $extension;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- }
-
- /**
- * A human readable description for the new caller ID with maximum length 64 characters. Defaults to a nicely formatted version of the number.
- *
- * @param string $friendlyName A human readable description for the new caller
- * ID with maximum length 64 characters.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0.
- *
- * @param integer $callDelay The number of seconds, between 0 and 60, to delay
- * before initiating the verification call.
- * @return $this Fluent Builder
- */
- public function setCallDelay($callDelay) {
- $this->options['callDelay'] = $callDelay;
- return $this;
- }
-
- /**
- * Digits to dial after connecting the verification call.
- *
- * @param string $extension Digits to dial after connecting the verification
- * call.
- * @return $this Fluent Builder
- */
- public function setExtension($extension) {
- $this->options['extension'] = $extension;
- return $this;
- }
-
- /**
- * A URL that Twilio will request when the verification call ends to notify your app if the verification process was successful or not. See [StatusCallback parameter](https://www.twilio.com/docs/api/voice/outgoing-caller-ids#statuscallback-parameter) below.
- *
- * @param string $statusCallback A URL that Twilio will request when the
- * verification call ends to notify your app if
- * the verification process was successful or not.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The HTTP method Twilio should use when requesting the above URL. Defaults to POST.
- *
- * @param string $statusCallbackMethod The HTTP method Twilio should use when
- * requesting the above URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateValidationRequestOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestPage.php
deleted file mode 100644
index c5ddcff..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/Account/ValidationRequestPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ValidationRequestInstance($this->version, $payload, $this->solution['accountSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.ValidationRequestPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/AccountContext.php b/public/twilio-php/Twilio/Rest/Api/V2010/AccountContext.php
deleted file mode 100644
index 07f7df3..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/AccountContext.php
+++ /dev/null
@@ -1,533 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Accounts/' . rawurlencode($sid) . '.json';
- }
-
- /**
- * Fetch a AccountInstance
- *
- * @return AccountInstance Fetched AccountInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AccountInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the AccountInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AccountInstance Updated AccountInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Status' => $options['status'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AccountInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the addresses
- *
- * @return \Twilio\Rest\Api\V2010\Account\AddressList
- */
- protected function getAddresses() {
- if (!$this->_addresses) {
- $this->_addresses = new AddressList($this->version, $this->solution['sid']);
- }
-
- return $this->_addresses;
- }
-
- /**
- * Access the applications
- *
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationList
- */
- protected function getApplications() {
- if (!$this->_applications) {
- $this->_applications = new ApplicationList($this->version, $this->solution['sid']);
- }
-
- return $this->_applications;
- }
-
- /**
- * Access the authorizedConnectApps
- *
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList
- */
- protected function getAuthorizedConnectApps() {
- if (!$this->_authorizedConnectApps) {
- $this->_authorizedConnectApps = new AuthorizedConnectAppList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_authorizedConnectApps;
- }
-
- /**
- * Access the availablePhoneNumbers
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList
- */
- protected function getAvailablePhoneNumbers() {
- if (!$this->_availablePhoneNumbers) {
- $this->_availablePhoneNumbers = new AvailablePhoneNumberCountryList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_availablePhoneNumbers;
- }
-
- /**
- * Access the balance
- *
- * @return \Twilio\Rest\Api\V2010\Account\BalanceList
- */
- protected function getBalance() {
- if (!$this->_balance) {
- $this->_balance = new BalanceList($this->version, $this->solution['sid']);
- }
-
- return $this->_balance;
- }
-
- /**
- * Access the calls
- *
- * @return \Twilio\Rest\Api\V2010\Account\CallList
- */
- protected function getCalls() {
- if (!$this->_calls) {
- $this->_calls = new CallList($this->version, $this->solution['sid']);
- }
-
- return $this->_calls;
- }
-
- /**
- * Access the conferences
- *
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceList
- */
- protected function getConferences() {
- if (!$this->_conferences) {
- $this->_conferences = new ConferenceList($this->version, $this->solution['sid']);
- }
-
- return $this->_conferences;
- }
-
- /**
- * Access the connectApps
- *
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppList
- */
- protected function getConnectApps() {
- if (!$this->_connectApps) {
- $this->_connectApps = new ConnectAppList($this->version, $this->solution['sid']);
- }
-
- return $this->_connectApps;
- }
-
- /**
- * Access the incomingPhoneNumbers
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList
- */
- protected function getIncomingPhoneNumbers() {
- if (!$this->_incomingPhoneNumbers) {
- $this->_incomingPhoneNumbers = new IncomingPhoneNumberList($this->version, $this->solution['sid']);
- }
-
- return $this->_incomingPhoneNumbers;
- }
-
- /**
- * Access the keys
- *
- * @return \Twilio\Rest\Api\V2010\Account\KeyList
- */
- protected function getKeys() {
- if (!$this->_keys) {
- $this->_keys = new KeyList($this->version, $this->solution['sid']);
- }
-
- return $this->_keys;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\Api\V2010\Account\MessageList
- */
- protected function getMessages() {
- if (!$this->_messages) {
- $this->_messages = new MessageList($this->version, $this->solution['sid']);
- }
-
- return $this->_messages;
- }
-
- /**
- * Access the newKeys
- *
- * @return \Twilio\Rest\Api\V2010\Account\NewKeyList
- */
- protected function getNewKeys() {
- if (!$this->_newKeys) {
- $this->_newKeys = new NewKeyList($this->version, $this->solution['sid']);
- }
-
- return $this->_newKeys;
- }
-
- /**
- * Access the newSigningKeys
- *
- * @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList
- */
- protected function getNewSigningKeys() {
- if (!$this->_newSigningKeys) {
- $this->_newSigningKeys = new NewSigningKeyList($this->version, $this->solution['sid']);
- }
-
- return $this->_newSigningKeys;
- }
-
- /**
- * Access the notifications
- *
- * @return \Twilio\Rest\Api\V2010\Account\NotificationList
- */
- protected function getNotifications() {
- if (!$this->_notifications) {
- $this->_notifications = new NotificationList($this->version, $this->solution['sid']);
- }
-
- return $this->_notifications;
- }
-
- /**
- * Access the outgoingCallerIds
- *
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
- */
- protected function getOutgoingCallerIds() {
- if (!$this->_outgoingCallerIds) {
- $this->_outgoingCallerIds = new OutgoingCallerIdList($this->version, $this->solution['sid']);
- }
-
- return $this->_outgoingCallerIds;
- }
-
- /**
- * Access the queues
- *
- * @return \Twilio\Rest\Api\V2010\Account\QueueList
- */
- protected function getQueues() {
- if (!$this->_queues) {
- $this->_queues = new QueueList($this->version, $this->solution['sid']);
- }
-
- return $this->_queues;
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Api\V2010\Account\RecordingList
- */
- protected function getRecordings() {
- if (!$this->_recordings) {
- $this->_recordings = new RecordingList($this->version, $this->solution['sid']);
- }
-
- return $this->_recordings;
- }
-
- /**
- * Access the signingKeys
- *
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyList
- */
- protected function getSigningKeys() {
- if (!$this->_signingKeys) {
- $this->_signingKeys = new SigningKeyList($this->version, $this->solution['sid']);
- }
-
- return $this->_signingKeys;
- }
-
- /**
- * Access the sip
- *
- * @return \Twilio\Rest\Api\V2010\Account\SipList
- */
- protected function getSip() {
- if (!$this->_sip) {
- $this->_sip = new SipList($this->version, $this->solution['sid']);
- }
-
- return $this->_sip;
- }
-
- /**
- * Access the shortCodes
- *
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeList
- */
- protected function getShortCodes() {
- if (!$this->_shortCodes) {
- $this->_shortCodes = new ShortCodeList($this->version, $this->solution['sid']);
- }
-
- return $this->_shortCodes;
- }
-
- /**
- * Access the tokens
- *
- * @return \Twilio\Rest\Api\V2010\Account\TokenList
- */
- protected function getTokens() {
- if (!$this->_tokens) {
- $this->_tokens = new TokenList($this->version, $this->solution['sid']);
- }
-
- return $this->_tokens;
- }
-
- /**
- * Access the transcriptions
- *
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionList
- */
- protected function getTranscriptions() {
- if (!$this->_transcriptions) {
- $this->_transcriptions = new TranscriptionList($this->version, $this->solution['sid']);
- }
-
- return $this->_transcriptions;
- }
-
- /**
- * Access the usage
- *
- * @return \Twilio\Rest\Api\V2010\Account\UsageList
- */
- protected function getUsage() {
- if (!$this->_usage) {
- $this->_usage = new UsageList($this->version, $this->solution['sid']);
- }
-
- return $this->_usage;
- }
-
- /**
- * Access the validationRequests
- *
- * @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList
- */
- protected function getValidationRequests() {
- if (!$this->_validationRequests) {
- $this->_validationRequests = new ValidationRequestList($this->version, $this->solution['sid']);
- }
-
- return $this->_validationRequests;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AccountContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/AccountInstance.php b/public/twilio-php/Twilio/Rest/Api/V2010/AccountInstance.php
deleted file mode 100644
index 18f26bc..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/AccountInstance.php
+++ /dev/null
@@ -1,369 +0,0 @@
-properties = array(
- 'authToken' => Values::array_get($payload, 'auth_token'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'ownerAccountSid' => Values::array_get($payload, 'owner_account_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
- 'type' => Values::array_get($payload, 'type'),
- 'uri' => Values::array_get($payload, 'uri'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Api\V2010\AccountContext Context for this
- * AccountInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AccountContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AccountInstance
- *
- * @return AccountInstance Fetched AccountInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AccountInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AccountInstance Updated AccountInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the addresses
- *
- * @return \Twilio\Rest\Api\V2010\Account\AddressList
- */
- protected function getAddresses() {
- return $this->proxy()->addresses;
- }
-
- /**
- * Access the applications
- *
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationList
- */
- protected function getApplications() {
- return $this->proxy()->applications;
- }
-
- /**
- * Access the authorizedConnectApps
- *
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList
- */
- protected function getAuthorizedConnectApps() {
- return $this->proxy()->authorizedConnectApps;
- }
-
- /**
- * Access the availablePhoneNumbers
- *
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList
- */
- protected function getAvailablePhoneNumbers() {
- return $this->proxy()->availablePhoneNumbers;
- }
-
- /**
- * Access the balance
- *
- * @return \Twilio\Rest\Api\V2010\Account\BalanceList
- */
- protected function getBalance() {
- return $this->proxy()->balance;
- }
-
- /**
- * Access the calls
- *
- * @return \Twilio\Rest\Api\V2010\Account\CallList
- */
- protected function getCalls() {
- return $this->proxy()->calls;
- }
-
- /**
- * Access the conferences
- *
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceList
- */
- protected function getConferences() {
- return $this->proxy()->conferences;
- }
-
- /**
- * Access the connectApps
- *
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppList
- */
- protected function getConnectApps() {
- return $this->proxy()->connectApps;
- }
-
- /**
- * Access the incomingPhoneNumbers
- *
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList
- */
- protected function getIncomingPhoneNumbers() {
- return $this->proxy()->incomingPhoneNumbers;
- }
-
- /**
- * Access the keys
- *
- * @return \Twilio\Rest\Api\V2010\Account\KeyList
- */
- protected function getKeys() {
- return $this->proxy()->keys;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\Api\V2010\Account\MessageList
- */
- protected function getMessages() {
- return $this->proxy()->messages;
- }
-
- /**
- * Access the newKeys
- *
- * @return \Twilio\Rest\Api\V2010\Account\NewKeyList
- */
- protected function getNewKeys() {
- return $this->proxy()->newKeys;
- }
-
- /**
- * Access the newSigningKeys
- *
- * @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList
- */
- protected function getNewSigningKeys() {
- return $this->proxy()->newSigningKeys;
- }
-
- /**
- * Access the notifications
- *
- * @return \Twilio\Rest\Api\V2010\Account\NotificationList
- */
- protected function getNotifications() {
- return $this->proxy()->notifications;
- }
-
- /**
- * Access the outgoingCallerIds
- *
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
- */
- protected function getOutgoingCallerIds() {
- return $this->proxy()->outgoingCallerIds;
- }
-
- /**
- * Access the queues
- *
- * @return \Twilio\Rest\Api\V2010\Account\QueueList
- */
- protected function getQueues() {
- return $this->proxy()->queues;
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Api\V2010\Account\RecordingList
- */
- protected function getRecordings() {
- return $this->proxy()->recordings;
- }
-
- /**
- * Access the signingKeys
- *
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyList
- */
- protected function getSigningKeys() {
- return $this->proxy()->signingKeys;
- }
-
- /**
- * Access the sip
- *
- * @return \Twilio\Rest\Api\V2010\Account\SipList
- */
- protected function getSip() {
- return $this->proxy()->sip;
- }
-
- /**
- * Access the shortCodes
- *
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeList
- */
- protected function getShortCodes() {
- return $this->proxy()->shortCodes;
- }
-
- /**
- * Access the tokens
- *
- * @return \Twilio\Rest\Api\V2010\Account\TokenList
- */
- protected function getTokens() {
- return $this->proxy()->tokens;
- }
-
- /**
- * Access the transcriptions
- *
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionList
- */
- protected function getTranscriptions() {
- return $this->proxy()->transcriptions;
- }
-
- /**
- * Access the usage
- *
- * @return \Twilio\Rest\Api\V2010\Account\UsageList
- */
- protected function getUsage() {
- return $this->proxy()->usage;
- }
-
- /**
- * Access the validationRequests
- *
- * @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList
- */
- protected function getValidationRequests() {
- return $this->proxy()->validationRequests;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Api.V2010.AccountInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/AccountList.php b/public/twilio-php/Twilio/Rest/Api/V2010/AccountList.php
deleted file mode 100644
index 4414862..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/AccountList.php
+++ /dev/null
@@ -1,165 +0,0 @@
-solution = array();
-
- $this->uri = '/Accounts.json';
- }
-
- /**
- * Create a new AccountInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AccountInstance Newly created AccountInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AccountInstance($this->version, $payload);
- }
-
- /**
- * Streams AccountInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AccountInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AccountInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AccountInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AccountInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Status' => $options['status'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AccountPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AccountInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AccountInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AccountPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AccountContext
- *
- * @param string $sid Fetch by unique Account Sid
- * @return \Twilio\Rest\Api\V2010\AccountContext
- */
- public function getContext($sid) {
- return new AccountContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AccountList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/AccountOptions.php b/public/twilio-php/Twilio/Rest/Api/V2010/AccountOptions.php
deleted file mode 100644
index 6f1504c..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/AccountOptions.php
+++ /dev/null
@@ -1,172 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}`
- *
- * @param string $friendlyName A human readable description of the account
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.CreateAccountOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadAccountOptions extends Options {
- /**
- * @param string $friendlyName FriendlyName to filter on
- * @param string $status Status to filter on
- */
- public function __construct($friendlyName = Values::NONE, $status = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['status'] = $status;
- }
-
- /**
- * Only return the Account resources with friendly names that exactly match this name.
- *
- * @param string $friendlyName FriendlyName to filter on
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Only return Account resources with the given status. Can be `closed`, `suspended` or `active`.
- *
- * @param string $status Status to filter on
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.ReadAccountOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateAccountOptions extends Options {
- /**
- * @param string $friendlyName FriendlyName to update
- * @param string $status Status to update the Account with
- */
- public function __construct($friendlyName = Values::NONE, $status = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['status'] = $status;
- }
-
- /**
- * Update the human-readable description of this Account
- *
- * @param string $friendlyName FriendlyName to update
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it.
- *
- * @param string $status Status to update the Account with
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Api.V2010.UpdateAccountOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Api/V2010/AccountPage.php b/public/twilio-php/Twilio/Rest/Api/V2010/AccountPage.php
deleted file mode 100644
index 8e19be9..0000000
--- a/public/twilio-php/Twilio/Rest/Api/V2010/AccountPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AccountInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Api.V2010.AccountPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy.php b/public/twilio-php/Twilio/Rest/Authy.php
deleted file mode 100644
index 2958332..0000000
--- a/public/twilio-php/Twilio/Rest/Authy.php
+++ /dev/null
@@ -1,120 +0,0 @@
-baseUrl = 'https://authy.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Authy\V1 Version v1 of authy
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Authy\V1\FormList
- */
- protected function getForms() {
- return $this->v1->forms;
- }
-
- /**
- * @param string $formType The Form Type of this Form
- * @return \Twilio\Rest\Authy\V1\FormContext
- */
- protected function contextForms($formType) {
- return $this->v1->forms($formType);
- }
-
- /**
- * @return \Twilio\Rest\Authy\V1\ServiceList
- */
- protected function getServices() {
- return $this->v1->services;
- }
-
- /**
- * @param string $sid A string that uniquely identifies this Service.
- * @return \Twilio\Rest\Authy\V1\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v1->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1.php b/public/twilio-php/Twilio/Rest/Authy/V1.php
deleted file mode 100644
index 92cdef9..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Authy\V1\FormList
- */
- protected function getForms() {
- if (!$this->_forms) {
- $this->_forms = new FormList($this);
- }
- return $this->_forms;
- }
-
- /**
- * @return \Twilio\Rest\Authy\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/FormContext.php b/public/twilio-php/Twilio/Rest/Authy/V1/FormContext.php
deleted file mode 100644
index 906085d..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/FormContext.php
+++ /dev/null
@@ -1,66 +0,0 @@
-solution = array('formType' => $formType, );
-
- $this->uri = '/Forms/' . rawurlencode($formType) . '';
- }
-
- /**
- * Fetch a FormInstance
- *
- * @return FormInstance Fetched FormInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FormInstance($this->version, $payload, $this->solution['formType']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.FormContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/FormInstance.php b/public/twilio-php/Twilio/Rest/Authy/V1/FormInstance.php
deleted file mode 100644
index 1fff852..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/FormInstance.php
+++ /dev/null
@@ -1,104 +0,0 @@
-properties = array(
- 'formType' => Values::array_get($payload, 'form_type'),
- 'forms' => Values::array_get($payload, 'forms'),
- 'formMeta' => Values::array_get($payload, 'form_meta'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('formType' => $formType ?: $this->properties['formType'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Authy\V1\FormContext Context for this FormInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FormContext($this->version, $this->solution['formType']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FormInstance
- *
- * @return FormInstance Fetched FormInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.FormInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/FormList.php b/public/twilio-php/Twilio/Rest/Authy/V1/FormList.php
deleted file mode 100644
index 296710e..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/FormList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a FormContext
- *
- * @param string $formType The Form Type of this Form
- * @return \Twilio\Rest\Authy\V1\FormContext
- */
- public function getContext($formType) {
- return new FormContext($this->version, $formType);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.FormList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/FormPage.php b/public/twilio-php/Twilio/Rest/Authy/V1/FormPage.php
deleted file mode 100644
index 07b05aa..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/FormPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FormInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.FormPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeContext.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeContext.php
deleted file mode 100644
index ca18890..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeContext.php
+++ /dev/null
@@ -1,122 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'identity' => $identity,
- 'factorSid' => $factorSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities/' . rawurlencode($identity) . '/Factors/' . rawurlencode($factorSid) . '/Challenges/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the ChallengeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a ChallengeInstance
- *
- * @return ChallengeInstance Fetched ChallengeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChallengeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['factorSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ChallengeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChallengeInstance Updated ChallengeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('AuthPayload' => $options['authPayload'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChallengeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['factorSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.ChallengeContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeInstance.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeInstance.php
deleted file mode 100644
index 705558f..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeInstance.php
+++ /dev/null
@@ -1,171 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'entitySid' => Values::array_get($payload, 'entity_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'factorSid' => Values::array_get($payload, 'factor_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'dateResponded' => Deserialize::dateTime(Values::array_get($payload, 'date_responded')),
- 'expirationDate' => Deserialize::dateTime(Values::array_get($payload, 'expiration_date')),
- 'verificationSid' => Values::array_get($payload, 'verification_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'reason' => Values::array_get($payload, 'reason'),
- 'details' => Values::array_get($payload, 'details'),
- 'hiddenDetails' => Values::array_get($payload, 'hidden_details'),
- 'type' => Values::array_get($payload, 'type'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'identity' => $identity,
- 'factorSid' => $factorSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Authy\V1\Service\Entity\Factor\ChallengeContext Context
- * for
- * this
- * ChallengeInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ChallengeContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['factorSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the ChallengeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a ChallengeInstance
- *
- * @return ChallengeInstance Fetched ChallengeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ChallengeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChallengeInstance Updated ChallengeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.ChallengeInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php
deleted file mode 100644
index 3d182d6..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php
+++ /dev/null
@@ -1,101 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'identity' => $identity,
- 'factorSid' => $factorSid,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities/' . rawurlencode($identity) . '/Factors/' . rawurlencode($factorSid) . '/Challenges';
- }
-
- /**
- * Create a new ChallengeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChallengeInstance Newly created ChallengeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'ExpirationDate' => Serialize::iso8601DateTime($options['expirationDate']),
- 'Details' => $options['details'],
- 'HiddenDetails' => $options['hiddenDetails'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChallengeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['factorSid']
- );
- }
-
- /**
- * Constructs a ChallengeContext
- *
- * @param string $sid A string that uniquely identifies this Challenge, or
- * `latest`.
- * @return \Twilio\Rest\Authy\V1\Service\Entity\Factor\ChallengeContext
- */
- public function getContext($sid) {
- return new ChallengeContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['factorSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.ChallengeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeOptions.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeOptions.php
deleted file mode 100644
index 798558a..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeOptions.php
+++ /dev/null
@@ -1,138 +0,0 @@
-options['expirationDate'] = $expirationDate;
- $this->options['details'] = $details;
- $this->options['hiddenDetails'] = $hiddenDetails;
- }
-
- /**
- * The future date in which this Challenge will expire, given in ISO 8601 format (https://en.wikipedia.org/wiki/ISO_8601).
- *
- * @param \DateTime $expirationDate The future date in which this Challenge
- * will expire
- * @return $this Fluent Builder
- */
- public function setExpirationDate($expirationDate) {
- $this->options['expirationDate'] = $expirationDate;
- return $this;
- }
-
- /**
- * Details provided to give context about the Challenge. Shown to the end user.
- *
- * @param string $details Public details provided to contextualize the Challenge
- * @return $this Fluent Builder
- */
- public function setDetails($details) {
- $this->options['details'] = $details;
- return $this;
- }
-
- /**
- * Details provided to give context about the Challenge. Not shown to the end user.
- *
- * @param string $hiddenDetails Hidden details provided to contextualize the
- * Challenge
- * @return $this Fluent Builder
- */
- public function setHiddenDetails($hiddenDetails) {
- $this->options['hiddenDetails'] = $hiddenDetails;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Authy.V1.CreateChallengeOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateChallengeOptions extends Options {
- /**
- * @param string $authPayload Optional payload to verify the Challenge
- */
- public function __construct($authPayload = Values::NONE) {
- $this->options['authPayload'] = $authPayload;
- }
-
- /**
- * The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code.
- *
- * @param string $authPayload Optional payload to verify the Challenge
- * @return $this Fluent Builder
- */
- public function setAuthPayload($authPayload) {
- $this->options['authPayload'] = $authPayload;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Authy.V1.UpdateChallengeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengePage.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengePage.php
deleted file mode 100644
index 9bec3d1..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengePage.php
+++ /dev/null
@@ -1,43 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ChallengeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['factorSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.ChallengePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorContext.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorContext.php
deleted file mode 100644
index e830fa4..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorContext.php
+++ /dev/null
@@ -1,171 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'identity' => $identity, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities/' . rawurlencode($identity) . '/Factors/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the FactorInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a FactorInstance
- *
- * @return FactorInstance Fetched FactorInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FactorInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the FactorInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FactorInstance Updated FactorInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('AuthPayload' => $options['authPayload'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FactorInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the challenges
- *
- * @return \Twilio\Rest\Authy\V1\Service\Entity\Factor\ChallengeList
- */
- protected function getChallenges() {
- if (!$this->_challenges) {
- $this->_challenges = new ChallengeList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['sid']
- );
- }
-
- return $this->_challenges;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.FactorContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorInstance.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorInstance.php
deleted file mode 100644
index 2601e7a..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorInstance.php
+++ /dev/null
@@ -1,166 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'entitySid' => Values::array_get($payload, 'entity_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'status' => Values::array_get($payload, 'status'),
- 'type' => Values::array_get($payload, 'type'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'identity' => $identity,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Authy\V1\Service\Entity\FactorContext Context for this
- * FactorInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FactorContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the FactorInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a FactorInstance
- *
- * @return FactorInstance Fetched FactorInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the FactorInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FactorInstance Updated FactorInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the challenges
- *
- * @return \Twilio\Rest\Authy\V1\Service\Entity\Factor\ChallengeList
- */
- protected function getChallenges() {
- return $this->proxy()->challenges;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.FactorInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorList.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorList.php
deleted file mode 100644
index 9f37a6d..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorList.php
+++ /dev/null
@@ -1,182 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'identity' => $identity, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities/' . rawurlencode($identity) . '/Factors';
- }
-
- /**
- * Create a new FactorInstance
- *
- * @param string $binding A unique binding for this Factor
- * @param string $factorType The Type of this Factor
- * @param string $friendlyName The friendly name of this Factor
- * @param array|Options $options Optional Arguments
- * @return FactorInstance Newly created FactorInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($binding, $factorType, $friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Binding' => $binding,
- 'FactorType' => $factorType,
- 'FriendlyName' => $friendlyName,
- 'Config' => $options['config'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FactorInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Streams FactorInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FactorInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FactorInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FactorInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FactorInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FactorPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FactorInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FactorInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FactorPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a FactorContext
- *
- * @param string $sid A string that uniquely identifies this Factor.
- * @return \Twilio\Rest\Authy\V1\Service\Entity\FactorContext
- */
- public function getContext($sid) {
- return new FactorContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.FactorList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorOptions.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorOptions.php
deleted file mode 100644
index 3aeb700..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorOptions.php
+++ /dev/null
@@ -1,107 +0,0 @@
-options['config'] = $config;
- }
-
- /**
- * Optional configuration for the Factor
- *
- * @param string $config Factor configuration
- * @return $this Fluent Builder
- */
- public function setConfig($config) {
- $this->options['config'] = $config;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Authy.V1.CreateFactorOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateFactorOptions extends Options {
- /**
- * @param string $authPayload Optional payload to verify the Factor for the
- * first time
- */
- public function __construct($authPayload = Values::NONE) {
- $this->options['authPayload'] = $authPayload;
- }
-
- /**
- * The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code.
- *
- * @param string $authPayload Optional payload to verify the Factor for the
- * first time
- * @return $this Fluent Builder
- */
- public function setAuthPayload($authPayload) {
- $this->options['authPayload'] = $authPayload;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Authy.V1.UpdateFactorOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorPage.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorPage.php
deleted file mode 100644
index 9255ed7..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/Entity/FactorPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FactorInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.FactorPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityContext.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityContext.php
deleted file mode 100644
index a022a8a..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityContext.php
+++ /dev/null
@@ -1,139 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'identity' => $identity, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities/' . rawurlencode($identity) . '';
- }
-
- /**
- * Deletes the EntityInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a EntityInstance
- *
- * @return EntityInstance Fetched EntityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EntityInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Access the factors
- *
- * @return \Twilio\Rest\Authy\V1\Service\Entity\FactorList
- */
- protected function getFactors() {
- if (!$this->_factors) {
- $this->_factors = new FactorList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- return $this->_factors;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.EntityContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityInstance.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityInstance.php
deleted file mode 100644
index c3887bf..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Authy\V1\Service\EntityContext Context for this
- * EntityInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new EntityContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the EntityInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a EntityInstance
- *
- * @return EntityInstance Fetched EntityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the factors
- *
- * @return \Twilio\Rest\Authy\V1\Service\Entity\FactorList
- */
- protected function getFactors() {
- return $this->proxy()->factors;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.EntityInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityList.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityList.php
deleted file mode 100644
index ae42660..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityList.php
+++ /dev/null
@@ -1,160 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities';
- }
-
- /**
- * Create a new EntityInstance
- *
- * @param string $identity Unique identity of the Entity
- * @return EntityInstance Newly created EntityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity) {
- $data = Values::of(array('Identity' => $identity, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new EntityInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams EntityInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads EntityInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return EntityInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of EntityInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of EntityInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EntityPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of EntityInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of EntityInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new EntityPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a EntityContext
- *
- * @param string $identity Unique identity of the Entity
- * @return \Twilio\Rest\Authy\V1\Service\EntityContext
- */
- public function getContext($identity) {
- return new EntityContext($this->version, $this->solution['serviceSid'], $identity);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.EntityList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityPage.php b/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityPage.php
deleted file mode 100644
index 1d3cacb..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/Service/EntityPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new EntityInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.EntityPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Authy/V1/ServiceContext.php
deleted file mode 100644
index c06fb69..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceContext.php
+++ /dev/null
@@ -1,152 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the entities
- *
- * @return \Twilio\Rest\Authy\V1\Service\EntityList
- */
- protected function getEntities() {
- if (!$this->_entities) {
- $this->_entities = new EntityList($this->version, $this->solution['sid']);
- }
-
- return $this->_entities;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Authy/V1/ServiceInstance.php
deleted file mode 100644
index 830ebce..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceInstance.php
+++ /dev/null
@@ -1,144 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Authy\V1\ServiceContext Context for this ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the entities
- *
- * @return \Twilio\Rest\Authy\V1\Service\EntityList
- */
- protected function getEntities() {
- return $this->proxy()->entities;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Authy.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Authy/V1/ServiceList.php
deleted file mode 100644
index 895804e..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceList.php
+++ /dev/null
@@ -1,159 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid A string that uniquely identifies this Service.
- * @return \Twilio\Rest\Authy\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Authy/V1/ServiceOptions.php
deleted file mode 100644
index 2ec14f3..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/ServiceOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A human readable description of this resource, up to 64 characters.
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Authy.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Authy/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Authy/V1/ServicePage.php
deleted file mode 100644
index 51bbf79..0000000
--- a/public/twilio-php/Twilio/Rest/Authy/V1/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Authy.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot.php b/public/twilio-php/Twilio/Rest/Autopilot.php
deleted file mode 100644
index 37ed998..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot.php
+++ /dev/null
@@ -1,104 +0,0 @@
-baseUrl = 'https://autopilot.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Autopilot\V1 Version v1 of autopilot
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Autopilot\V1\AssistantList
- */
- protected function getAssistants() {
- return $this->v1->assistants;
- }
-
- /**
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\AssistantContext
- */
- protected function contextAssistants($sid) {
- return $this->v1->assistants($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1.php b/public/twilio-php/Twilio/Rest/Autopilot/V1.php
deleted file mode 100644
index bf64f59..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Autopilot\V1\AssistantList
- */
- protected function getAssistants() {
- if (!$this->_assistants) {
- $this->_assistants = new AssistantList($this);
- }
- return $this->_assistants;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsContext.php
deleted file mode 100644
index 6b66977..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsContext.php
+++ /dev/null
@@ -1,90 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Defaults';
- }
-
- /**
- * Fetch a DefaultsInstance
- *
- * @return DefaultsInstance Fetched DefaultsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DefaultsInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Update the DefaultsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DefaultsInstance Updated DefaultsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Defaults' => Serialize::jsonObject($options['defaults']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DefaultsInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.DefaultsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsInstance.php
deleted file mode 100644
index 6a715d7..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsInstance.php
+++ /dev/null
@@ -1,117 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DefaultsContext Context for this
- * DefaultsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DefaultsContext($this->version, $this->solution['assistantSid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DefaultsInstance
- *
- * @return DefaultsInstance Fetched DefaultsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the DefaultsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DefaultsInstance Updated DefaultsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.DefaultsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsList.php
deleted file mode 100644
index 79eace4..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a DefaultsContext
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DefaultsContext
- */
- public function getContext() {
- return new DefaultsContext($this->version, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.DefaultsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.php
deleted file mode 100644
index 44fc925..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['defaults'] = $defaults;
- }
-
- /**
- * The defaults
- *
- * @param array $defaults The defaults
- * @return $this Fluent Builder
- */
- public function setDefaults($defaults) {
- $this->options['defaults'] = $defaults;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateDefaultsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsPage.php
deleted file mode 100644
index f668bbd..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DefaultsPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DefaultsInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.DefaultsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueContext.php
deleted file mode 100644
index 52a1630..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Dialogues/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a DialogueInstance
- *
- * @return DialogueInstance Fetched DialogueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DialogueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.DialogueContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueInstance.php
deleted file mode 100644
index 1f655d7..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueInstance.php
+++ /dev/null
@@ -1,112 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'data' => Values::array_get($payload, 'data'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DialogueContext Context for this
- * DialogueInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DialogueContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DialogueInstance
- *
- * @return DialogueInstance Fetched DialogueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.DialogueInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueList.php
deleted file mode 100644
index 63752ed..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialogueList.php
+++ /dev/null
@@ -1,51 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a DialogueContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DialogueContext
- */
- public function getContext($sid) {
- return new DialogueContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.DialogueList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialoguePage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialoguePage.php
deleted file mode 100644
index b6088a8..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/DialoguePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DialogueInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.DialoguePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueContext.php
deleted file mode 100644
index c2a52c9..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueContext.php
+++ /dev/null
@@ -1,90 +0,0 @@
-solution = array(
- 'assistantSid' => $assistantSid,
- 'fieldTypeSid' => $fieldTypeSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes/' . rawurlencode($fieldTypeSid) . '/FieldValues/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FieldValueInstance
- *
- * @return FieldValueInstance Fetched FieldValueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldValueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FieldValueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.FieldValueContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueInstance.php
deleted file mode 100644
index 7ad870a..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'fieldTypeSid' => Values::array_get($payload, 'field_type_sid'),
- 'language' => Values::array_get($payload, 'language'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'value' => Values::array_get($payload, 'value'),
- 'url' => Values::array_get($payload, 'url'),
- 'synonymOf' => Values::array_get($payload, 'synonym_of'),
- );
-
- $this->solution = array(
- 'assistantSid' => $assistantSid,
- 'fieldTypeSid' => $fieldTypeSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldType\FieldValueContext Context for this FieldValueInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FieldValueContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FieldValueInstance
- *
- * @return FieldValueInstance Fetched FieldValueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FieldValueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.FieldValueInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php
deleted file mode 100644
index 3715b01..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php
+++ /dev/null
@@ -1,191 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'fieldTypeSid' => $fieldTypeSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes/' . rawurlencode($fieldTypeSid) . '/FieldValues';
- }
-
- /**
- * Streams FieldValueInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FieldValueInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FieldValueInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FieldValueInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FieldValueInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Language' => $options['language'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldValuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FieldValueInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FieldValueInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FieldValuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FieldValueInstance
- *
- * @param string $language An ISO language-country string that specifies the
- * language used for this field value. For example:
- * en-US
- * @param string $value A user-provided string that uniquely identifies this
- * resource as an alternative to the sid. Unique up to 64
- * characters long.
- * @param array|Options $options Optional Arguments
- * @return FieldValueInstance Newly created FieldValueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($language, $value, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $language,
- 'Value' => $value,
- 'SynonymOf' => $options['synonymOf'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldValueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid']
- );
- }
-
- /**
- * Constructs a FieldValueContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldType\FieldValueContext
- */
- public function getContext($sid) {
- return new FieldValueContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.FieldValueList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.php
deleted file mode 100644
index a92ed12..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.php
+++ /dev/null
@@ -1,113 +0,0 @@
-options['language'] = $language;
- }
-
- /**
- * An ISO language-country string that specifies the language used for this field value. For example: en-US
- *
- * @param string $language An ISO language-country string that specifies the
- * language used for this field value. For example:
- * en-US
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.ReadFieldValueOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateFieldValueOptions extends Options {
- /**
- * @param string $synonymOf A string value that indicates which word this field
- * value is a synonym of.
- */
- public function __construct($synonymOf = Values::NONE) {
- $this->options['synonymOf'] = $synonymOf;
- }
-
- /**
- * A string value that indicates which word this field value is a synonym of.
- *
- * @param string $synonymOf A string value that indicates which word this field
- * value is a synonym of.
- * @return $this Fluent Builder
- */
- public function setSynonymOf($synonymOf) {
- $this->options['synonymOf'] = $synonymOf;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateFieldValueOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValuePage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValuePage.php
deleted file mode 100644
index 749b9bf..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValuePage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FieldValueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.FieldValuePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeContext.php
deleted file mode 100644
index 1416096..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeContext.php
+++ /dev/null
@@ -1,171 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FieldTypeInstance
- *
- * @return FieldTypeInstance Fetched FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldTypeInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the FieldTypeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FieldTypeInstance Updated FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldTypeInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FieldTypeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the fieldValues
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldType\FieldValueList
- */
- protected function getFieldValues() {
- if (!$this->_fieldValues) {
- $this->_fieldValues = new FieldValueList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_fieldValues;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.FieldTypeContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeInstance.php
deleted file mode 100644
index 78461c5..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeInstance.php
+++ /dev/null
@@ -1,156 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'links' => Values::array_get($payload, 'links'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldTypeContext Context for
- * this
- * FieldTypeInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FieldTypeContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FieldTypeInstance
- *
- * @return FieldTypeInstance Fetched FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the FieldTypeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FieldTypeInstance Updated FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the FieldTypeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the fieldValues
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldType\FieldValueList
- */
- protected function getFieldValues() {
- return $this->proxy()->fieldValues;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.FieldTypeInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeList.php
deleted file mode 100644
index 2e7260b..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes';
- }
-
- /**
- * Streams FieldTypeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FieldTypeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FieldTypeInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FieldTypeInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FieldTypeInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldTypePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FieldTypeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FieldTypeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FieldTypePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FieldTypeInstance
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param array|Options $options Optional Arguments
- * @return FieldTypeInstance Newly created FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($uniqueName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $uniqueName, 'FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldTypeInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a FieldTypeContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldTypeContext
- */
- public function getContext($sid) {
- return new FieldTypeContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.FieldTypeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.php
deleted file mode 100644
index 3a3d0f9..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.php
+++ /dev/null
@@ -1,136 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can be up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateFieldTypeOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateFieldTypeOptions extends Options {
- /**
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can be up to 255
- * characters long.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can be up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateFieldTypeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypePage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypePage.php
deleted file mode 100644
index 18cc3e1..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/FieldTypePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FieldTypeInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.FieldTypePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildContext.php
deleted file mode 100644
index 9837e78..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/ModelBuilds/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ModelBuildInstance
- *
- * @return ModelBuildInstance Fetched ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ModelBuildInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ModelBuildInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ModelBuildInstance Updated ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ModelBuildInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ModelBuildInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.ModelBuildContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildInstance.php
deleted file mode 100644
index f0332c2..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- 'buildDuration' => Values::array_get($payload, 'build_duration'),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\ModelBuildContext Context for
- * this
- * ModelBuildInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ModelBuildContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ModelBuildInstance
- *
- * @return ModelBuildInstance Fetched ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ModelBuildInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ModelBuildInstance Updated ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the ModelBuildInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.ModelBuildInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildList.php
deleted file mode 100644
index c423f21..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/ModelBuilds';
- }
-
- /**
- * Streams ModelBuildInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ModelBuildInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ModelBuildInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ModelBuildInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ModelBuildInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ModelBuildPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ModelBuildInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ModelBuildInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ModelBuildPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new ModelBuildInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ModelBuildInstance Newly created ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'StatusCallback' => $options['statusCallback'],
- 'UniqueName' => $options['uniqueName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ModelBuildInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a ModelBuildContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\Assistant\ModelBuildContext
- */
- public function getContext($sid) {
- return new ModelBuildContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.ModelBuildList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.php
deleted file mode 100644
index c58f797..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.php
+++ /dev/null
@@ -1,130 +0,0 @@
-options['statusCallback'] = $statusCallback;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * The status_callback
- *
- * @param string $statusCallback The status_callback
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long. For example: v0.1
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateModelBuildOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateModelBuildOptions extends Options {
- /**
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long. For example: v0.1
- */
- public function __construct($uniqueName = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long. For example: v0.1
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateModelBuildOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildPage.php
deleted file mode 100644
index 40dadc8..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ModelBuildInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.ModelBuildPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryContext.php
deleted file mode 100644
index 95a1d54..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Queries/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a QueryInstance
- *
- * @return QueryInstance Fetched QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new QueryInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the QueryInstance
- *
- * @param array|Options $options Optional Arguments
- * @return QueryInstance Updated QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('SampleSid' => $options['sampleSid'], 'Status' => $options['status'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new QueryInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the QueryInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.QueryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryInstance.php
deleted file mode 100644
index 7dd6fd4..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'results' => Values::array_get($payload, 'results'),
- 'language' => Values::array_get($payload, 'language'),
- 'modelBuildSid' => Values::array_get($payload, 'model_build_sid'),
- 'query' => Values::array_get($payload, 'query'),
- 'sampleSid' => Values::array_get($payload, 'sample_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'url' => Values::array_get($payload, 'url'),
- 'sourceChannel' => Values::array_get($payload, 'source_channel'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\QueryContext Context for this
- * QueryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new QueryContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a QueryInstance
- *
- * @return QueryInstance Fetched QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the QueryInstance
- *
- * @param array|Options $options Optional Arguments
- * @return QueryInstance Updated QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the QueryInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.QueryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryList.php
deleted file mode 100644
index b8e9153..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Queries';
- }
-
- /**
- * Streams QueryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads QueryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return QueryInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of QueryInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of QueryInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Language' => $options['language'],
- 'ModelBuild' => $options['modelBuild'],
- 'Status' => $options['status'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new QueryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of QueryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of QueryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new QueryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new QueryInstance
- *
- * @param string $language An [ISO language-country
- * string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this query. For example: `en-US`.
- * @param string $query A user-provided string that uniquely identifies this
- * resource as an alternative to the sid. It can be up to
- * 2048 characters long.
- * @param array|Options $options Optional Arguments
- * @return QueryInstance Newly created QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($language, $query, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $language,
- 'Query' => $query,
- 'Tasks' => $options['tasks'],
- 'ModelBuild' => $options['modelBuild'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new QueryInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a QueryContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\Assistant\QueryContext
- */
- public function getContext($sid) {
- return new QueryContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.QueryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.php
deleted file mode 100644
index 22153d3..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.php
+++ /dev/null
@@ -1,230 +0,0 @@
-options['language'] = $language;
- $this->options['modelBuild'] = $modelBuild;
- $this->options['status'] = $status;
- }
-
- /**
- * An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this query. For example: `en-US`.
- *
- * @param string $language An [ISO language-country
- * string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this query. For example: `en-US`.
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * The Sid or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
- *
- * @param string $modelBuild The Sid or unique name of the [Model
- * Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
- * @return $this Fluent Builder
- */
- public function setModelBuild($modelBuild) {
- $this->options['modelBuild'] = $modelBuild;
- return $this;
- }
-
- /**
- * A string that described the query status. The values can be: `pending_review`, `reviewed`, `discarded`
- *
- * @param string $status A string that described the query status. The values
- * can be: `pending_review`, `reviewed`, `discarded`
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.ReadQueryOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateQueryOptions extends Options {
- /**
- * @param string $tasks Constraints the query to a set of tasks. Useful when
- * you need to constrain the paths the user can take.
- * Tasks should be comma separated task-unique-name-1,
- * task-unique-name-2
- * @param string $modelBuild The Sid or unique name of the [Model
- * Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
- */
- public function __construct($tasks = Values::NONE, $modelBuild = Values::NONE) {
- $this->options['tasks'] = $tasks;
- $this->options['modelBuild'] = $modelBuild;
- }
-
- /**
- * Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2*
- *
- * @param string $tasks Constraints the query to a set of tasks. Useful when
- * you need to constrain the paths the user can take.
- * Tasks should be comma separated task-unique-name-1,
- * task-unique-name-2
- * @return $this Fluent Builder
- */
- public function setTasks($tasks) {
- $this->options['tasks'] = $tasks;
- return $this;
- }
-
- /**
- * The Sid or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
- *
- * @param string $modelBuild The Sid or unique name of the [Model
- * Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
- * @return $this Fluent Builder
- */
- public function setModelBuild($modelBuild) {
- $this->options['modelBuild'] = $modelBuild;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateQueryOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateQueryOptions extends Options {
- /**
- * @param string $sampleSid An optional reference to the Sample created from
- * this query.
- * @param string $status A string that described the query status. The values
- * can be: `pending_review`, `reviewed`, `discarded`
- */
- public function __construct($sampleSid = Values::NONE, $status = Values::NONE) {
- $this->options['sampleSid'] = $sampleSid;
- $this->options['status'] = $status;
- }
-
- /**
- * An optional reference to the Sample created from this query.
- *
- * @param string $sampleSid An optional reference to the Sample created from
- * this query.
- * @return $this Fluent Builder
- */
- public function setSampleSid($sampleSid) {
- $this->options['sampleSid'] = $sampleSid;
- return $this;
- }
-
- /**
- * A string that described the query status. The values can be: `pending_review`, `reviewed`, `discarded`
- *
- * @param string $status A string that described the query status. The values
- * can be: `pending_review`, `reviewed`, `discarded`
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateQueryOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryPage.php
deleted file mode 100644
index 89118bf..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/QueryPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new QueryInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.QueryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetContext.php
deleted file mode 100644
index 8ca386f..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetContext.php
+++ /dev/null
@@ -1,90 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/StyleSheet';
- }
-
- /**
- * Fetch a StyleSheetInstance
- *
- * @return StyleSheetInstance Fetched StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new StyleSheetInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Update the StyleSheetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return StyleSheetInstance Updated StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('StyleSheet' => Serialize::jsonObject($options['styleSheet']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new StyleSheetInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.StyleSheetContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetInstance.php
deleted file mode 100644
index 5f0e373..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetInstance.php
+++ /dev/null
@@ -1,118 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\StyleSheetContext Context for
- * this
- * StyleSheetInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new StyleSheetContext($this->version, $this->solution['assistantSid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a StyleSheetInstance
- *
- * @return StyleSheetInstance Fetched StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the StyleSheetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return StyleSheetInstance Updated StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.StyleSheetInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetList.php
deleted file mode 100644
index 924062f..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a StyleSheetContext
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\StyleSheetContext
- */
- public function getContext() {
- return new StyleSheetContext($this->version, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.StyleSheetList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.php
deleted file mode 100644
index 9ba92b5..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['styleSheet'] = $styleSheet;
- }
-
- /**
- * The JSON Style sheet string
- *
- * @param array $styleSheet The JSON Style sheet string
- * @return $this Fluent Builder
- */
- public function setStyleSheet($styleSheet) {
- $this->options['styleSheet'] = $styleSheet;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateStyleSheetOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetPage.php
deleted file mode 100644
index 371bbe4..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new StyleSheetInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.StyleSheetPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldContext.php
deleted file mode 100644
index 56ce7f1..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldContext.php
+++ /dev/null
@@ -1,85 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Fields/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FieldInstance
- *
- * @return FieldInstance Fetched FieldInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FieldInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.FieldContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldInstance.php
deleted file mode 100644
index f1e9b0b..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldInstance.php
+++ /dev/null
@@ -1,139 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'fieldType' => Values::array_get($payload, 'field_type'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'assistantSid' => $assistantSid,
- 'taskSid' => $taskSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldContext Context for
- * this
- * FieldInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FieldContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FieldInstance
- *
- * @return FieldInstance Fetched FieldInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FieldInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.FieldInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php
deleted file mode 100644
index d62b7c3..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldList.php
+++ /dev/null
@@ -1,177 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Fields';
- }
-
- /**
- * Streams FieldInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FieldInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FieldInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FieldInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FieldInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FieldInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FieldInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FieldPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FieldInstance
- *
- * @param string $fieldType The Field Type of this field. It can be either a
- * Built-in Field Type or the unique_name or sid of a
- * custom Field Type.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return FieldInstance Newly created FieldInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($fieldType, $uniqueName) {
- $data = Values::of(array('FieldType' => $fieldType, 'UniqueName' => $uniqueName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Constructs a FieldContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldContext
- */
- public function getContext($sid) {
- return new FieldContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.FieldList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldPage.php
deleted file mode 100644
index a33d631..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FieldInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.FieldPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleContext.php
deleted file mode 100644
index 4d22309..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Samples/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SampleInstance
- *
- * @return SampleInstance Fetched SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the SampleInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SampleInstance Updated SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $options['language'],
- 'TaggedText' => $options['taggedText'],
- 'SourceChannel' => $options['sourceChannel'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SampleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.SampleContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleInstance.php
deleted file mode 100644
index c580ad2..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleInstance.php
+++ /dev/null
@@ -1,153 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'language' => Values::array_get($payload, 'language'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taggedText' => Values::array_get($payload, 'tagged_text'),
- 'url' => Values::array_get($payload, 'url'),
- 'sourceChannel' => Values::array_get($payload, 'source_channel'),
- );
-
- $this->solution = array(
- 'assistantSid' => $assistantSid,
- 'taskSid' => $taskSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\SampleContext Context for
- * this
- * SampleInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SampleContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SampleInstance
- *
- * @return SampleInstance Fetched SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the SampleInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SampleInstance Updated SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the SampleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.SampleInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php
deleted file mode 100644
index 5347a4f..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php
+++ /dev/null
@@ -1,189 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Samples';
- }
-
- /**
- * Streams SampleInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SampleInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SampleInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SampleInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SampleInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Language' => $options['language'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SamplePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SampleInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SampleInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SamplePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new SampleInstance
- *
- * @param string $language An [ISO language-country
- * string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
- * @param string $taggedText The text example of how end-users may express this
- * task. The sample may contain [Field tag
- * blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
- * @param array|Options $options Optional Arguments
- * @return SampleInstance Newly created SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($language, $taggedText, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $language,
- 'TaggedText' => $taggedText,
- 'SourceChannel' => $options['sourceChannel'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Constructs a SampleContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\SampleContext
- */
- public function getContext($sid) {
- return new SampleContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.SampleList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.php
deleted file mode 100644
index 40f4663..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.php
+++ /dev/null
@@ -1,205 +0,0 @@
-options['language'] = $language;
- }
-
- /**
- * An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
- *
- * @param string $language An [ISO language-country
- * string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.ReadSampleOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateSampleOptions extends Options {
- /**
- * @param string $sourceChannel The communication channel from which the sample
- * was captured. It can be: voice, sms, chat,
- * alexa, google-assistant, or slack. If not
- * included, the value will be `null`
- */
- public function __construct($sourceChannel = Values::NONE) {
- $this->options['sourceChannel'] = $sourceChannel;
- }
-
- /**
- * The communication channel from which the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included, the value will be `null`
- *
- * @param string $sourceChannel The communication channel from which the sample
- * was captured. It can be: voice, sms, chat,
- * alexa, google-assistant, or slack. If not
- * included, the value will be `null`
- * @return $this Fluent Builder
- */
- public function setSourceChannel($sourceChannel) {
- $this->options['sourceChannel'] = $sourceChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateSampleOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSampleOptions extends Options {
- /**
- * @param string $language An [ISO language-country
- * string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
- * @param string $taggedText The text example of how end-users may express this
- * task. The sample may contain [Field tag
- * blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
- * @param string $sourceChannel The communication channel from which the sample
- * was captured. It can be: voice, sms, chat,
- * alexa, google-assistant, or slack. If not
- * included, the value will be `null`
- */
- public function __construct($language = Values::NONE, $taggedText = Values::NONE, $sourceChannel = Values::NONE) {
- $this->options['language'] = $language;
- $this->options['taggedText'] = $taggedText;
- $this->options['sourceChannel'] = $sourceChannel;
- }
-
- /**
- * An [ISO language-country string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
- *
- * @param string $language An [ISO language-country
- * string](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) that specifies the language used for this sample. For example: `en-US`.
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * The text example of how end-users may express this task. The sample may contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
- *
- * @param string $taggedText The text example of how end-users may express this
- * task. The sample may contain [Field tag
- * blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging).
- * @return $this Fluent Builder
- */
- public function setTaggedText($taggedText) {
- $this->options['taggedText'] = $taggedText;
- return $this;
- }
-
- /**
- * The communication channel from which the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included, the value will be `null`
- *
- * @param string $sourceChannel The communication channel from which the sample
- * was captured. It can be: voice, sms, chat,
- * alexa, google-assistant, or slack. If not
- * included, the value will be `null`
- * @return $this Fluent Builder
- */
- public function setSourceChannel($sourceChannel) {
- $this->options['sourceChannel'] = $sourceChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateSampleOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SamplePage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SamplePage.php
deleted file mode 100644
index 4ab5c2d..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/SamplePage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.SamplePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsContext.php
deleted file mode 100644
index 1a18a0e..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsContext.php
+++ /dev/null
@@ -1,101 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Actions';
- }
-
- /**
- * Fetch a TaskActionsInstance
- *
- * @return TaskActionsInstance Fetched TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Update the TaskActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskActionsInstance Updated TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Actions' => Serialize::jsonObject($options['actions']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.TaskActionsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsInstance.php
deleted file mode 100644
index 9f6d4c2..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsInstance.php
+++ /dev/null
@@ -1,125 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskActionsContext Context
- * for this
- * TaskActionsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskActionsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskActionsInstance
- *
- * @return TaskActionsInstance Fetched TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TaskActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskActionsInstance Updated TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.TaskActionsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsList.php
deleted file mode 100644
index b0d1d45..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsList.php
+++ /dev/null
@@ -1,55 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Constructs a TaskActionsContext
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskActionsContext
- */
- public function getContext() {
- return new TaskActionsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.TaskActionsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.php
deleted file mode 100644
index 494b833..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.php
+++ /dev/null
@@ -1,64 +0,0 @@
-options['actions'] = $actions;
- }
-
- /**
- * The JSON [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
- *
- * @param array $actions The JSON
- * [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant how to perform this task.
- * @return $this Fluent Builder
- */
- public function setActions($actions) {
- $this->options['actions'] = $actions;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateTaskActionsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsPage.php
deleted file mode 100644
index dfd157e..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.TaskActionsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsContext.php
deleted file mode 100644
index 847c7d1..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Statistics';
- }
-
- /**
- * Fetch a TaskStatisticsInstance
- *
- * @return TaskStatisticsInstance Fetched TaskStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.TaskStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsInstance.php
deleted file mode 100644
index d84107c..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsInstance.php
+++ /dev/null
@@ -1,113 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'samplesCount' => Values::array_get($payload, 'samples_count'),
- 'fieldsCount' => Values::array_get($payload, 'fields_count'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskStatisticsContext Context for this TaskStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskStatisticsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskStatisticsInstance
- *
- * @return TaskStatisticsInstance Fetched TaskStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.TaskStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsList.php
deleted file mode 100644
index c167436..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsList.php
+++ /dev/null
@@ -1,55 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Constructs a TaskStatisticsContext
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskStatisticsContext
- */
- public function getContext() {
- return new TaskStatisticsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.TaskStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsPage.php
deleted file mode 100644
index 662c356..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.TaskStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
deleted file mode 100644
index 60a50e3..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
+++ /dev/null
@@ -1,237 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a TaskInstance
- *
- * @return TaskInstance Fetched TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Updated TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Actions' => Serialize::jsonObject($options['actions']),
- 'ActionsUrl' => $options['actionsUrl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TaskInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the fields
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldList
- */
- protected function getFields() {
- if (!$this->_fields) {
- $this->_fields = new FieldList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_fields;
- }
-
- /**
- * Access the samples
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\SampleList
- */
- protected function getSamples() {
- if (!$this->_samples) {
- $this->_samples = new SampleList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_samples;
- }
-
- /**
- * Access the taskActions
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskActionsList
- */
- protected function getTaskActions() {
- if (!$this->_taskActions) {
- $this->_taskActions = new TaskActionsList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_taskActions;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskStatisticsList
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new TaskStatisticsList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_statistics;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.TaskContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskInstance.php
deleted file mode 100644
index 0d4fabc..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskInstance.php
+++ /dev/null
@@ -1,187 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'links' => Values::array_get($payload, 'links'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'actionsUrl' => Values::array_get($payload, 'actions_url'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\TaskContext Context for this
- * TaskInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskInstance
- *
- * @return TaskInstance Fetched TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Updated TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the TaskInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the fields
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldList
- */
- protected function getFields() {
- return $this->proxy()->fields;
- }
-
- /**
- * Access the samples
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\SampleList
- */
- protected function getSamples() {
- return $this->proxy()->samples;
- }
-
- /**
- * Access the taskActions
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskActionsList
- */
- protected function getTaskActions() {
- return $this->proxy()->taskActions;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskStatisticsList
- */
- protected function getStatistics() {
- return $this->proxy()->statistics;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.TaskInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskList.php
deleted file mode 100644
index 75f0c9b..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks';
- }
-
- /**
- * Streams TaskInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TaskInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TaskInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TaskInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TaskInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TaskInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TaskInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TaskPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new TaskInstance
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Newly created TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($uniqueName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $uniqueName,
- 'FriendlyName' => $options['friendlyName'],
- 'Actions' => Serialize::jsonObject($options['actions']),
- 'ActionsUrl' => $options['actionsUrl'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a TaskContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\Assistant\TaskContext
- */
- public function getContext($sid) {
- return new TaskContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.TaskList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.php
deleted file mode 100644
index 5fd3666..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.php
+++ /dev/null
@@ -1,210 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['actions'] = $actions;
- $this->options['actionsUrl'] = $actionsUrl;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can be up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
- *
- * @param array $actions A user-provided JSON object encoded as a string to
- * specify the actions for this task. It is optional and
- * non-unique.
- * @return $this Fluent Builder
- */
- public function setActions($actions) {
- $this->options['actions'] = $actions;
- return $this;
- }
-
- /**
- * User-provided HTTP endpoint where the assistant can fetch actions.
- *
- * @param string $actionsUrl User-provided HTTP endpoint where the assistant
- * can fetch actions.
- * @return $this Fluent Builder
- */
- public function setActionsUrl($actionsUrl) {
- $this->options['actionsUrl'] = $actionsUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateTaskOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateTaskOptions extends Options {
- /**
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can be up to 255
- * characters long.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param array $actions A user-provided JSON object encoded as a string to
- * specify the actions for this task. It is optional and
- * non-unique.
- * @param string $actionsUrl User-provided HTTP endpoint where the assistant
- * can fetch actions.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE, $actions = Values::NONE, $actionsUrl = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['actions'] = $actions;
- $this->options['actionsUrl'] = $actionsUrl;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can be up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can be up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. You can use the unique name in the URL path when addressing this resource. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
- *
- * @param array $actions A user-provided JSON object encoded as a string to
- * specify the actions for this task. It is optional and
- * non-unique.
- * @return $this Fluent Builder
- */
- public function setActions($actions) {
- $this->options['actions'] = $actions;
- return $this;
- }
-
- /**
- * User-provided HTTP endpoint where the assistant can fetch actions.
- *
- * @param string $actionsUrl User-provided HTTP endpoint where the assistant
- * can fetch actions.
- * @return $this Fluent Builder
- */
- public function setActionsUrl($actionsUrl) {
- $this->options['actionsUrl'] = $actionsUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateTaskOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskPage.php
deleted file mode 100644
index a76e1ac..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/Assistant/TaskPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.TaskPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantContext.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantContext.php
deleted file mode 100644
index 117d0be..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantContext.php
+++ /dev/null
@@ -1,264 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AssistantInstance
- *
- * @return AssistantInstance Fetched AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssistantInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the AssistantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInstance Updated AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'LogQueries' => Serialize::booleanToString($options['logQueries']),
- 'UniqueName' => $options['uniqueName'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'CallbackEvents' => $options['callbackEvents'],
- 'StyleSheet' => Serialize::jsonObject($options['styleSheet']),
- 'Defaults' => Serialize::jsonObject($options['defaults']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssistantInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the AssistantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the fieldTypes
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldTypeList
- */
- protected function getFieldTypes() {
- if (!$this->_fieldTypes) {
- $this->_fieldTypes = new FieldTypeList($this->version, $this->solution['sid']);
- }
-
- return $this->_fieldTypes;
- }
-
- /**
- * Access the tasks
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\TaskList
- */
- protected function getTasks() {
- if (!$this->_tasks) {
- $this->_tasks = new TaskList($this->version, $this->solution['sid']);
- }
-
- return $this->_tasks;
- }
-
- /**
- * Access the modelBuilds
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\ModelBuildList
- */
- protected function getModelBuilds() {
- if (!$this->_modelBuilds) {
- $this->_modelBuilds = new ModelBuildList($this->version, $this->solution['sid']);
- }
-
- return $this->_modelBuilds;
- }
-
- /**
- * Access the queries
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\QueryList
- */
- protected function getQueries() {
- if (!$this->_queries) {
- $this->_queries = new QueryList($this->version, $this->solution['sid']);
- }
-
- return $this->_queries;
- }
-
- /**
- * Access the styleSheet
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\StyleSheetList
- */
- protected function getStyleSheet() {
- if (!$this->_styleSheet) {
- $this->_styleSheet = new StyleSheetList($this->version, $this->solution['sid']);
- }
-
- return $this->_styleSheet;
- }
-
- /**
- * Access the defaults
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DefaultsList
- */
- protected function getDefaults() {
- if (!$this->_defaults) {
- $this->_defaults = new DefaultsList($this->version, $this->solution['sid']);
- }
-
- return $this->_defaults;
- }
-
- /**
- * Access the dialogues
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DialogueList
- */
- protected function getDialogues() {
- if (!$this->_dialogues) {
- $this->_dialogues = new DialogueList($this->version, $this->solution['sid']);
- }
-
- return $this->_dialogues;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.AssistantContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantInstance.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantInstance.php
deleted file mode 100644
index 35fc8af..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantInstance.php
+++ /dev/null
@@ -1,216 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'latestModelBuildSid' => Values::array_get($payload, 'latest_model_build_sid'),
- 'links' => Values::array_get($payload, 'links'),
- 'logQueries' => Values::array_get($payload, 'log_queries'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- 'callbackUrl' => Values::array_get($payload, 'callback_url'),
- 'callbackEvents' => Values::array_get($payload, 'callback_events'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Autopilot\V1\AssistantContext Context for this
- * AssistantInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AssistantContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AssistantInstance
- *
- * @return AssistantInstance Fetched AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AssistantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInstance Updated AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the AssistantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the fieldTypes
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\FieldTypeList
- */
- protected function getFieldTypes() {
- return $this->proxy()->fieldTypes;
- }
-
- /**
- * Access the tasks
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\TaskList
- */
- protected function getTasks() {
- return $this->proxy()->tasks;
- }
-
- /**
- * Access the modelBuilds
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\ModelBuildList
- */
- protected function getModelBuilds() {
- return $this->proxy()->modelBuilds;
- }
-
- /**
- * Access the queries
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\QueryList
- */
- protected function getQueries() {
- return $this->proxy()->queries;
- }
-
- /**
- * Access the styleSheet
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\StyleSheetList
- */
- protected function getStyleSheet() {
- return $this->proxy()->styleSheet;
- }
-
- /**
- * Access the defaults
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DefaultsList
- */
- protected function getDefaults() {
- return $this->proxy()->defaults;
- }
-
- /**
- * Access the dialogues
- *
- * @return \Twilio\Rest\Autopilot\V1\Assistant\DialogueList
- */
- protected function getDialogues() {
- return $this->proxy()->dialogues;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Autopilot.V1.AssistantInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantList.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantList.php
deleted file mode 100644
index d72d08e..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array();
-
- $this->uri = '/Assistants';
- }
-
- /**
- * Streams AssistantInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AssistantInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AssistantInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AssistantInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AssistantInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssistantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AssistantInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AssistantInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AssistantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new AssistantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInstance Newly created AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'LogQueries' => Serialize::booleanToString($options['logQueries']),
- 'UniqueName' => $options['uniqueName'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'CallbackEvents' => $options['callbackEvents'],
- 'StyleSheet' => Serialize::jsonObject($options['styleSheet']),
- 'Defaults' => Serialize::jsonObject($options['defaults']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssistantInstance($this->version, $payload);
- }
-
- /**
- * Constructs a AssistantContext
- *
- * @param string $sid A 34-character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Autopilot\V1\AssistantContext
- */
- public function getContext($sid) {
- return new AssistantContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.AssistantList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantOptions.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantOptions.php
deleted file mode 100644
index d974c6c..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantOptions.php
+++ /dev/null
@@ -1,338 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['logQueries'] = $logQueries;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['callbackEvents'] = $callbackEvents;
- $this->options['styleSheet'] = $styleSheet;
- $this->options['defaults'] = $defaults;
- }
-
- /**
- * A text description for the Assistant. It is non-unique and can be up to 255 characters long.
- *
- * @param string $friendlyName A text description for the Assistant. It is
- * non-unique and can be up to 255 characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
- *
- * @param boolean $logQueries A boolean that specifies whether queries should
- * be logged for 30 days past training. If `false`,
- * no queries will be stored. If `true`, queries
- * will be stored for 30 days and deleted
- * thereafter. Defaults to `true` if no value is
- * provided.
- * @return $this Fluent Builder
- */
- public function setLogQueries($logQueries) {
- $this->options['logQueries'] = $logQueries;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. You can use the unique name in the URL path when addressing this resource. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The callback_url
- *
- * @param string $callbackUrl The callback_url
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * A space-separated list of callback events that will trigger callbacks
- *
- * @param string $callbackEvents A space-separated list of callback events that
- * will trigger callbacks
- * @return $this Fluent Builder
- */
- public function setCallbackEvents($callbackEvents) {
- $this->options['callbackEvents'] = $callbackEvents;
- return $this;
- }
-
- /**
- * A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
- *
- * @param array $styleSheet A JSON object that defines the assistant [style
- * sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
- * @return $this Fluent Builder
- */
- public function setStyleSheet($styleSheet) {
- $this->options['styleSheet'] = $styleSheet;
- return $this;
- }
-
- /**
- * A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initation actions and fallback tasks.
- *
- * @param array $defaults A JSON object that defines the assistant's [default
- * tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
- * @return $this Fluent Builder
- */
- public function setDefaults($defaults) {
- $this->options['defaults'] = $defaults;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.CreateAssistantOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateAssistantOptions extends Options {
- /**
- * @param string $friendlyName A text description for the Assistant. It is
- * non-unique and can be up to 255 characters long.
- * @param boolean $logQueries A boolean that specifies whether queries should
- * be logged for 30 days past training. If `false`,
- * no queries will be stored. If `true`, queries
- * will be stored for 30 days and deleted
- * thereafter. Defaults to `true` if no value is
- * provided.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param string $callbackUrl The callback_url
- * @param string $callbackEvents A space-separated list of callback events that
- * will trigger callbacks
- * @param array $styleSheet A JSON object that defines the assistant [style
- * sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
- * @param array $defaults A JSON object that defines the assistant's [default
- * tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
- */
- public function __construct($friendlyName = Values::NONE, $logQueries = Values::NONE, $uniqueName = Values::NONE, $callbackUrl = Values::NONE, $callbackEvents = Values::NONE, $styleSheet = Values::NONE, $defaults = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['logQueries'] = $logQueries;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['callbackEvents'] = $callbackEvents;
- $this->options['styleSheet'] = $styleSheet;
- $this->options['defaults'] = $defaults;
- }
-
- /**
- * A text description for the Assistant. It is non-unique and can be up to 255 characters long.
- *
- * @param string $friendlyName A text description for the Assistant. It is
- * non-unique and can be up to 255 characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A boolean that specifies whether queries should be logged for 30 days past training. If `false`, no queries will be stored. If `true`, queries will be stored for 30 days and deleted thereafter. Defaults to `true` if no value is provided.
- *
- * @param boolean $logQueries A boolean that specifies whether queries should
- * be logged for 30 days past training. If `false`,
- * no queries will be stored. If `true`, queries
- * will be stored for 30 days and deleted
- * thereafter. Defaults to `true` if no value is
- * provided.
- * @return $this Fluent Builder
- */
- public function setLogQueries($logQueries) {
- $this->options['logQueries'] = $logQueries;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. You can use the unique name in the URL path when addressing this resource. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The callback_url
- *
- * @param string $callbackUrl The callback_url
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * A space-separated list of callback events that will trigger callbacks
- *
- * @param string $callbackEvents A space-separated list of callback events that
- * will trigger callbacks
- * @return $this Fluent Builder
- */
- public function setCallbackEvents($callbackEvents) {
- $this->options['callbackEvents'] = $callbackEvents;
- return $this;
- }
-
- /**
- * A JSON object that defines the assistant [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
- *
- * @param array $styleSheet A JSON object that defines the assistant [style
- * sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet)
- * @return $this Fluent Builder
- */
- public function setStyleSheet($styleSheet) {
- $this->options['styleSheet'] = $styleSheet;
- return $this;
- }
-
- /**
- * A JSON object that defines the assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initation actions and fallback tasks.
- *
- * @param array $defaults A JSON object that defines the assistant's [default
- * tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios
- * @return $this Fluent Builder
- */
- public function setDefaults($defaults) {
- $this->options['defaults'] = $defaults;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Autopilot.V1.UpdateAssistantOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantPage.php b/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantPage.php
deleted file mode 100644
index 7aa5e74..0000000
--- a/public/twilio-php/Twilio/Rest/Autopilot/V1/AssistantPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AssistantInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Autopilot.V1.AssistantPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat.php b/public/twilio-php/Twilio/Rest/Chat.php
deleted file mode 100644
index 1a139df..0000000
--- a/public/twilio-php/Twilio/Rest/Chat.php
+++ /dev/null
@@ -1,133 +0,0 @@
-baseUrl = 'https://chat.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Chat\V1 Version v1 of chat
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * @return \Twilio\Rest\Chat\V2 Version v2 of chat
- */
- protected function getV2() {
- if (!$this->_v2) {
- $this->_v2 = new V2($this);
- }
- return $this->_v2;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Chat\V2\CredentialList
- */
- protected function getCredentials() {
- return $this->v2->credentials;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\CredentialContext
- */
- protected function contextCredentials($sid) {
- return $this->v2->credentials($sid);
- }
-
- /**
- * @return \Twilio\Rest\Chat\V2\ServiceList
- */
- protected function getServices() {
- return $this->v2->services;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v2->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1.php b/public/twilio-php/Twilio/Rest/Chat/V1.php
deleted file mode 100644
index bda0389..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Chat\V1\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList($this);
- }
- return $this->_credentials;
- }
-
- /**
- * @return \Twilio\Rest\Chat\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/CredentialContext.php
deleted file mode 100644
index a08df26..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialContext.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.CredentialContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/CredentialInstance.php
deleted file mode 100644
index 6f00c05..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialInstance.php
+++ /dev/null
@@ -1,134 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'sandbox' => Values::array_get($payload, 'sandbox'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\CredentialContext Context for this
- * CredentialInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.CredentialInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialList.php b/public/twilio-php/Twilio/Rest/Chat/V1/CredentialList.php
deleted file mode 100644
index 3381ea6..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialList.php
+++ /dev/null
@@ -1,169 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials';
- }
-
- /**
- * Streams CredentialInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialInstance
- *
- * @param string $type Credential type, one of "gcm" or "apn"
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Newly created CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CredentialContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\CredentialContext
- */
- public function getContext($sid) {
- return new CredentialContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/CredentialOptions.php
deleted file mode 100644
index 0ec11b0..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialOptions.php
+++ /dev/null
@@ -1,271 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * The secret
- *
- * @param string $secret The secret
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.CreateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCredentialOptions extends Options {
- /**
- * @param string $friendlyName Friendly name for stored credential
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @param string $secret The secret
- */
- public function __construct($friendlyName = Values::NONE, $certificate = Values::NONE, $privateKey = Values::NONE, $sandbox = Values::NONE, $apiKey = Values::NONE, $secret = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * The secret
- *
- * @param string $secret The secret
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.UpdateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialPage.php b/public/twilio-php/Twilio/Rest/Chat/V1/CredentialPage.php
deleted file mode 100644
index cd0920e..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/CredentialPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteContext.php
deleted file mode 100644
index 4f2dd8f..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.InviteContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteInstance.php
deleted file mode 100644
index 317eda1..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteInstance.php
+++ /dev/null
@@ -1,138 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\InviteContext Context for this
- * InviteInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.InviteInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteList.php
deleted file mode 100644
index f65e363..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites';
- }
-
- /**
- * Create a new InviteInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @param array|Options $options Optional Arguments
- * @return InviteInstance Newly created InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams InviteInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InviteInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InviteInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InviteInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InviteInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InviteContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\Service\Channel\InviteContext
- */
- public function getContext($sid) {
- return new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.InviteList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.php
deleted file mode 100644
index bd8f5fe..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.php
+++ /dev/null
@@ -1,104 +0,0 @@
-options['roleSid'] = $roleSid;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/v1/role) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.CreateInviteOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadInviteOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/v1/user) in this [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.ReadInviteOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InvitePage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InvitePage.php
deleted file mode 100644
index 4eb855d..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/InvitePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.InvitePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberContext.php
deleted file mode 100644
index 7d9b25b..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberContext.php
+++ /dev/null
@@ -1,113 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'LastConsumedMessageIndex' => $options['lastConsumedMessageIndex'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.MemberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberInstance.php
deleted file mode 100644
index 2b4ee26..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'lastConsumptionTimestamp' => Deserialize::dateTime(Values::array_get($payload, 'last_consumption_timestamp')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MemberContext Context for this
- * MemberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.MemberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberList.php
deleted file mode 100644
index 2da7b93..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members';
- }
-
- /**
- * Create a new MemberInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Newly created MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MemberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MemberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MemberInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MemberInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MemberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MemberContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MemberContext
- */
- public function getContext($sid) {
- return new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.MemberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.php
deleted file mode 100644
index 106a852..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.php
+++ /dev/null
@@ -1,167 +0,0 @@
-options['roleSid'] = $roleSid;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.CreateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMemberOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/v1/users) in this [Service](https://www.twilio.com/docs/api/chat/rest/v1/services). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.ReadMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMemberOptions extends Options {
- /**
- * @param string $roleSid The Role assigned to this member.
- * @param integer $lastConsumedMessageIndex An Integer representing index of
- * the last Message this Member has
- * read within this Channel
- */
- public function __construct($roleSid = Values::NONE, $lastConsumedMessageIndex = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An Integer representing index of the last [Message](https://www.twilio.com/docs/api/chat/rest/v1/messages) this Member has read within this [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channels)
- *
- * @param integer $lastConsumedMessageIndex An Integer representing index of
- * the last Message this Member has
- * read within this Channel
- * @return $this Fluent Builder
- */
- public function setLastConsumedMessageIndex($lastConsumedMessageIndex) {
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.UpdateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberPage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberPage.php
deleted file mode 100644
index 877d16a..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MemberPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.MemberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageContext.php
deleted file mode 100644
index cc3d16f..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageContext.php
+++ /dev/null
@@ -1,110 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Body' => $options['body'], 'Attributes' => $options['attributes'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.MessageContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageInstance.php
deleted file mode 100644
index 74dfda7..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageInstance.php
+++ /dev/null
@@ -1,156 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'wasEdited' => Values::array_get($payload, 'was_edited'),
- 'from' => Values::array_get($payload, 'from'),
- 'body' => Values::array_get($payload, 'body'),
- 'index' => Values::array_get($payload, 'index'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MessageContext Context for this
- * MessageInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.MessageInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageList.php
deleted file mode 100644
index da7443c..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageList.php
+++ /dev/null
@@ -1,182 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages';
- }
-
- /**
- * Create a new MessageInstance
- *
- * @param string $body The body
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Newly created MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($body, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Body' => $body,
- 'From' => $options['from'],
- 'Attributes' => $options['attributes'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MessageInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MessageInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MessageInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MessageInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MessageInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MessageContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MessageContext
- */
- public function getContext($sid) {
- return new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.MessageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.php
deleted file mode 100644
index f0639f8..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.php
+++ /dev/null
@@ -1,175 +0,0 @@
-options['from'] = $from;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * The from
- *
- * @param string $from The from
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The attributes
- *
- * @param string $attributes The attributes
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.CreateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMessageOptions extends Options {
- /**
- * @param string $order The order
- */
- public function __construct($order = Values::NONE) {
- $this->options['order'] = $order;
- }
-
- /**
- * The order
- *
- * @param string $order The order
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.ReadMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMessageOptions extends Options {
- /**
- * @param string $body The new message body string.
- * @param string $attributes The new attributes metadata field you can use to
- * store any data you wish.
- */
- public function __construct($body = Values::NONE, $attributes = Values::NONE) {
- $this->options['body'] = $body;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * The new message body string. You can also send structured data by serializing it into a string.
- *
- * @param string $body The new message body string.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * The new attributes metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.
- *
- * @param string $attributes The new attributes metadata field you can use to
- * store any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.UpdateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessagePage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessagePage.php
deleted file mode 100644
index e34fda1..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/Channel/MessagePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.MessagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelContext.php
deleted file mode 100644
index 820079c..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelContext.php
+++ /dev/null
@@ -1,211 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MemberList
- */
- protected function getMembers() {
- if (!$this->_members) {
- $this->_members = new MemberList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MessageList
- */
- protected function getMessages() {
- if (!$this->_messages) {
- $this->_messages = new MessageList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\InviteList
- */
- protected function getInvites() {
- if (!$this->_invites) {
- $this->_invites = new InviteList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_invites;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.ChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelInstance.php
deleted file mode 100644
index f98a652..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelInstance.php
+++ /dev/null
@@ -1,183 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'type' => Values::array_get($payload, 'type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'membersCount' => Values::array_get($payload, 'members_count'),
- 'messagesCount' => Values::array_get($payload, 'messages_count'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\Service\ChannelContext Context for this
- * ChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MemberList
- */
- protected function getMembers() {
- return $this->proxy()->members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\MessageList
- */
- protected function getMessages() {
- return $this->proxy()->messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\Chat\V1\Service\Channel\InviteList
- */
- protected function getInvites() {
- return $this->proxy()->invites;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.ChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelList.php
deleted file mode 100644
index 69086cb..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels';
- }
-
- /**
- * Create a new ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Newly created ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- 'Type' => $options['type'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams ChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ChannelInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Type' => Serialize::map($options['type'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ChannelContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\Service\ChannelContext
- */
- public function getContext($sid) {
- return new ChannelContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.ChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelOptions.php
deleted file mode 100644
index 21d9341..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelOptions.php
+++ /dev/null
@@ -1,220 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- $this->options['type'] = $type;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional metadata field you can use to store any data you wish. No processing or validation is done on this field.
- *
- * @param string $attributes An optional metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The visibility of the channel - `public` or `private`. Defaults to `public`.
- *
- * @param string $type The visibility of the channel - public or private.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.CreateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadChannelOptions extends Options {
- /**
- * @param string $type The type
- */
- public function __construct($type = Values::NONE) {
- $this->options['type'] = $type;
- }
-
- /**
- * The type
- *
- * @param string $type The type
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.ReadChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateChannelOptions extends Options {
- /**
- * @param string $friendlyName A human-readable name for the Channel.
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @param string $attributes An optional metadata field you can use to store
- * any data you wish.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE, $attributes = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional metadata field you can use to store any data you wish. No processing or validation is done on this field.
- *
- * @param string $attributes An optional metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.UpdateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelPage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelPage.php
deleted file mode 100644
index e1f2118..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/ChannelPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.ChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleContext.php
deleted file mode 100644
index e09ec14..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleContext.php
+++ /dev/null
@@ -1,105 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.RoleContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleInstance.php
deleted file mode 100644
index ef1536f..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'permissions' => Values::array_get($payload, 'permissions'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\Service\RoleContext Context for this
- * RoleInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RoleContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- return $this->proxy()->update($permission);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.RoleInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleList.php
deleted file mode 100644
index 0162135..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RoleList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles';
- }
-
- /**
- * Create a new RoleInstance
- *
- * @param string $friendlyName The human-readable name of this role.
- * @param string $type What kind of role this is.
- * @param string $permission A permission this role should have.
- * @return RoleInstance Newly created RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $type, $permission) {
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Type' => $type,
- 'Permission' => Serialize::map($permission, function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams RoleInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RoleInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RoleInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RoleInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RoleInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RoleContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\Service\RoleContext
- */
- public function getContext($sid) {
- return new RoleContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.RoleList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RolePage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/RolePage.php
deleted file mode 100644
index fafe154..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/RolePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.RolePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelInstance.php
deleted file mode 100644
index 3c0f15b..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelInstance.php
+++ /dev/null
@@ -1,84 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'memberSid' => Values::array_get($payload, 'member_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'unreadMessagesCount' => Values::array_get($payload, 'unread_messages_count'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.UserChannelInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelList.php
deleted file mode 100644
index dcce5a7..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelList.php
+++ /dev/null
@@ -1,129 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Channels';
- }
-
- /**
- * Streams UserChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserChannelInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.UserChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelPage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelPage.php
deleted file mode 100644
index 1221226..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/User/UserChannelPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.UserChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserContext.php
deleted file mode 100644
index 2ec7fcb..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserContext.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\Chat\V1\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- if (!$this->_userChannels) {
- $this->_userChannels = new UserChannelList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_userChannels;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.UserContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserInstance.php
deleted file mode 100644
index 3864241..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserInstance.php
+++ /dev/null
@@ -1,162 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'isOnline' => Values::array_get($payload, 'is_online'),
- 'isNotifiable' => Values::array_get($payload, 'is_notifiable'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'joinedChannelsCount' => Values::array_get($payload, 'joined_channels_count'),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\Service\UserContext Context for this
- * UserInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\Chat\V1\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- return $this->proxy()->userChannels;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.UserInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserList.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserList.php
deleted file mode 100644
index c2497c2..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users';
- }
-
- /**
- * Create a new UserInstance
- *
- * @param string $identity A unique string that identifies the user within this
- * service - often a username or email address.
- * @param array|Options $options Optional Arguments
- * @return UserInstance Newly created UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams UserInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\Service\UserContext
- */
- public function getContext($sid) {
- return new UserContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.UserList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserOptions.php
deleted file mode 100644
index b57e701..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserOptions.php
+++ /dev/null
@@ -1,172 +0,0 @@
-options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this user.
- *
- * @param string $roleSid The unique id of the Role assigned to this user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.CreateUserOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateUserOptions extends Options {
- /**
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @param string $friendlyName An optional human readable string representing
- * the user.
- */
- public function __construct($roleSid = Values::NONE, $attributes = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role][role] assigned to this user.
- *
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.UpdateUserOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserPage.php b/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserPage.php
deleted file mode 100644
index 5f0c9a5..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/Service/UserPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.UserPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Chat/V1/ServiceContext.php
deleted file mode 100644
index 38a550c..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceContext.php
+++ /dev/null
@@ -1,256 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DefaultServiceRoleSid' => $options['defaultServiceRoleSid'],
- 'DefaultChannelRoleSid' => $options['defaultChannelRoleSid'],
- 'DefaultChannelCreatorRoleSid' => $options['defaultChannelCreatorRoleSid'],
- 'ReadStatusEnabled' => Serialize::booleanToString($options['readStatusEnabled']),
- 'ReachabilityEnabled' => Serialize::booleanToString($options['reachabilityEnabled']),
- 'TypingIndicatorTimeout' => $options['typingIndicatorTimeout'],
- 'ConsumptionReportInterval' => $options['consumptionReportInterval'],
- 'Notifications.NewMessage.Enabled' => Serialize::booleanToString($options['notificationsNewMessageEnabled']),
- 'Notifications.NewMessage.Template' => $options['notificationsNewMessageTemplate'],
- 'Notifications.AddedToChannel.Enabled' => Serialize::booleanToString($options['notificationsAddedToChannelEnabled']),
- 'Notifications.AddedToChannel.Template' => $options['notificationsAddedToChannelTemplate'],
- 'Notifications.RemovedFromChannel.Enabled' => Serialize::booleanToString($options['notificationsRemovedFromChannelEnabled']),
- 'Notifications.RemovedFromChannel.Template' => $options['notificationsRemovedFromChannelTemplate'],
- 'Notifications.InvitedToChannel.Enabled' => Serialize::booleanToString($options['notificationsInvitedToChannelEnabled']),
- 'Notifications.InvitedToChannel.Template' => $options['notificationsInvitedToChannelTemplate'],
- 'PreWebhookUrl' => $options['preWebhookUrl'],
- 'PostWebhookUrl' => $options['postWebhookUrl'],
- 'WebhookMethod' => $options['webhookMethod'],
- 'WebhookFilters' => Serialize::map($options['webhookFilters'], function($e) { return $e; }),
- 'Webhooks.OnMessageSend.Url' => $options['webhooksOnMessageSendUrl'],
- 'Webhooks.OnMessageSend.Method' => $options['webhooksOnMessageSendMethod'],
- 'Webhooks.OnMessageSend.Format' => $options['webhooksOnMessageSendFormat'],
- 'Webhooks.OnMessageUpdate.Url' => $options['webhooksOnMessageUpdateUrl'],
- 'Webhooks.OnMessageUpdate.Method' => $options['webhooksOnMessageUpdateMethod'],
- 'Webhooks.OnMessageUpdate.Format' => $options['webhooksOnMessageUpdateFormat'],
- 'Webhooks.OnMessageRemove.Url' => $options['webhooksOnMessageRemoveUrl'],
- 'Webhooks.OnMessageRemove.Method' => $options['webhooksOnMessageRemoveMethod'],
- 'Webhooks.OnMessageRemove.Format' => $options['webhooksOnMessageRemoveFormat'],
- 'Webhooks.OnChannelAdd.Url' => $options['webhooksOnChannelAddUrl'],
- 'Webhooks.OnChannelAdd.Method' => $options['webhooksOnChannelAddMethod'],
- 'Webhooks.OnChannelAdd.Format' => $options['webhooksOnChannelAddFormat'],
- 'Webhooks.OnChannelDestroy.Url' => $options['webhooksOnChannelDestroyUrl'],
- 'Webhooks.OnChannelDestroy.Method' => $options['webhooksOnChannelDestroyMethod'],
- 'Webhooks.OnChannelDestroy.Format' => $options['webhooksOnChannelDestroyFormat'],
- 'Webhooks.OnChannelUpdate.Url' => $options['webhooksOnChannelUpdateUrl'],
- 'Webhooks.OnChannelUpdate.Method' => $options['webhooksOnChannelUpdateMethod'],
- 'Webhooks.OnChannelUpdate.Format' => $options['webhooksOnChannelUpdateFormat'],
- 'Webhooks.OnMemberAdd.Url' => $options['webhooksOnMemberAddUrl'],
- 'Webhooks.OnMemberAdd.Method' => $options['webhooksOnMemberAddMethod'],
- 'Webhooks.OnMemberAdd.Format' => $options['webhooksOnMemberAddFormat'],
- 'Webhooks.OnMemberRemove.Url' => $options['webhooksOnMemberRemoveUrl'],
- 'Webhooks.OnMemberRemove.Method' => $options['webhooksOnMemberRemoveMethod'],
- 'Webhooks.OnMemberRemove.Format' => $options['webhooksOnMemberRemoveFormat'],
- 'Webhooks.OnMessageSent.Url' => $options['webhooksOnMessageSentUrl'],
- 'Webhooks.OnMessageSent.Method' => $options['webhooksOnMessageSentMethod'],
- 'Webhooks.OnMessageSent.Format' => $options['webhooksOnMessageSentFormat'],
- 'Webhooks.OnMessageUpdated.Url' => $options['webhooksOnMessageUpdatedUrl'],
- 'Webhooks.OnMessageUpdated.Method' => $options['webhooksOnMessageUpdatedMethod'],
- 'Webhooks.OnMessageUpdated.Format' => $options['webhooksOnMessageUpdatedFormat'],
- 'Webhooks.OnMessageRemoved.Url' => $options['webhooksOnMessageRemovedUrl'],
- 'Webhooks.OnMessageRemoved.Method' => $options['webhooksOnMessageRemovedMethod'],
- 'Webhooks.OnMessageRemoved.Format' => $options['webhooksOnMessageRemovedFormat'],
- 'Webhooks.OnChannelAdded.Url' => $options['webhooksOnChannelAddedUrl'],
- 'Webhooks.OnChannelAdded.Method' => $options['webhooksOnChannelAddedMethod'],
- 'Webhooks.OnChannelAdded.Format' => $options['webhooksOnChannelAddedFormat'],
- 'Webhooks.OnChannelDestroyed.Url' => $options['webhooksOnChannelDestroyedUrl'],
- 'Webhooks.OnChannelDestroyed.Method' => $options['webhooksOnChannelDestroyedMethod'],
- 'Webhooks.OnChannelDestroyed.Format' => $options['webhooksOnChannelDestroyedFormat'],
- 'Webhooks.OnChannelUpdated.Url' => $options['webhooksOnChannelUpdatedUrl'],
- 'Webhooks.OnChannelUpdated.Method' => $options['webhooksOnChannelUpdatedMethod'],
- 'Webhooks.OnChannelUpdated.Format' => $options['webhooksOnChannelUpdatedFormat'],
- 'Webhooks.OnMemberAdded.Url' => $options['webhooksOnMemberAddedUrl'],
- 'Webhooks.OnMemberAdded.Method' => $options['webhooksOnMemberAddedMethod'],
- 'Webhooks.OnMemberAdded.Format' => $options['webhooksOnMemberAddedFormat'],
- 'Webhooks.OnMemberRemoved.Url' => $options['webhooksOnMemberRemovedUrl'],
- 'Webhooks.OnMemberRemoved.Method' => $options['webhooksOnMemberRemovedMethod'],
- 'Webhooks.OnMemberRemoved.Format' => $options['webhooksOnMemberRemovedFormat'],
- 'Limits.ChannelMembers' => $options['limitsChannelMembers'],
- 'Limits.UserChannels' => $options['limitsUserChannels'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\Chat\V1\Service\ChannelList
- */
- protected function getChannels() {
- if (!$this->_channels) {
- $this->_channels = new ChannelList($this->version, $this->solution['sid']);
- }
-
- return $this->_channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\Chat\V1\Service\RoleList
- */
- protected function getRoles() {
- if (!$this->_roles) {
- $this->_roles = new RoleList($this->version, $this->solution['sid']);
- }
-
- return $this->_roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\Chat\V1\Service\UserList
- */
- protected function getUsers() {
- if (!$this->_users) {
- $this->_users = new UserList($this->version, $this->solution['sid']);
- }
-
- return $this->_users;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Chat/V1/ServiceInstance.php
deleted file mode 100644
index d3994e9..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceInstance.php
+++ /dev/null
@@ -1,190 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'defaultServiceRoleSid' => Values::array_get($payload, 'default_service_role_sid'),
- 'defaultChannelRoleSid' => Values::array_get($payload, 'default_channel_role_sid'),
- 'defaultChannelCreatorRoleSid' => Values::array_get($payload, 'default_channel_creator_role_sid'),
- 'readStatusEnabled' => Values::array_get($payload, 'read_status_enabled'),
- 'reachabilityEnabled' => Values::array_get($payload, 'reachability_enabled'),
- 'typingIndicatorTimeout' => Values::array_get($payload, 'typing_indicator_timeout'),
- 'consumptionReportInterval' => Values::array_get($payload, 'consumption_report_interval'),
- 'limits' => Values::array_get($payload, 'limits'),
- 'webhooks' => Values::array_get($payload, 'webhooks'),
- 'preWebhookUrl' => Values::array_get($payload, 'pre_webhook_url'),
- 'postWebhookUrl' => Values::array_get($payload, 'post_webhook_url'),
- 'webhookMethod' => Values::array_get($payload, 'webhook_method'),
- 'webhookFilters' => Values::array_get($payload, 'webhook_filters'),
- 'notifications' => Values::array_get($payload, 'notifications'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V1\ServiceContext Context for this ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\Chat\V1\Service\ChannelList
- */
- protected function getChannels() {
- return $this->proxy()->channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\Chat\V1\Service\RoleList
- */
- protected function getRoles() {
- return $this->proxy()->roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\Chat\V1\Service\UserList
- */
- protected function getUsers() {
- return $this->proxy()->users;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Chat/V1/ServiceList.php
deleted file mode 100644
index c7fc0ec..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceList.php
+++ /dev/null
@@ -1,156 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Chat/V1/ServiceOptions.php
deleted file mode 100644
index 72ee997..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/ServiceOptions.php
+++ /dev/null
@@ -1,1180 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- $this->options['webhookMethod'] = $webhookMethod;
- $this->options['webhookFilters'] = $webhookFilters;
- $this->options['webhooksOnMessageSendUrl'] = $webhooksOnMessageSendUrl;
- $this->options['webhooksOnMessageSendMethod'] = $webhooksOnMessageSendMethod;
- $this->options['webhooksOnMessageSendFormat'] = $webhooksOnMessageSendFormat;
- $this->options['webhooksOnMessageUpdateUrl'] = $webhooksOnMessageUpdateUrl;
- $this->options['webhooksOnMessageUpdateMethod'] = $webhooksOnMessageUpdateMethod;
- $this->options['webhooksOnMessageUpdateFormat'] = $webhooksOnMessageUpdateFormat;
- $this->options['webhooksOnMessageRemoveUrl'] = $webhooksOnMessageRemoveUrl;
- $this->options['webhooksOnMessageRemoveMethod'] = $webhooksOnMessageRemoveMethod;
- $this->options['webhooksOnMessageRemoveFormat'] = $webhooksOnMessageRemoveFormat;
- $this->options['webhooksOnChannelAddUrl'] = $webhooksOnChannelAddUrl;
- $this->options['webhooksOnChannelAddMethod'] = $webhooksOnChannelAddMethod;
- $this->options['webhooksOnChannelAddFormat'] = $webhooksOnChannelAddFormat;
- $this->options['webhooksOnChannelDestroyUrl'] = $webhooksOnChannelDestroyUrl;
- $this->options['webhooksOnChannelDestroyMethod'] = $webhooksOnChannelDestroyMethod;
- $this->options['webhooksOnChannelDestroyFormat'] = $webhooksOnChannelDestroyFormat;
- $this->options['webhooksOnChannelUpdateUrl'] = $webhooksOnChannelUpdateUrl;
- $this->options['webhooksOnChannelUpdateMethod'] = $webhooksOnChannelUpdateMethod;
- $this->options['webhooksOnChannelUpdateFormat'] = $webhooksOnChannelUpdateFormat;
- $this->options['webhooksOnMemberAddUrl'] = $webhooksOnMemberAddUrl;
- $this->options['webhooksOnMemberAddMethod'] = $webhooksOnMemberAddMethod;
- $this->options['webhooksOnMemberAddFormat'] = $webhooksOnMemberAddFormat;
- $this->options['webhooksOnMemberRemoveUrl'] = $webhooksOnMemberRemoveUrl;
- $this->options['webhooksOnMemberRemoveMethod'] = $webhooksOnMemberRemoveMethod;
- $this->options['webhooksOnMemberRemoveFormat'] = $webhooksOnMemberRemoveFormat;
- $this->options['webhooksOnMessageSentUrl'] = $webhooksOnMessageSentUrl;
- $this->options['webhooksOnMessageSentMethod'] = $webhooksOnMessageSentMethod;
- $this->options['webhooksOnMessageSentFormat'] = $webhooksOnMessageSentFormat;
- $this->options['webhooksOnMessageUpdatedUrl'] = $webhooksOnMessageUpdatedUrl;
- $this->options['webhooksOnMessageUpdatedMethod'] = $webhooksOnMessageUpdatedMethod;
- $this->options['webhooksOnMessageUpdatedFormat'] = $webhooksOnMessageUpdatedFormat;
- $this->options['webhooksOnMessageRemovedUrl'] = $webhooksOnMessageRemovedUrl;
- $this->options['webhooksOnMessageRemovedMethod'] = $webhooksOnMessageRemovedMethod;
- $this->options['webhooksOnMessageRemovedFormat'] = $webhooksOnMessageRemovedFormat;
- $this->options['webhooksOnChannelAddedUrl'] = $webhooksOnChannelAddedUrl;
- $this->options['webhooksOnChannelAddedMethod'] = $webhooksOnChannelAddedMethod;
- $this->options['webhooksOnChannelAddedFormat'] = $webhooksOnChannelAddedFormat;
- $this->options['webhooksOnChannelDestroyedUrl'] = $webhooksOnChannelDestroyedUrl;
- $this->options['webhooksOnChannelDestroyedMethod'] = $webhooksOnChannelDestroyedMethod;
- $this->options['webhooksOnChannelDestroyedFormat'] = $webhooksOnChannelDestroyedFormat;
- $this->options['webhooksOnChannelUpdatedUrl'] = $webhooksOnChannelUpdatedUrl;
- $this->options['webhooksOnChannelUpdatedMethod'] = $webhooksOnChannelUpdatedMethod;
- $this->options['webhooksOnChannelUpdatedFormat'] = $webhooksOnChannelUpdatedFormat;
- $this->options['webhooksOnMemberAddedUrl'] = $webhooksOnMemberAddedUrl;
- $this->options['webhooksOnMemberAddedMethod'] = $webhooksOnMemberAddedMethod;
- $this->options['webhooksOnMemberAddedFormat'] = $webhooksOnMemberAddedFormat;
- $this->options['webhooksOnMemberRemovedUrl'] = $webhooksOnMemberRemovedUrl;
- $this->options['webhooksOnMemberRemovedMethod'] = $webhooksOnMemberRemovedMethod;
- $this->options['webhooksOnMemberRemovedFormat'] = $webhooksOnMemberRemovedFormat;
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The default_service_role_sid
- *
- * @param string $defaultServiceRoleSid The default_service_role_sid
- * @return $this Fluent Builder
- */
- public function setDefaultServiceRoleSid($defaultServiceRoleSid) {
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned on channel join (see [Roles](https://www.twilio.com/docs/api/chat/rest/v1/roles) data model for the details)
- *
- * @param string $defaultChannelRoleSid Channel role assigned on channel join
- * @return $this Fluent Builder
- */
- public function setDefaultChannelRoleSid($defaultChannelRoleSid) {
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned to creator of channel when joining for first time
- *
- * @param string $defaultChannelCreatorRoleSid Channel role assigned to creator
- * of channel when joining for
- * first time
- * @return $this Fluent Builder
- */
- public function setDefaultChannelCreatorRoleSid($defaultChannelCreatorRoleSid) {
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- return $this;
- }
-
- /**
- * `true` if the member read status feature is enabled, `false` if not. Defaults to `true`.
- *
- * @param boolean $readStatusEnabled true if the member read status feature is
- * enabled, false if not.
- * @return $this Fluent Builder
- */
- public function setReadStatusEnabled($readStatusEnabled) {
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- return $this;
- }
-
- /**
- * `true` if the reachability feature should be enabled. Defaults to `false`
- *
- * @param boolean $reachabilityEnabled true if the reachability feature should
- * be enabled.
- * @return $this Fluent Builder
- */
- public function setReachabilityEnabled($reachabilityEnabled) {
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- return $this;
- }
-
- /**
- * ISO 8601 duration indicating the timeout after "started typing" event when client should assume that user is not typing anymore even if no "ended typing" message received
- *
- * @param integer $typingIndicatorTimeout ISO 8601 duration indicating the
- * timeout after "started typing" event
- * when client should assume that user
- * is not typing anymore even if no
- * "ended typing" message received
- * @return $this Fluent Builder
- */
- public function setTypingIndicatorTimeout($typingIndicatorTimeout) {
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- return $this;
- }
-
- /**
- * ISO 8601 duration indicating the interval between consumption reports sent from client endpoints.
- *
- * @param integer $consumptionReportInterval ISO 8601 duration indicating the
- * interval between consumption
- * reports sent from client endpoints.
- * @return $this Fluent Builder
- */
- public function setConsumptionReportInterval($consumptionReportInterval) {
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- return $this;
- }
-
- /**
- * The notifications.new_message.enabled
- *
- * @param boolean $notificationsNewMessageEnabled The
- * notifications.new_message.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageEnabled($notificationsNewMessageEnabled) {
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- return $this;
- }
-
- /**
- * The notifications.new_message.template
- *
- * @param string $notificationsNewMessageTemplate The
- * notifications.new_message.template
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageTemplate($notificationsNewMessageTemplate) {
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.enabled
- *
- * @param boolean $notificationsAddedToChannelEnabled The
- * notifications.added_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelEnabled($notificationsAddedToChannelEnabled) {
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.template
- *
- * @param string $notificationsAddedToChannelTemplate The
- * notifications.added_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelTemplate($notificationsAddedToChannelTemplate) {
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.enabled
- *
- * @param boolean $notificationsRemovedFromChannelEnabled The
- * notifications.removed_from_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelEnabled($notificationsRemovedFromChannelEnabled) {
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.template
- *
- * @param string $notificationsRemovedFromChannelTemplate The
- * notifications.removed_from_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelTemplate($notificationsRemovedFromChannelTemplate) {
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.enabled
- *
- * @param boolean $notificationsInvitedToChannelEnabled The
- * notifications.invited_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelEnabled($notificationsInvitedToChannelEnabled) {
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.template
- *
- * @param string $notificationsInvitedToChannelTemplate The
- * notifications.invited_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelTemplate($notificationsInvitedToChannelTemplate) {
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- return $this;
- }
-
- /**
- * The webhook URL for PRE-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $preWebhookUrl The webhook URL for PRE-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPreWebhookUrl($preWebhookUrl) {
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook URL for POST-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $postWebhookUrl The webhook URL for POST-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPostWebhookUrl($postWebhookUrl) {
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook request format to use. Must be POST or GET. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $webhookMethod The webhook request format to use.
- * @return $this Fluent Builder
- */
- public function setWebhookMethod($webhookMethod) {
- $this->options['webhookMethod'] = $webhookMethod;
- return $this;
- }
-
- /**
- * The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $webhookFilters The list of WebHook events that are enabled
- * for this Service instance.
- * @return $this Fluent Builder
- */
- public function setWebhookFilters($webhookFilters) {
- $this->options['webhookFilters'] = $webhookFilters;
- return $this;
- }
-
- /**
- * The webhooks.on_message_send.url
- *
- * @param string $webhooksOnMessageSendUrl The webhooks.on_message_send.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSendUrl($webhooksOnMessageSendUrl) {
- $this->options['webhooksOnMessageSendUrl'] = $webhooksOnMessageSendUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_send.method
- *
- * @param string $webhooksOnMessageSendMethod The
- * webhooks.on_message_send.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSendMethod($webhooksOnMessageSendMethod) {
- $this->options['webhooksOnMessageSendMethod'] = $webhooksOnMessageSendMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_send.format
- *
- * @param string $webhooksOnMessageSendFormat The
- * webhooks.on_message_send.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSendFormat($webhooksOnMessageSendFormat) {
- $this->options['webhooksOnMessageSendFormat'] = $webhooksOnMessageSendFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_update.url
- *
- * @param string $webhooksOnMessageUpdateUrl The webhooks.on_message_update.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdateUrl($webhooksOnMessageUpdateUrl) {
- $this->options['webhooksOnMessageUpdateUrl'] = $webhooksOnMessageUpdateUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_update.method
- *
- * @param string $webhooksOnMessageUpdateMethod The
- * webhooks.on_message_update.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdateMethod($webhooksOnMessageUpdateMethod) {
- $this->options['webhooksOnMessageUpdateMethod'] = $webhooksOnMessageUpdateMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_update.format
- *
- * @param string $webhooksOnMessageUpdateFormat The
- * webhooks.on_message_update.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdateFormat($webhooksOnMessageUpdateFormat) {
- $this->options['webhooksOnMessageUpdateFormat'] = $webhooksOnMessageUpdateFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_remove.url
- *
- * @param string $webhooksOnMessageRemoveUrl The webhooks.on_message_remove.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemoveUrl($webhooksOnMessageRemoveUrl) {
- $this->options['webhooksOnMessageRemoveUrl'] = $webhooksOnMessageRemoveUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_remove.method
- *
- * @param string $webhooksOnMessageRemoveMethod The
- * webhooks.on_message_remove.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemoveMethod($webhooksOnMessageRemoveMethod) {
- $this->options['webhooksOnMessageRemoveMethod'] = $webhooksOnMessageRemoveMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_remove.format
- *
- * @param string $webhooksOnMessageRemoveFormat The
- * webhooks.on_message_remove.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemoveFormat($webhooksOnMessageRemoveFormat) {
- $this->options['webhooksOnMessageRemoveFormat'] = $webhooksOnMessageRemoveFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_add.url
- *
- * @param string $webhooksOnChannelAddUrl The webhooks.on_channel_add.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddUrl($webhooksOnChannelAddUrl) {
- $this->options['webhooksOnChannelAddUrl'] = $webhooksOnChannelAddUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_add.method
- *
- * @param string $webhooksOnChannelAddMethod The webhooks.on_channel_add.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddMethod($webhooksOnChannelAddMethod) {
- $this->options['webhooksOnChannelAddMethod'] = $webhooksOnChannelAddMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_add.format
- *
- * @param string $webhooksOnChannelAddFormat The webhooks.on_channel_add.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddFormat($webhooksOnChannelAddFormat) {
- $this->options['webhooksOnChannelAddFormat'] = $webhooksOnChannelAddFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroy.url
- *
- * @param string $webhooksOnChannelDestroyUrl The
- * webhooks.on_channel_destroy.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyUrl($webhooksOnChannelDestroyUrl) {
- $this->options['webhooksOnChannelDestroyUrl'] = $webhooksOnChannelDestroyUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroy.method
- *
- * @param string $webhooksOnChannelDestroyMethod The
- * webhooks.on_channel_destroy.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyMethod($webhooksOnChannelDestroyMethod) {
- $this->options['webhooksOnChannelDestroyMethod'] = $webhooksOnChannelDestroyMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroy.format
- *
- * @param string $webhooksOnChannelDestroyFormat The
- * webhooks.on_channel_destroy.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyFormat($webhooksOnChannelDestroyFormat) {
- $this->options['webhooksOnChannelDestroyFormat'] = $webhooksOnChannelDestroyFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_update.url
- *
- * @param string $webhooksOnChannelUpdateUrl The webhooks.on_channel_update.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdateUrl($webhooksOnChannelUpdateUrl) {
- $this->options['webhooksOnChannelUpdateUrl'] = $webhooksOnChannelUpdateUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_update.method
- *
- * @param string $webhooksOnChannelUpdateMethod The
- * webhooks.on_channel_update.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdateMethod($webhooksOnChannelUpdateMethod) {
- $this->options['webhooksOnChannelUpdateMethod'] = $webhooksOnChannelUpdateMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_update.format
- *
- * @param string $webhooksOnChannelUpdateFormat The
- * webhooks.on_channel_update.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdateFormat($webhooksOnChannelUpdateFormat) {
- $this->options['webhooksOnChannelUpdateFormat'] = $webhooksOnChannelUpdateFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_add.url
- *
- * @param string $webhooksOnMemberAddUrl The webhooks.on_member_add.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddUrl($webhooksOnMemberAddUrl) {
- $this->options['webhooksOnMemberAddUrl'] = $webhooksOnMemberAddUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_add.method
- *
- * @param string $webhooksOnMemberAddMethod The webhooks.on_member_add.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddMethod($webhooksOnMemberAddMethod) {
- $this->options['webhooksOnMemberAddMethod'] = $webhooksOnMemberAddMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_add.format
- *
- * @param string $webhooksOnMemberAddFormat The webhooks.on_member_add.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddFormat($webhooksOnMemberAddFormat) {
- $this->options['webhooksOnMemberAddFormat'] = $webhooksOnMemberAddFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_remove.url
- *
- * @param string $webhooksOnMemberRemoveUrl The webhooks.on_member_remove.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemoveUrl($webhooksOnMemberRemoveUrl) {
- $this->options['webhooksOnMemberRemoveUrl'] = $webhooksOnMemberRemoveUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_remove.method
- *
- * @param string $webhooksOnMemberRemoveMethod The
- * webhooks.on_member_remove.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemoveMethod($webhooksOnMemberRemoveMethod) {
- $this->options['webhooksOnMemberRemoveMethod'] = $webhooksOnMemberRemoveMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_remove.format
- *
- * @param string $webhooksOnMemberRemoveFormat The
- * webhooks.on_member_remove.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemoveFormat($webhooksOnMemberRemoveFormat) {
- $this->options['webhooksOnMemberRemoveFormat'] = $webhooksOnMemberRemoveFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_sent.url
- *
- * @param string $webhooksOnMessageSentUrl The webhooks.on_message_sent.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSentUrl($webhooksOnMessageSentUrl) {
- $this->options['webhooksOnMessageSentUrl'] = $webhooksOnMessageSentUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_sent.method
- *
- * @param string $webhooksOnMessageSentMethod The
- * webhooks.on_message_sent.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSentMethod($webhooksOnMessageSentMethod) {
- $this->options['webhooksOnMessageSentMethod'] = $webhooksOnMessageSentMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_sent.format
- *
- * @param string $webhooksOnMessageSentFormat The
- * webhooks.on_message_sent.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSentFormat($webhooksOnMessageSentFormat) {
- $this->options['webhooksOnMessageSentFormat'] = $webhooksOnMessageSentFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_updated.url
- *
- * @param string $webhooksOnMessageUpdatedUrl The
- * webhooks.on_message_updated.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdatedUrl($webhooksOnMessageUpdatedUrl) {
- $this->options['webhooksOnMessageUpdatedUrl'] = $webhooksOnMessageUpdatedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_updated.method
- *
- * @param string $webhooksOnMessageUpdatedMethod The
- * webhooks.on_message_updated.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdatedMethod($webhooksOnMessageUpdatedMethod) {
- $this->options['webhooksOnMessageUpdatedMethod'] = $webhooksOnMessageUpdatedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_updated.format
- *
- * @param string $webhooksOnMessageUpdatedFormat The
- * webhooks.on_message_updated.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdatedFormat($webhooksOnMessageUpdatedFormat) {
- $this->options['webhooksOnMessageUpdatedFormat'] = $webhooksOnMessageUpdatedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_removed.url
- *
- * @param string $webhooksOnMessageRemovedUrl The
- * webhooks.on_message_removed.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemovedUrl($webhooksOnMessageRemovedUrl) {
- $this->options['webhooksOnMessageRemovedUrl'] = $webhooksOnMessageRemovedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_removed.method
- *
- * @param string $webhooksOnMessageRemovedMethod The
- * webhooks.on_message_removed.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemovedMethod($webhooksOnMessageRemovedMethod) {
- $this->options['webhooksOnMessageRemovedMethod'] = $webhooksOnMessageRemovedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_removed.format
- *
- * @param string $webhooksOnMessageRemovedFormat The
- * webhooks.on_message_removed.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemovedFormat($webhooksOnMessageRemovedFormat) {
- $this->options['webhooksOnMessageRemovedFormat'] = $webhooksOnMessageRemovedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_added.url
- *
- * @param string $webhooksOnChannelAddedUrl The webhooks.on_channel_added.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddedUrl($webhooksOnChannelAddedUrl) {
- $this->options['webhooksOnChannelAddedUrl'] = $webhooksOnChannelAddedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_added.method
- *
- * @param string $webhooksOnChannelAddedMethod The
- * webhooks.on_channel_added.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddedMethod($webhooksOnChannelAddedMethod) {
- $this->options['webhooksOnChannelAddedMethod'] = $webhooksOnChannelAddedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_added.format
- *
- * @param string $webhooksOnChannelAddedFormat The
- * webhooks.on_channel_added.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddedFormat($webhooksOnChannelAddedFormat) {
- $this->options['webhooksOnChannelAddedFormat'] = $webhooksOnChannelAddedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroyed.url
- *
- * @param string $webhooksOnChannelDestroyedUrl The
- * webhooks.on_channel_destroyed.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyedUrl($webhooksOnChannelDestroyedUrl) {
- $this->options['webhooksOnChannelDestroyedUrl'] = $webhooksOnChannelDestroyedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroyed.method
- *
- * @param string $webhooksOnChannelDestroyedMethod The
- * webhooks.on_channel_destroyed.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyedMethod($webhooksOnChannelDestroyedMethod) {
- $this->options['webhooksOnChannelDestroyedMethod'] = $webhooksOnChannelDestroyedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroyed.format
- *
- * @param string $webhooksOnChannelDestroyedFormat The
- * webhooks.on_channel_destroyed.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyedFormat($webhooksOnChannelDestroyedFormat) {
- $this->options['webhooksOnChannelDestroyedFormat'] = $webhooksOnChannelDestroyedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_updated.url
- *
- * @param string $webhooksOnChannelUpdatedUrl The
- * webhooks.on_channel_updated.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdatedUrl($webhooksOnChannelUpdatedUrl) {
- $this->options['webhooksOnChannelUpdatedUrl'] = $webhooksOnChannelUpdatedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_updated.method
- *
- * @param string $webhooksOnChannelUpdatedMethod The
- * webhooks.on_channel_updated.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdatedMethod($webhooksOnChannelUpdatedMethod) {
- $this->options['webhooksOnChannelUpdatedMethod'] = $webhooksOnChannelUpdatedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_updated.format
- *
- * @param string $webhooksOnChannelUpdatedFormat The
- * webhooks.on_channel_updated.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdatedFormat($webhooksOnChannelUpdatedFormat) {
- $this->options['webhooksOnChannelUpdatedFormat'] = $webhooksOnChannelUpdatedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_added.url
- *
- * @param string $webhooksOnMemberAddedUrl The webhooks.on_member_added.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddedUrl($webhooksOnMemberAddedUrl) {
- $this->options['webhooksOnMemberAddedUrl'] = $webhooksOnMemberAddedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_added.method
- *
- * @param string $webhooksOnMemberAddedMethod The
- * webhooks.on_member_added.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddedMethod($webhooksOnMemberAddedMethod) {
- $this->options['webhooksOnMemberAddedMethod'] = $webhooksOnMemberAddedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_added.format
- *
- * @param string $webhooksOnMemberAddedFormat The
- * webhooks.on_member_added.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddedFormat($webhooksOnMemberAddedFormat) {
- $this->options['webhooksOnMemberAddedFormat'] = $webhooksOnMemberAddedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_removed.url
- *
- * @param string $webhooksOnMemberRemovedUrl The webhooks.on_member_removed.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemovedUrl($webhooksOnMemberRemovedUrl) {
- $this->options['webhooksOnMemberRemovedUrl'] = $webhooksOnMemberRemovedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_removed.method
- *
- * @param string $webhooksOnMemberRemovedMethod The
- * webhooks.on_member_removed.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemovedMethod($webhooksOnMemberRemovedMethod) {
- $this->options['webhooksOnMemberRemovedMethod'] = $webhooksOnMemberRemovedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_removed.format
- *
- * @param string $webhooksOnMemberRemovedFormat The
- * webhooks.on_member_removed.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemovedFormat($webhooksOnMemberRemovedFormat) {
- $this->options['webhooksOnMemberRemovedFormat'] = $webhooksOnMemberRemovedFormat;
- return $this;
- }
-
- /**
- * The limits.channel_members
- *
- * @param integer $limitsChannelMembers The limits.channel_members
- * @return $this Fluent Builder
- */
- public function setLimitsChannelMembers($limitsChannelMembers) {
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- return $this;
- }
-
- /**
- * The limits.user_channels
- *
- * @param integer $limitsUserChannels The limits.user_channels
- * @return $this Fluent Builder
- */
- public function setLimitsUserChannels($limitsUserChannels) {
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Chat/V1/ServicePage.php
deleted file mode 100644
index 8ee1c49..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V1/ServicePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2.php b/public/twilio-php/Twilio/Rest/Chat/V2.php
deleted file mode 100644
index fc82859..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v2';
- }
-
- /**
- * @return \Twilio\Rest\Chat\V2\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList($this);
- }
- return $this->_credentials;
- }
-
- /**
- * @return \Twilio\Rest\Chat\V2\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/CredentialContext.php
deleted file mode 100644
index f8ef043..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialContext.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.CredentialContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/CredentialInstance.php
deleted file mode 100644
index d40c5a8..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialInstance.php
+++ /dev/null
@@ -1,134 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'sandbox' => Values::array_get($payload, 'sandbox'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\CredentialContext Context for this
- * CredentialInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.CredentialInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialList.php b/public/twilio-php/Twilio/Rest/Chat/V2/CredentialList.php
deleted file mode 100644
index 175d407..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialList.php
+++ /dev/null
@@ -1,169 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials';
- }
-
- /**
- * Streams CredentialInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialInstance
- *
- * @param string $type Credential type, one of "gcm", "fcm", or "apn"
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Newly created CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CredentialContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\CredentialContext
- */
- public function getContext($sid) {
- return new CredentialContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/CredentialOptions.php
deleted file mode 100644
index 6cee025..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialOptions.php
+++ /dev/null
@@ -1,289 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g.
- `-----BEGIN CERTIFICATE-----
- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
- -----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g.
- `-----BEGIN RSA PRIVATE KEY-----
- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
- -----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
- *
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCredentialOptions extends Options {
- /**
- * @param string $friendlyName Friendly name for stored credential
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- */
- public function __construct($friendlyName = Values::NONE, $certificate = Values::NONE, $privateKey = Values::NONE, $sandbox = Values::NONE, $apiKey = Values::NONE, $secret = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g.
- `-----BEGIN CERTIFICATE-----
- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
- -----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g.
- `-----BEGIN RSA PRIVATE KEY-----
- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
- -----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
- *
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/CredentialPage.php
deleted file mode 100644
index 12988d2..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/CredentialPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingContext.php
deleted file mode 100644
index 1f431af..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Bindings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a BindingInstance
- *
- * @return BindingInstance Fetched BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the BindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.BindingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingInstance.php
deleted file mode 100644
index a7bff70..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingInstance.php
+++ /dev/null
@@ -1,136 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'endpoint' => Values::array_get($payload, 'endpoint'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'credentialSid' => Values::array_get($payload, 'credential_sid'),
- 'bindingType' => Values::array_get($payload, 'binding_type'),
- 'messageTypes' => Values::array_get($payload, 'message_types'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\BindingContext Context for this
- * BindingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new BindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a BindingInstance
- *
- * @return BindingInstance Fetched BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the BindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.BindingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingList.php
deleted file mode 100644
index ebfcb1d..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingList.php
+++ /dev/null
@@ -1,146 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Bindings';
- }
-
- /**
- * Streams BindingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads BindingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return BindingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of BindingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of BindingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'BindingType' => Serialize::map($options['bindingType'], function($e) { return $e; }),
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of BindingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of BindingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new BindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a BindingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\Service\BindingContext
- */
- public function getContext($sid) {
- return new BindingContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.BindingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingOptions.php
deleted file mode 100644
index 5198a69..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['bindingType'] = $bindingType;
- $this->options['identity'] = $identity;
- }
-
- /**
- * The push technology used for the returned Bindings. Supported values are apn, gcm and fcm. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more information.
- *
- * @param string $bindingType The push technology used for the bindings
- * returned.
- * @return $this Fluent Builder
- */
- public function setBindingType($bindingType) {
- $this->options['bindingType'] = $bindingType;
- return $this;
- }
-
- /**
- * The identity
- *
- * @param string $identity The identity
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.ReadBindingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingPage.php
deleted file mode 100644
index 1464413..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/BindingPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new BindingInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.BindingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteContext.php
deleted file mode 100644
index c054dd1..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.InviteContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteInstance.php
deleted file mode 100644
index b6423d2..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteInstance.php
+++ /dev/null
@@ -1,138 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\InviteContext Context for this
- * InviteInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.InviteInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteList.php
deleted file mode 100644
index d99b20e..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites';
- }
-
- /**
- * Create a new InviteInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @param array|Options $options Optional Arguments
- * @return InviteInstance Newly created InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams InviteInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InviteInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InviteInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InviteInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InviteInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InviteContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\Service\Channel\InviteContext
- */
- public function getContext($sid) {
- return new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.InviteList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.php
deleted file mode 100644
index c87de06..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.php
+++ /dev/null
@@ -1,104 +0,0 @@
-options['roleSid'] = $roleSid;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateInviteOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadInviteOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/users) in this [Service](https://www.twilio.com/docs/api/chat/rest/services). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.ReadInviteOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InvitePage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InvitePage.php
deleted file mode 100644
index d745207..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/InvitePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.InvitePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberContext.php
deleted file mode 100644
index 1eb94e6..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'LastConsumedMessageIndex' => $options['lastConsumedMessageIndex'],
- 'LastConsumptionTimestamp' => Serialize::iso8601DateTime($options['lastConsumptionTimestamp']),
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.MemberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberInstance.php
deleted file mode 100644
index b87c639..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'lastConsumptionTimestamp' => Deserialize::dateTime(Values::array_get($payload, 'last_consumption_timestamp')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MemberContext Context for this
- * MemberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.MemberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberList.php
deleted file mode 100644
index 4111056..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberList.php
+++ /dev/null
@@ -1,187 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members';
- }
-
- /**
- * Create a new MemberInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service. See the access tokens docs for more details.
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Newly created MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'RoleSid' => $options['roleSid'],
- 'LastConsumedMessageIndex' => $options['lastConsumedMessageIndex'],
- 'LastConsumptionTimestamp' => Serialize::iso8601DateTime($options['lastConsumptionTimestamp']),
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MemberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MemberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MemberInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MemberInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MemberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MemberContext
- *
- * @param string $sid Key that uniquely defines the member to fetch.
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MemberContext
- */
- public function getContext($sid) {
- return new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.MemberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.php
deleted file mode 100644
index bc65abd..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.php
+++ /dev/null
@@ -1,346 +0,0 @@
-options['roleSid'] = $roleSid;
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- }
-
- /**
- * The role to be assigned to this member. Defaults to the roles specified on the [Service](https://www.twilio.com/docs/chat/api/services).
- *
- * @param string $roleSid The role to be assigned to this member. Defaults to
- * the roles specified on the Service.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.
- *
- * @param integer $lastConsumedMessageIndex Field used to specify the last
- * consumed Message index for the
- * Channel for this Member. Should
- * only be used when recreating a
- * Member from a backup/separate
- * source.
- * @return $this Fluent Builder
- */
- public function setLastConsumedMessageIndex($lastConsumedMessageIndex) {
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- return $this;
- }
-
- /**
- * ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source
- *
- * @param \DateTime $lastConsumptionTimestamp ISO8601 time indicating the last
- * datetime the Member consumed a
- * Message in the Channel. Should
- * only be used when recreating a
- * Member from a backup/separate
- * source
- * @return $this Fluent Builder
- */
- public function setLastConsumptionTimestamp($lastConsumptionTimestamp) {
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Members should be set as being created. Will
- * be set to the current time by the Chat service
- * if not specified. Note that this should only
- * be used in cases where a Member is being
- * recreated from a backup/separate source
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Member should be set as having been last
- * updated. Will be set to the null by the Chat
- * service if not specified. Note that this
- * should only be used in cases where a Member is
- * being recreated from a backup/separate source
- * and where a Member was previously updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMemberOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service. See the access tokens docs for more details.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/users) in this [Service](https://www.twilio.com/docs/api/chat/rest/services). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service. See the access tokens docs for more details.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.ReadMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMemberOptions extends Options {
- /**
- * @param string $roleSid The role to be assigned to this member.
- * @param integer $lastConsumedMessageIndex Field used to specify the last
- * consumed Message index for the
- * Channel for this Member.
- * @param \DateTime $lastConsumptionTimestamp ISO8601 time indicating the last
- * datetime the Member consumed a
- * Message in the Channel.
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Members should be set as being created.
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Member should be set as having been last
- * updated.
- */
- public function __construct($roleSid = Values::NONE, $lastConsumedMessageIndex = Values::NONE, $lastConsumptionTimestamp = Values::NONE, $dateCreated = Values::NONE, $dateUpdated = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- }
-
- /**
- * The role to be assigned to this member. Defaults to the roles specified on the [Service](https://www.twilio.com/docs/chat/api/services).
- *
- * @param string $roleSid The role to be assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.
- *
- * @param integer $lastConsumedMessageIndex Field used to specify the last
- * consumed Message index for the
- * Channel for this Member.
- * @return $this Fluent Builder
- */
- public function setLastConsumedMessageIndex($lastConsumedMessageIndex) {
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- return $this;
- }
-
- /**
- * ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source
- *
- * @param \DateTime $lastConsumptionTimestamp ISO8601 time indicating the last
- * datetime the Member consumed a
- * Message in the Channel.
- * @return $this Fluent Builder
- */
- public function setLastConsumptionTimestamp($lastConsumptionTimestamp) {
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Members should be set as being created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Member should be set as having been last
- * updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberPage.php
deleted file mode 100644
index cc3ba84..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MemberPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.MemberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageContext.php
deleted file mode 100644
index c1918c2..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageContext.php
+++ /dev/null
@@ -1,119 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Body' => $options['body'],
- 'Attributes' => $options['attributes'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'LastUpdatedBy' => $options['lastUpdatedBy'],
- 'From' => $options['from'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.MessageContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageInstance.php
deleted file mode 100644
index 3fad32a..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageInstance.php
+++ /dev/null
@@ -1,162 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'lastUpdatedBy' => Values::array_get($payload, 'last_updated_by'),
- 'wasEdited' => Values::array_get($payload, 'was_edited'),
- 'from' => Values::array_get($payload, 'from'),
- 'body' => Values::array_get($payload, 'body'),
- 'index' => Values::array_get($payload, 'index'),
- 'type' => Values::array_get($payload, 'type'),
- 'media' => Values::array_get($payload, 'media'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MessageContext Context for this
- * MessageInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.MessageInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageList.php
deleted file mode 100644
index bc3d36c..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageList.php
+++ /dev/null
@@ -1,186 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages';
- }
-
- /**
- * Create a new MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Newly created MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'From' => $options['from'],
- 'Attributes' => $options['attributes'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'LastUpdatedBy' => $options['lastUpdatedBy'],
- 'Body' => $options['body'],
- 'MediaSid' => $options['mediaSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MessageInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MessageInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MessageInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MessageInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MessageInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MessageContext
- *
- * @param string $sid Key that uniquely defines the message to fetch.
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MessageContext
- */
- public function getContext($sid) {
- return new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.MessageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.php
deleted file mode 100644
index fde8f2e..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.php
+++ /dev/null
@@ -1,334 +0,0 @@
-options['from'] = $from;
- $this->options['attributes'] = $attributes;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- $this->options['body'] = $body;
- $this->options['mediaSid'] = $mediaSid;
- }
-
- /**
- * The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the message's author. Defaults to `system`.
- *
- * @param string $from The identity of the message's author. Defaults to system
- * if not specified.
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * An string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that this will always be null for resources returned via LIST GET operations, but will be present for single GET operations.
- *
- * @param string $attributes The attributes metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Chat's history is being recreated from a backup/separate source.
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Message should be set as being created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Chat's history is being recreated from a backup/separate source and where a Message was previously updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Message should be set as having been last
- * updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Specify the Identity of the User that last updated the Message (if relevant)
- *
- * @param string $lastUpdatedBy Specify the Identity of the User that last
- * updated the Message
- * @return $this Fluent Builder
- */
- public function setLastUpdatedBy($lastUpdatedBy) {
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- return $this;
- }
-
- /**
- * A string message to send to this channel. You can also send structured data by serializing it into a string. May be empty string or `null`, will be set as empty string as a result in this cases.
- *
- * @param string $body The message body string.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * The [Media](https://www.twilio.com/docs/api/chat/rest/media) Sid to be attached to this Message.
- *
- * @param string $mediaSid The Media Sid to be attached to this Message.
- * @return $this Fluent Builder
- */
- public function setMediaSid($mediaSid) {
- $this->options['mediaSid'] = $mediaSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMessageOptions extends Options {
- /**
- * @param string $order Specifies sorting order for messages list, possible
- * values are: `asc` or `desc`.
- */
- public function __construct($order = Values::NONE) {
- $this->options['order'] = $order;
- }
-
- /**
- * Specifies sorting order for messages list, possible values are: `asc` or `desc`. If no value is specified, then `asc` is used as the default.
- *
- * @param string $order Specifies sorting order for messages list, possible
- * values are: `asc` or `desc`.
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.ReadMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMessageOptions extends Options {
- /**
- * @param string $body The message body string.
- * @param string $attributes The attributes metadata field you can use to store
- * any data you wish.
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Message should be set as being created.
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Message should be set as having been last
- * updated.
- * @param string $lastUpdatedBy Specify the Identity of the User that last
- * updated the Message
- * @param string $from The identity of the message's author.
- */
- public function __construct($body = Values::NONE, $attributes = Values::NONE, $dateCreated = Values::NONE, $dateUpdated = Values::NONE, $lastUpdatedBy = Values::NONE, $from = Values::NONE) {
- $this->options['body'] = $body;
- $this->options['attributes'] = $attributes;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- $this->options['from'] = $from;
- }
-
- /**
- * The message body string. You can also send structured data by serializing it into a string. May be updated to empty string or `null`, will be set as empty string as a result in this cases.
- *
- * @param string $body The message body string.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that this will always be null for resources returned via LIST GET operations, but will be present for single GET operations.
- *
- * @param string $attributes The attributes metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as being created.
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Message should be set as being created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as having been last updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Message should be set as having been last
- * updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Specify the Identity of the User that last updated the Message (if relevant)
- *
- * @param string $lastUpdatedBy Specify the Identity of the User that last
- * updated the Message
- * @return $this Fluent Builder
- */
- public function setLastUpdatedBy($lastUpdatedBy) {
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- return $this;
- }
-
- /**
- * The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the message's author.
- *
- * @param string $from The identity of the message's author.
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessagePage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessagePage.php
deleted file mode 100644
index d22a287..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/MessagePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.MessagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookContext.php
deleted file mode 100644
index 0da23df..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Webhooks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a WebhookInstance
- *
- * @return WebhookInstance Fetched WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the WebhookInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WebhookInstance Updated WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Configuration.Url' => $options['configurationUrl'],
- 'Configuration.Method' => $options['configurationMethod'],
- 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }),
- 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }),
- 'Configuration.FlowSid' => $options['configurationFlowSid'],
- 'Configuration.RetryCount' => $options['configurationRetryCount'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the WebhookInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.WebhookContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookInstance.php
deleted file mode 100644
index 0b2f2a0..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'type' => Values::array_get($payload, 'type'),
- 'url' => Values::array_get($payload, 'url'),
- 'configuration' => Values::array_get($payload, 'configuration'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\WebhookContext Context for this
- * WebhookInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WebhookContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WebhookInstance
- *
- * @return WebhookInstance Fetched WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the WebhookInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WebhookInstance Updated WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the WebhookInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.WebhookInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
deleted file mode 100644
index 5004c87..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Webhooks';
- }
-
- /**
- * Streams WebhookInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads WebhookInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return WebhookInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of WebhookInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of WebhookInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WebhookPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of WebhookInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of WebhookInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new WebhookPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new WebhookInstance
- *
- * @param string $type The type
- * @param array|Options $options Optional Arguments
- * @return WebhookInstance Newly created WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'Configuration.Url' => $options['configurationUrl'],
- 'Configuration.Method' => $options['configurationMethod'],
- 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }),
- 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }),
- 'Configuration.FlowSid' => $options['configurationFlowSid'],
- 'Configuration.RetryCount' => $options['configurationRetryCount'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Constructs a WebhookContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\Service\Channel\WebhookContext
- */
- public function getContext($sid) {
- return new WebhookContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.WebhookList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.php
deleted file mode 100644
index 1af0f9d..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.php
+++ /dev/null
@@ -1,241 +0,0 @@
-options['configurationUrl'] = $configurationUrl;
- $this->options['configurationMethod'] = $configurationMethod;
- $this->options['configurationFilters'] = $configurationFilters;
- $this->options['configurationTriggers'] = $configurationTriggers;
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- }
-
- /**
- * The configuration.url
- *
- * @param string $configurationUrl The configuration.url
- * @return $this Fluent Builder
- */
- public function setConfigurationUrl($configurationUrl) {
- $this->options['configurationUrl'] = $configurationUrl;
- return $this;
- }
-
- /**
- * The configuration.method
- *
- * @param string $configurationMethod The configuration.method
- * @return $this Fluent Builder
- */
- public function setConfigurationMethod($configurationMethod) {
- $this->options['configurationMethod'] = $configurationMethod;
- return $this;
- }
-
- /**
- * The configuration.filters
- *
- * @param string $configurationFilters The configuration.filters
- * @return $this Fluent Builder
- */
- public function setConfigurationFilters($configurationFilters) {
- $this->options['configurationFilters'] = $configurationFilters;
- return $this;
- }
-
- /**
- * The configuration.triggers
- *
- * @param string $configurationTriggers The configuration.triggers
- * @return $this Fluent Builder
- */
- public function setConfigurationTriggers($configurationTriggers) {
- $this->options['configurationTriggers'] = $configurationTriggers;
- return $this;
- }
-
- /**
- * The configuration.flow_sid
- *
- * @param string $configurationFlowSid The configuration.flow_sid
- * @return $this Fluent Builder
- */
- public function setConfigurationFlowSid($configurationFlowSid) {
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- return $this;
- }
-
- /**
- * The configuration.retry_count
- *
- * @param integer $configurationRetryCount The configuration.retry_count
- * @return $this Fluent Builder
- */
- public function setConfigurationRetryCount($configurationRetryCount) {
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateWebhookOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateWebhookOptions extends Options {
- /**
- * @param string $configurationUrl The configuration.url
- * @param string $configurationMethod The configuration.method
- * @param string $configurationFilters The configuration.filters
- * @param string $configurationTriggers The configuration.triggers
- * @param string $configurationFlowSid The configuration.flow_sid
- * @param integer $configurationRetryCount The configuration.retry_count
- */
- public function __construct($configurationUrl = Values::NONE, $configurationMethod = Values::NONE, $configurationFilters = Values::NONE, $configurationTriggers = Values::NONE, $configurationFlowSid = Values::NONE, $configurationRetryCount = Values::NONE) {
- $this->options['configurationUrl'] = $configurationUrl;
- $this->options['configurationMethod'] = $configurationMethod;
- $this->options['configurationFilters'] = $configurationFilters;
- $this->options['configurationTriggers'] = $configurationTriggers;
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- }
-
- /**
- * The configuration.url
- *
- * @param string $configurationUrl The configuration.url
- * @return $this Fluent Builder
- */
- public function setConfigurationUrl($configurationUrl) {
- $this->options['configurationUrl'] = $configurationUrl;
- return $this;
- }
-
- /**
- * The configuration.method
- *
- * @param string $configurationMethod The configuration.method
- * @return $this Fluent Builder
- */
- public function setConfigurationMethod($configurationMethod) {
- $this->options['configurationMethod'] = $configurationMethod;
- return $this;
- }
-
- /**
- * The configuration.filters
- *
- * @param string $configurationFilters The configuration.filters
- * @return $this Fluent Builder
- */
- public function setConfigurationFilters($configurationFilters) {
- $this->options['configurationFilters'] = $configurationFilters;
- return $this;
- }
-
- /**
- * The configuration.triggers
- *
- * @param string $configurationTriggers The configuration.triggers
- * @return $this Fluent Builder
- */
- public function setConfigurationTriggers($configurationTriggers) {
- $this->options['configurationTriggers'] = $configurationTriggers;
- return $this;
- }
-
- /**
- * The configuration.flow_sid
- *
- * @param string $configurationFlowSid The configuration.flow_sid
- * @return $this Fluent Builder
- */
- public function setConfigurationFlowSid($configurationFlowSid) {
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- return $this;
- }
-
- /**
- * The configuration.retry_count
- *
- * @param integer $configurationRetryCount The configuration.retry_count
- * @return $this Fluent Builder
- */
- public function setConfigurationRetryCount($configurationRetryCount) {
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateWebhookOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookPage.php
deleted file mode 100644
index 3ba409d..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/Channel/WebhookPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.WebhookPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelContext.php
deleted file mode 100644
index b1f8b69..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelContext.php
+++ /dev/null
@@ -1,236 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'CreatedBy' => $options['createdBy'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MemberList
- */
- protected function getMembers() {
- if (!$this->_members) {
- $this->_members = new MemberList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MessageList
- */
- protected function getMessages() {
- if (!$this->_messages) {
- $this->_messages = new MessageList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\InviteList
- */
- protected function getInvites() {
- if (!$this->_invites) {
- $this->_invites = new InviteList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_invites;
- }
-
- /**
- * Access the webhooks
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\WebhookList
- */
- protected function getWebhooks() {
- if (!$this->_webhooks) {
- $this->_webhooks = new WebhookList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_webhooks;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.ChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelInstance.php
deleted file mode 100644
index 02d3f32..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelInstance.php
+++ /dev/null
@@ -1,193 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'type' => Values::array_get($payload, 'type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'membersCount' => Values::array_get($payload, 'members_count'),
- 'messagesCount' => Values::array_get($payload, 'messages_count'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\ChannelContext Context for this
- * ChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MemberList
- */
- protected function getMembers() {
- return $this->proxy()->members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\MessageList
- */
- protected function getMessages() {
- return $this->proxy()->messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\InviteList
- */
- protected function getInvites() {
- return $this->proxy()->invites;
- }
-
- /**
- * Access the webhooks
- *
- * @return \Twilio\Rest\Chat\V2\Service\Channel\WebhookList
- */
- protected function getWebhooks() {
- return $this->proxy()->webhooks;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.ChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelList.php
deleted file mode 100644
index 31ecb62..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelList.php
+++ /dev/null
@@ -1,175 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels';
- }
-
- /**
- * Create a new ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Newly created ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- 'Type' => $options['type'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'CreatedBy' => $options['createdBy'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams ChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ChannelInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Type' => Serialize::map($options['type'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ChannelContext
- *
- * @param string $sid Key that uniquely defines the channel to fetch.
- * @return \Twilio\Rest\Chat\V2\Service\ChannelContext
- */
- public function getContext($sid) {
- return new ChannelContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.ChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelOptions.php
deleted file mode 100644
index 46c08bb..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelOptions.php
+++ /dev/null
@@ -1,334 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- $this->options['type'] = $type;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['createdBy'] = $createdBy;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set "{}" will be returned.
- *
- * @param string $attributes An optional string metadata field you can use to
- * store any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The visibility of the channel - `public` or `private`. Defaults to `public`.
- *
- * @param string $type The visibility of the channel - public or private.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a a Channel is being recreated from a backup/separate source
- *
- * @param \DateTime $dateCreated The optional ISO8601 time specifying the
- * datetime the Channel should be set as being
- * created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated.
- *
- * @param \DateTime $dateUpdated The optional ISO8601 time specifying the
- * datetime the Channel should be set as having
- * been last updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Optional field to specify the Identity of the User that created the Channel. Will be set to "system" if not specified.
- *
- * @param string $createdBy Optional field to specify the Identity of the User
- * that created the Channel.
- * @return $this Fluent Builder
- */
- public function setCreatedBy($createdBy) {
- $this->options['createdBy'] = $createdBy;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadChannelOptions extends Options {
- /**
- * @param string $type The visibility of the channel - public or private.
- */
- public function __construct($type = Values::NONE) {
- $this->options['type'] = $type;
- }
-
- /**
- * The visibility of the channel - `public` or `private`. Defaults to `public`.
- *
- * @param string $type The visibility of the channel - public or private.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.ReadChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateChannelOptions extends Options {
- /**
- * @param string $friendlyName A human-readable name for the Channel.
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @param string $attributes An optional string metadata field you can use to
- * store any data you wish.
- * @param \DateTime $dateCreated The optional ISO8601 time specifying the
- * datetime the Channel should be set as being
- * created.
- * @param \DateTime $dateUpdated The optional ISO8601 time specifying the
- * datetime the Channel should be set as having
- * been last updated.
- * @param string $createdBy Optional field to specify the Identity of the User
- * that created the Channel.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE, $attributes = Values::NONE, $dateCreated = Values::NONE, $dateUpdated = Values::NONE, $createdBy = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['createdBy'] = $createdBy;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set "{}" will be returned.
- *
- * @param string $attributes An optional string metadata field you can use to
- * store any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as being created.
- *
- * @param \DateTime $dateCreated The optional ISO8601 time specifying the
- * datetime the Channel should be set as being
- * created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as having been last updated.
- *
- * @param \DateTime $dateUpdated The optional ISO8601 time specifying the
- * datetime the Channel should be set as having
- * been last updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Optional field to specify the Identity of the User that created the Channel.
- *
- * @param string $createdBy Optional field to specify the Identity of the User
- * that created the Channel.
- * @return $this Fluent Builder
- */
- public function setCreatedBy($createdBy) {
- $this->options['createdBy'] = $createdBy;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelPage.php
deleted file mode 100644
index fb87066..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/ChannelPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.ChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleContext.php
deleted file mode 100644
index 13d97e4..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleContext.php
+++ /dev/null
@@ -1,105 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.RoleContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleInstance.php
deleted file mode 100644
index 4f0b6a2..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'permissions' => Values::array_get($payload, 'permissions'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\RoleContext Context for this
- * RoleInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RoleContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- return $this->proxy()->update($permission);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.RoleInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleList.php
deleted file mode 100644
index 49ea75e..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RoleList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles';
- }
-
- /**
- * Create a new RoleInstance
- *
- * @param string $friendlyName The human-readable name of this role.
- * @param string $type What kind of role this is.
- * @param string $permission A permission this role should have.
- * @return RoleInstance Newly created RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $type, $permission) {
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Type' => $type,
- 'Permission' => Serialize::map($permission, function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams RoleInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RoleInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RoleInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RoleInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RoleInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RoleContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\Service\RoleContext
- */
- public function getContext($sid) {
- return new RoleContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.RoleList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RolePage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/RolePage.php
deleted file mode 100644
index a5a7bdf..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/RolePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.RolePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingContext.php
deleted file mode 100644
index 54cb6bf..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Bindings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a UserBindingInstance
- *
- * @return UserBindingInstance Fetched UserBindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserBindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the UserBindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.UserBindingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingInstance.php
deleted file mode 100644
index ad184ea..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'endpoint' => Values::array_get($payload, 'endpoint'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'userSid' => Values::array_get($payload, 'user_sid'),
- 'credentialSid' => Values::array_get($payload, 'credential_sid'),
- 'bindingType' => Values::array_get($payload, 'binding_type'),
- 'messageTypes' => Values::array_get($payload, 'message_types'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'userSid' => $userSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\User\UserBindingContext Context for
- * this
- * UserBindingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserBindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserBindingInstance
- *
- * @return UserBindingInstance Fetched UserBindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the UserBindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.UserBindingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingList.php
deleted file mode 100644
index d77d492..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingList.php
+++ /dev/null
@@ -1,151 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Bindings';
- }
-
- /**
- * Streams UserBindingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserBindingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserBindingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserBindingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserBindingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'BindingType' => Serialize::map($options['bindingType'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserBindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserBindingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserBindingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserBindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserBindingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\Service\User\UserBindingContext
- */
- public function getContext($sid) {
- return new UserBindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.UserBindingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.php
deleted file mode 100644
index 9c506c9..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['bindingType'] = $bindingType;
- }
-
- /**
- * The push technology used for the returned Bindings. Supported values are apn, gcm and fcm. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more information.
- *
- * @param string $bindingType The push technology used for the bindings
- * returned.
- * @return $this Fluent Builder
- */
- public function setBindingType($bindingType) {
- $this->options['bindingType'] = $bindingType;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.ReadUserBindingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingPage.php
deleted file mode 100644
index 592fde6..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserBindingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserBindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.UserBindingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelContext.php
deleted file mode 100644
index 6f51aec..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelContext.php
+++ /dev/null
@@ -1,103 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'userSid' => $userSid,
- 'channelSid' => $channelSid,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Channels/' . rawurlencode($channelSid) . '';
- }
-
- /**
- * Fetch a UserChannelInstance
- *
- * @return UserChannelInstance Fetched UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Update the UserChannelInstance
- *
- * @param string $notificationLevel Push notification level to be assigned to
- * Channel of the User.
- * @return UserChannelInstance Updated UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($notificationLevel) {
- $data = Values::of(array('NotificationLevel' => $notificationLevel, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.UserChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelInstance.php
deleted file mode 100644
index df778d1..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelInstance.php
+++ /dev/null
@@ -1,142 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'userSid' => Values::array_get($payload, 'user_sid'),
- 'memberSid' => Values::array_get($payload, 'member_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'unreadMessagesCount' => Values::array_get($payload, 'unread_messages_count'),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- 'notificationLevel' => Values::array_get($payload, 'notification_level'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'userSid' => $userSid,
- 'channelSid' => $channelSid ?: $this->properties['channelSid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\User\UserChannelContext Context for
- * this
- * UserChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['channelSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserChannelInstance
- *
- * @return UserChannelInstance Fetched UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the UserChannelInstance
- *
- * @param string $notificationLevel Push notification level to be assigned to
- * Channel of the User.
- * @return UserChannelInstance Updated UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($notificationLevel) {
- return $this->proxy()->update($notificationLevel);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.UserChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelList.php
deleted file mode 100644
index 3d430f4..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelList.php
+++ /dev/null
@@ -1,144 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Channels';
- }
-
- /**
- * Streams UserChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserChannelInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserChannelContext
- *
- * @param string $channelSid The unique id of a Channel.
- * @return \Twilio\Rest\Chat\V2\Service\User\UserChannelContext
- */
- public function getContext($channelSid) {
- return new UserChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $channelSid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.UserChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelPage.php
deleted file mode 100644
index f231915..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/User/UserChannelPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.UserChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserContext.php
deleted file mode 100644
index 661bd2b..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserContext.php
+++ /dev/null
@@ -1,190 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\Chat\V2\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- if (!$this->_userChannels) {
- $this->_userChannels = new UserChannelList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_userChannels;
- }
-
- /**
- * Access the userBindings
- *
- * @return \Twilio\Rest\Chat\V2\Service\User\UserBindingList
- */
- protected function getUserBindings() {
- if (!$this->_userBindings) {
- $this->_userBindings = new UserBindingList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_userBindings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.UserContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserInstance.php
deleted file mode 100644
index 7ea2bcf..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserInstance.php
+++ /dev/null
@@ -1,172 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'isOnline' => Values::array_get($payload, 'is_online'),
- 'isNotifiable' => Values::array_get($payload, 'is_notifiable'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'joinedChannelsCount' => Values::array_get($payload, 'joined_channels_count'),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\Service\UserContext Context for this
- * UserInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\Chat\V2\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- return $this->proxy()->userChannels;
- }
-
- /**
- * Access the userBindings
- *
- * @return \Twilio\Rest\Chat\V2\Service\User\UserBindingList
- */
- protected function getUserBindings() {
- return $this->proxy()->userBindings;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.UserInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserList.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserList.php
deleted file mode 100644
index 4850ab9..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users';
- }
-
- /**
- * Create a new UserInstance
- *
- * @param string $identity A unique string that identifies the user within this
- * service - often a username or email address.
- * @param array|Options $options Optional Arguments
- * @return UserInstance Newly created UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams UserInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserContext
- *
- * @param string $sid Key that uniquely defines the user to fetch.
- * @return \Twilio\Rest\Chat\V2\Service\UserContext
- */
- public function getContext($sid) {
- return new UserContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.UserList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserOptions.php
deleted file mode 100644
index 54d32fb..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserOptions.php
+++ /dev/null
@@ -1,172 +0,0 @@
-options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user.
- *
- * @param string $roleSid The unique id of the Role assigned to this user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.CreateUserOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateUserOptions extends Options {
- /**
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @param string $friendlyName An optional human readable string representing
- * the user.
- */
- public function __construct($roleSid = Values::NONE, $attributes = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role][role] assigned to this user.
- *
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateUserOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserPage.php b/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserPage.php
deleted file mode 100644
index 104363d..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/Service/UserPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.UserPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceContext.php b/public/twilio-php/Twilio/Rest/Chat/V2/ServiceContext.php
deleted file mode 100644
index 6ebbf67..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceContext.php
+++ /dev/null
@@ -1,234 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DefaultServiceRoleSid' => $options['defaultServiceRoleSid'],
- 'DefaultChannelRoleSid' => $options['defaultChannelRoleSid'],
- 'DefaultChannelCreatorRoleSid' => $options['defaultChannelCreatorRoleSid'],
- 'ReadStatusEnabled' => Serialize::booleanToString($options['readStatusEnabled']),
- 'ReachabilityEnabled' => Serialize::booleanToString($options['reachabilityEnabled']),
- 'TypingIndicatorTimeout' => $options['typingIndicatorTimeout'],
- 'ConsumptionReportInterval' => $options['consumptionReportInterval'],
- 'Notifications.NewMessage.Enabled' => Serialize::booleanToString($options['notificationsNewMessageEnabled']),
- 'Notifications.NewMessage.Template' => $options['notificationsNewMessageTemplate'],
- 'Notifications.NewMessage.Sound' => $options['notificationsNewMessageSound'],
- 'Notifications.NewMessage.BadgeCountEnabled' => Serialize::booleanToString($options['notificationsNewMessageBadgeCountEnabled']),
- 'Notifications.AddedToChannel.Enabled' => Serialize::booleanToString($options['notificationsAddedToChannelEnabled']),
- 'Notifications.AddedToChannel.Template' => $options['notificationsAddedToChannelTemplate'],
- 'Notifications.AddedToChannel.Sound' => $options['notificationsAddedToChannelSound'],
- 'Notifications.RemovedFromChannel.Enabled' => Serialize::booleanToString($options['notificationsRemovedFromChannelEnabled']),
- 'Notifications.RemovedFromChannel.Template' => $options['notificationsRemovedFromChannelTemplate'],
- 'Notifications.RemovedFromChannel.Sound' => $options['notificationsRemovedFromChannelSound'],
- 'Notifications.InvitedToChannel.Enabled' => Serialize::booleanToString($options['notificationsInvitedToChannelEnabled']),
- 'Notifications.InvitedToChannel.Template' => $options['notificationsInvitedToChannelTemplate'],
- 'Notifications.InvitedToChannel.Sound' => $options['notificationsInvitedToChannelSound'],
- 'PreWebhookUrl' => $options['preWebhookUrl'],
- 'PostWebhookUrl' => $options['postWebhookUrl'],
- 'WebhookMethod' => $options['webhookMethod'],
- 'WebhookFilters' => Serialize::map($options['webhookFilters'], function($e) { return $e; }),
- 'Limits.ChannelMembers' => $options['limitsChannelMembers'],
- 'Limits.UserChannels' => $options['limitsUserChannels'],
- 'Media.CompatibilityMessage' => $options['mediaCompatibilityMessage'],
- 'PreWebhookRetryCount' => $options['preWebhookRetryCount'],
- 'PostWebhookRetryCount' => $options['postWebhookRetryCount'],
- 'Notifications.LogEnabled' => Serialize::booleanToString($options['notificationsLogEnabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\Chat\V2\Service\ChannelList
- */
- protected function getChannels() {
- if (!$this->_channels) {
- $this->_channels = new ChannelList($this->version, $this->solution['sid']);
- }
-
- return $this->_channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\Chat\V2\Service\RoleList
- */
- protected function getRoles() {
- if (!$this->_roles) {
- $this->_roles = new RoleList($this->version, $this->solution['sid']);
- }
-
- return $this->_roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\Chat\V2\Service\UserList
- */
- protected function getUsers() {
- if (!$this->_users) {
- $this->_users = new UserList($this->version, $this->solution['sid']);
- }
-
- return $this->_users;
- }
-
- /**
- * Access the bindings
- *
- * @return \Twilio\Rest\Chat\V2\Service\BindingList
- */
- protected function getBindings() {
- if (!$this->_bindings) {
- $this->_bindings = new BindingList($this->version, $this->solution['sid']);
- }
-
- return $this->_bindings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Chat/V2/ServiceInstance.php
deleted file mode 100644
index fed08c7..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceInstance.php
+++ /dev/null
@@ -1,204 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'defaultServiceRoleSid' => Values::array_get($payload, 'default_service_role_sid'),
- 'defaultChannelRoleSid' => Values::array_get($payload, 'default_channel_role_sid'),
- 'defaultChannelCreatorRoleSid' => Values::array_get($payload, 'default_channel_creator_role_sid'),
- 'readStatusEnabled' => Values::array_get($payload, 'read_status_enabled'),
- 'reachabilityEnabled' => Values::array_get($payload, 'reachability_enabled'),
- 'typingIndicatorTimeout' => Values::array_get($payload, 'typing_indicator_timeout'),
- 'consumptionReportInterval' => Values::array_get($payload, 'consumption_report_interval'),
- 'limits' => Values::array_get($payload, 'limits'),
- 'preWebhookUrl' => Values::array_get($payload, 'pre_webhook_url'),
- 'postWebhookUrl' => Values::array_get($payload, 'post_webhook_url'),
- 'webhookMethod' => Values::array_get($payload, 'webhook_method'),
- 'webhookFilters' => Values::array_get($payload, 'webhook_filters'),
- 'preWebhookRetryCount' => Values::array_get($payload, 'pre_webhook_retry_count'),
- 'postWebhookRetryCount' => Values::array_get($payload, 'post_webhook_retry_count'),
- 'notifications' => Values::array_get($payload, 'notifications'),
- 'media' => Values::array_get($payload, 'media'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Chat\V2\ServiceContext Context for this ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\Chat\V2\Service\ChannelList
- */
- protected function getChannels() {
- return $this->proxy()->channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\Chat\V2\Service\RoleList
- */
- protected function getRoles() {
- return $this->proxy()->roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\Chat\V2\Service\UserList
- */
- protected function getUsers() {
- return $this->proxy()->users;
- }
-
- /**
- * Access the bindings
- *
- * @return \Twilio\Rest\Chat\V2\Service\BindingList
- */
- protected function getBindings() {
- return $this->proxy()->bindings;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Chat.V2.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceList.php b/public/twilio-php/Twilio/Rest/Chat/V2/ServiceList.php
deleted file mode 100644
index 824b9bd..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceList.php
+++ /dev/null
@@ -1,156 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Chat\V2\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Chat/V2/ServiceOptions.php
deleted file mode 100644
index be75093..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/ServiceOptions.php
+++ /dev/null
@@ -1,565 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- $this->options['notificationsNewMessageSound'] = $notificationsNewMessageSound;
- $this->options['notificationsNewMessageBadgeCountEnabled'] = $notificationsNewMessageBadgeCountEnabled;
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- $this->options['notificationsAddedToChannelSound'] = $notificationsAddedToChannelSound;
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- $this->options['notificationsRemovedFromChannelSound'] = $notificationsRemovedFromChannelSound;
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- $this->options['notificationsInvitedToChannelSound'] = $notificationsInvitedToChannelSound;
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- $this->options['webhookMethod'] = $webhookMethod;
- $this->options['webhookFilters'] = $webhookFilters;
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- $this->options['mediaCompatibilityMessage'] = $mediaCompatibilityMessage;
- $this->options['preWebhookRetryCount'] = $preWebhookRetryCount;
- $this->options['postWebhookRetryCount'] = $postWebhookRetryCount;
- $this->options['notificationsLogEnabled'] = $notificationsLogEnabled;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The default_service_role_sid
- *
- * @param string $defaultServiceRoleSid The default_service_role_sid
- * @return $this Fluent Builder
- */
- public function setDefaultServiceRoleSid($defaultServiceRoleSid) {
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned on channel join (see [Roles](https://www.twilio.com/docs/chat/api/roles) data model for the details)
- *
- * @param string $defaultChannelRoleSid Channel role assigned on channel join
- * @return $this Fluent Builder
- */
- public function setDefaultChannelRoleSid($defaultChannelRoleSid) {
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned to creator of channel when joining for first time
- *
- * @param string $defaultChannelCreatorRoleSid Channel role assigned to creator
- * of channel when joining for
- * first time
- * @return $this Fluent Builder
- */
- public function setDefaultChannelCreatorRoleSid($defaultChannelCreatorRoleSid) {
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- return $this;
- }
-
- /**
- * `true` if the member read status feature is enabled, `false` if not. Defaults to `true`.
- *
- * @param boolean $readStatusEnabled true if the member read status feature is
- * enabled, false if not.
- * @return $this Fluent Builder
- */
- public function setReadStatusEnabled($readStatusEnabled) {
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- return $this;
- }
-
- /**
- * `true` if the reachability feature should be enabled. Defaults to `false`
- *
- * @param boolean $reachabilityEnabled true if the reachability feature should
- * be enabled.
- * @return $this Fluent Builder
- */
- public function setReachabilityEnabled($reachabilityEnabled) {
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- return $this;
- }
-
- /**
- * The duration in seconds indicating the timeout after "started typing" event when client should assume that user is not typing anymore even if no "ended typing" message received
- *
- * @param integer $typingIndicatorTimeout The duration in seconds indicating
- * the timeout after "started typing"
- * event when client should assume that
- * user is not typing anymore even if no
- * "ended typing" message received
- * @return $this Fluent Builder
- */
- public function setTypingIndicatorTimeout($typingIndicatorTimeout) {
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- return $this;
- }
-
- /**
- * The consumption_report_interval
- *
- * @param integer $consumptionReportInterval The consumption_report_interval
- * @return $this Fluent Builder
- */
- public function setConsumptionReportInterval($consumptionReportInterval) {
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- return $this;
- }
-
- /**
- * The notifications.new_message.enabled
- *
- * @param boolean $notificationsNewMessageEnabled The
- * notifications.new_message.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageEnabled($notificationsNewMessageEnabled) {
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- return $this;
- }
-
- /**
- * The notifications.new_message.template
- *
- * @param string $notificationsNewMessageTemplate The
- * notifications.new_message.template
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageTemplate($notificationsNewMessageTemplate) {
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- return $this;
- }
-
- /**
- * The notifications.new_message.sound
- *
- * @param string $notificationsNewMessageSound The
- * notifications.new_message.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageSound($notificationsNewMessageSound) {
- $this->options['notificationsNewMessageSound'] = $notificationsNewMessageSound;
- return $this;
- }
-
- /**
- * The notifications.new_message.badge_count_enabled
- *
- * @param boolean $notificationsNewMessageBadgeCountEnabled The
- * notifications.new_message.badge_count_enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageBadgeCountEnabled($notificationsNewMessageBadgeCountEnabled) {
- $this->options['notificationsNewMessageBadgeCountEnabled'] = $notificationsNewMessageBadgeCountEnabled;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.enabled
- *
- * @param boolean $notificationsAddedToChannelEnabled The
- * notifications.added_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelEnabled($notificationsAddedToChannelEnabled) {
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.template
- *
- * @param string $notificationsAddedToChannelTemplate The
- * notifications.added_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelTemplate($notificationsAddedToChannelTemplate) {
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.sound
- *
- * @param string $notificationsAddedToChannelSound The
- * notifications.added_to_channel.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelSound($notificationsAddedToChannelSound) {
- $this->options['notificationsAddedToChannelSound'] = $notificationsAddedToChannelSound;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.enabled
- *
- * @param boolean $notificationsRemovedFromChannelEnabled The
- * notifications.removed_from_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelEnabled($notificationsRemovedFromChannelEnabled) {
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.template
- *
- * @param string $notificationsRemovedFromChannelTemplate The
- * notifications.removed_from_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelTemplate($notificationsRemovedFromChannelTemplate) {
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.sound
- *
- * @param string $notificationsRemovedFromChannelSound The
- * notifications.removed_from_channel.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelSound($notificationsRemovedFromChannelSound) {
- $this->options['notificationsRemovedFromChannelSound'] = $notificationsRemovedFromChannelSound;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.enabled
- *
- * @param boolean $notificationsInvitedToChannelEnabled The
- * notifications.invited_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelEnabled($notificationsInvitedToChannelEnabled) {
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.template
- *
- * @param string $notificationsInvitedToChannelTemplate The
- * notifications.invited_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelTemplate($notificationsInvitedToChannelTemplate) {
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.sound
- *
- * @param string $notificationsInvitedToChannelSound The
- * notifications.invited_to_channel.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelSound($notificationsInvitedToChannelSound) {
- $this->options['notificationsInvitedToChannelSound'] = $notificationsInvitedToChannelSound;
- return $this;
- }
-
- /**
- * The webhook URL for PRE-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $preWebhookUrl The webhook URL for PRE-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPreWebhookUrl($preWebhookUrl) {
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook URL for POST-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $postWebhookUrl The webhook URL for POST-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPostWebhookUrl($postWebhookUrl) {
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook request format to use. Must be POST or GET. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $webhookMethod The webhook request format to use.
- * @return $this Fluent Builder
- */
- public function setWebhookMethod($webhookMethod) {
- $this->options['webhookMethod'] = $webhookMethod;
- return $this;
- }
-
- /**
- * The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $webhookFilters The list of WebHook events that are enabled
- * for this Service instance.
- * @return $this Fluent Builder
- */
- public function setWebhookFilters($webhookFilters) {
- $this->options['webhookFilters'] = $webhookFilters;
- return $this;
- }
-
- /**
- * The maximum number of Members that can be added to Channels within this Service. The maximum allowed value is 1,000
- *
- * @param integer $limitsChannelMembers The maximum number of Members that can
- * be added to Channels within this
- * Service.
- * @return $this Fluent Builder
- */
- public function setLimitsChannelMembers($limitsChannelMembers) {
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- return $this;
- }
-
- /**
- * The maximum number of Channels Users can be a Member of within this Service. The maximum value allowed is 1,000
- *
- * @param integer $limitsUserChannels The maximum number of Channels Users can
- * be a Member of within this Service.
- * @return $this Fluent Builder
- */
- public function setLimitsUserChannels($limitsUserChannels) {
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- return $this;
- }
-
- /**
- * The media.compatibility_message
- *
- * @param string $mediaCompatibilityMessage The media.compatibility_message
- * @return $this Fluent Builder
- */
- public function setMediaCompatibilityMessage($mediaCompatibilityMessage) {
- $this->options['mediaCompatibilityMessage'] = $mediaCompatibilityMessage;
- return $this;
- }
-
- /**
- * Count of times webhook will be retried in case of timeout (5 seconds) or 429/503/504 HTTP responses. Default retry count is 0 times.
- *
- * @param integer $preWebhookRetryCount Count of times webhook will be retried
- * in case of timeout or 429/503/504 HTTP
- * responses.
- * @return $this Fluent Builder
- */
- public function setPreWebhookRetryCount($preWebhookRetryCount) {
- $this->options['preWebhookRetryCount'] = $preWebhookRetryCount;
- return $this;
- }
-
- /**
- * Count of times webhook will be retried in case of timeout (5 seconds) or 429/503/504 HTTP responses. Default retry count is 0 times.
- *
- * @param integer $postWebhookRetryCount Count of times webhook will be retried
- * in case of timeout or 429/503/504 HTTP
- * responses.
- * @return $this Fluent Builder
- */
- public function setPostWebhookRetryCount($postWebhookRetryCount) {
- $this->options['postWebhookRetryCount'] = $postWebhookRetryCount;
- return $this;
- }
-
- /**
- * The notifications.log_enabled
- *
- * @param boolean $notificationsLogEnabled The notifications.log_enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsLogEnabled($notificationsLogEnabled) {
- $this->options['notificationsLogEnabled'] = $notificationsLogEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Chat.V2.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Chat/V2/ServicePage.php b/public/twilio-php/Twilio/Rest/Chat/V2/ServicePage.php
deleted file mode 100644
index b5f097a..0000000
--- a/public/twilio-php/Twilio/Rest/Chat/V2/ServicePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Chat.V2.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Client.php b/public/twilio-php/Twilio/Rest/Client.php
deleted file mode 100644
index 775fe92..0000000
--- a/public/twilio-php/Twilio/Rest/Client.php
+++ /dev/null
@@ -1,905 +0,0 @@
-username = $username;
- } else {
- if (array_key_exists(self::ENV_ACCOUNT_SID, $environment)) {
- $this->username = $environment[self::ENV_ACCOUNT_SID];
- }
- }
-
- if ($password) {
- $this->password = $password;
- } else {
- if (array_key_exists(self::ENV_AUTH_TOKEN, $environment)) {
- $this->password = $environment[self::ENV_AUTH_TOKEN];
- }
- }
-
- if (!$this->username || !$this->password) {
- throw new ConfigurationException("Credentials are required to create a Client");
- }
-
- $this->accountSid = $accountSid ?: $this->username;
- $this->region = $region;
-
- if ($httpClient) {
- $this->httpClient = $httpClient;
- } else {
- $this->httpClient = new CurlClient();
- }
- }
-
- /**
- * Makes a request to the Twilio API using the configured http client
- * Authentication information is automatically added if none is provided
- *
- * @param string $method HTTP Method
- * @param string $uri Fully qualified url
- * @param string[] $params Query string parameters
- * @param string[] $data POST body data
- * @param string[] $headers HTTP Headers
- * @param string $username User for Authentication
- * @param string $password Password for Authentication
- * @param int $timeout Timeout in seconds
- * @return \Twilio\Http\Response Response from the Twilio API
- */
- public function request($method, $uri, $params = array(), $data = array(), $headers = array(), $username = null, $password = null, $timeout = null) {
- $username = $username ? $username : $this->username;
- $password = $password ? $password : $this->password;
-
- $headers['User-Agent'] = 'twilio-php/' . VersionInfo::string() .
- ' (PHP ' . phpversion() . ')';
- $headers['Accept-Charset'] = 'utf-8';
-
- if ($method == 'POST' && !array_key_exists('Content-Type', $headers)) {
- $headers['Content-Type'] = 'application/x-www-form-urlencoded';
- }
-
- if (!array_key_exists('Accept', $headers)) {
- $headers['Accept'] = 'application/json';
- }
-
- if ($this->region) {
- list($head, $tail) = explode('.', $uri, 2);
-
- if (strpos($tail, $this->region) !== 0) {
- $uri = implode('.', array($head, $this->region, $tail));
- }
- }
-
- return $this->getHttpClient()->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
- }
-
- /**
- * Retrieve the Username
- *
- * @return string Current Username
- */
- public function getUsername() {
- return $this->username;
- }
-
- /**
- * Retrieve the Password
- *
- * @return string Current Password
- */
- public function getPassword() {
- return $this->password;
- }
-
- /**
- * Retrieve the AccountSid
- *
- * @return string Current AccountSid
- */
- public function getAccountSid() {
- return $this->accountSid;
- }
-
- /**
- * Retrieve the Region
- *
- * @return string Current Region
- */
- public function getRegion() {
- return $this->region;
- }
-
- /**
- * Retrieve the HttpClient
- *
- * @return \Twilio\Http\Client Current HttpClient
- */
- public function getHttpClient() {
- return $this->httpClient;
- }
-
- /**
- * Set the HttpClient
- *
- * @param \Twilio\Http\Client $httpClient HttpClient to use
- */
- public function setHttpClient(HttpClient $httpClient) {
- $this->httpClient = $httpClient;
- }
-
- /**
- * Access the Accounts Twilio Domain
- *
- * @return \Twilio\Rest\Accounts Accounts Twilio Domain
- */
- protected function getAccounts() {
- if (!$this->_accounts) {
- $this->_accounts = new Accounts($this);
- }
- return $this->_accounts;
- }
-
- /**
- * Access the Api Twilio Domain
- *
- * @return \Twilio\Rest\Api Api Twilio Domain
- */
- protected function getApi() {
- if (!$this->_api) {
- $this->_api = new Api($this);
- }
- return $this->_api;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\AccountContext Account provided as the
- * authenticating account
- */
- public function getAccount() {
- return $this->api->v2010->account;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AddressList
- */
- protected function getAddresses() {
- return $this->api->v2010->account->addresses;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\AddressContext
- */
- protected function contextAddresses($sid) {
- return $this->api->v2010->account->addresses($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationList
- */
- protected function getApplications() {
- return $this->api->v2010->account->applications;
- }
-
- /**
- * @param string $sid Fetch by unique Application Sid
- * @return \Twilio\Rest\Api\V2010\Account\ApplicationContext
- */
- protected function contextApplications($sid) {
- return $this->api->v2010->account->applications($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList
- */
- protected function getAuthorizedConnectApps() {
- return $this->api->v2010->account->authorizedConnectApps;
- }
-
- /**
- * @param string $connectAppSid The connect_app_sid
- * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppContext
- */
- protected function contextAuthorizedConnectApps($connectAppSid) {
- return $this->api->v2010->account->authorizedConnectApps($connectAppSid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList
- */
- protected function getAvailablePhoneNumbers() {
- return $this->api->v2010->account->availablePhoneNumbers;
- }
-
- /**
- * @param string $countryCode The country_code
- * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryContext
- */
- protected function contextAvailablePhoneNumbers($countryCode) {
- return $this->api->v2010->account->availablePhoneNumbers($countryCode);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\BalanceList
- */
- protected function getBalance() {
- return $this->api->v2010->account->balance;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\CallList
- */
- protected function getCalls() {
- return $this->api->v2010->account->calls;
- }
-
- /**
- * @param string $sid Call Sid that uniquely identifies the Call to fetch
- * @return \Twilio\Rest\Api\V2010\Account\CallContext
- */
- protected function contextCalls($sid) {
- return $this->api->v2010->account->calls($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceList
- */
- protected function getConferences() {
- return $this->api->v2010->account->conferences;
- }
-
- /**
- * @param string $sid Fetch by unique conference Sid
- * @return \Twilio\Rest\Api\V2010\Account\ConferenceContext
- */
- protected function contextConferences($sid) {
- return $this->api->v2010->account->conferences($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppList
- */
- protected function getConnectApps() {
- return $this->api->v2010->account->connectApps;
- }
-
- /**
- * @param string $sid Fetch by unique connect-app Sid
- * @return \Twilio\Rest\Api\V2010\Account\ConnectAppContext
- */
- protected function contextConnectApps($sid) {
- return $this->api->v2010->account->connectApps($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList
- */
- protected function getIncomingPhoneNumbers() {
- return $this->api->v2010->account->incomingPhoneNumbers;
- }
-
- /**
- * @param string $sid Fetch by unique incoming-phone-number Sid
- * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext
- */
- protected function contextIncomingPhoneNumbers($sid) {
- return $this->api->v2010->account->incomingPhoneNumbers($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\KeyList
- */
- protected function getKeys() {
- return $this->api->v2010->account->keys;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\KeyContext
- */
- protected function contextKeys($sid) {
- return $this->api->v2010->account->keys($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\MessageList
- */
- protected function getMessages() {
- return $this->api->v2010->account->messages;
- }
-
- /**
- * @param string $sid Fetch by unique message Sid
- * @return \Twilio\Rest\Api\V2010\Account\MessageContext
- */
- protected function contextMessages($sid) {
- return $this->api->v2010->account->messages($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NewKeyList
- */
- protected function getNewKeys() {
- return $this->api->v2010->account->newKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList
- */
- protected function getNewSigningKeys() {
- return $this->api->v2010->account->newSigningKeys;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\NotificationList
- */
- protected function getNotifications() {
- return $this->api->v2010->account->notifications;
- }
-
- /**
- * @param string $sid Fetch by unique notification Sid
- * @return \Twilio\Rest\Api\V2010\Account\NotificationContext
- */
- protected function contextNotifications($sid) {
- return $this->api->v2010->account->notifications($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
- */
- protected function getOutgoingCallerIds() {
- return $this->api->v2010->account->outgoingCallerIds;
- }
-
- /**
- * @param string $sid Fetch by unique outgoing-caller-id Sid
- * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdContext
- */
- protected function contextOutgoingCallerIds($sid) {
- return $this->api->v2010->account->outgoingCallerIds($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\QueueList
- */
- protected function getQueues() {
- return $this->api->v2010->account->queues;
- }
-
- /**
- * @param string $sid Fetch by unique queue Sid
- * @return \Twilio\Rest\Api\V2010\Account\QueueContext
- */
- protected function contextQueues($sid) {
- return $this->api->v2010->account->queues($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\RecordingList
- */
- protected function getRecordings() {
- return $this->api->v2010->account->recordings;
- }
-
- /**
- * @param string $sid Fetch by unique recording SID
- * @return \Twilio\Rest\Api\V2010\Account\RecordingContext
- */
- protected function contextRecordings($sid) {
- return $this->api->v2010->account->recordings($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyList
- */
- protected function getSigningKeys() {
- return $this->api->v2010->account->signingKeys;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Api\V2010\Account\SigningKeyContext
- */
- protected function contextSigningKeys($sid) {
- return $this->api->v2010->account->signingKeys($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\SipList
- */
- protected function getSip() {
- return $this->api->v2010->account->sip;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeList
- */
- protected function getShortCodes() {
- return $this->api->v2010->account->shortCodes;
- }
-
- /**
- * @param string $sid Fetch by unique short-code Sid
- * @return \Twilio\Rest\Api\V2010\Account\ShortCodeContext
- */
- protected function contextShortCodes($sid) {
- return $this->api->v2010->account->shortCodes($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\TokenList
- */
- protected function getTokens() {
- return $this->api->v2010->account->tokens;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionList
- */
- protected function getTranscriptions() {
- return $this->api->v2010->account->transcriptions;
- }
-
- /**
- * @param string $sid Fetch by unique transcription SID
- * @return \Twilio\Rest\Api\V2010\Account\TranscriptionContext
- */
- protected function contextTranscriptions($sid) {
- return $this->api->v2010->account->transcriptions($sid);
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\UsageList
- */
- protected function getUsage() {
- return $this->api->v2010->account->usage;
- }
-
- /**
- * @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList
- */
- protected function getValidationRequests() {
- return $this->api->v2010->account->validationRequests;
- }
-
- /**
- * Access the Authy Twilio Domain
- *
- * @return \Twilio\Rest\Authy Authy Twilio Domain
- */
- protected function getAuthy() {
- if (!$this->_authy) {
- $this->_authy = new Authy($this);
- }
- return $this->_authy;
- }
-
- /**
- * Access the Autopilot Twilio Domain
- *
- * @return \Twilio\Rest\Autopilot Autopilot Twilio Domain
- */
- protected function getAutopilot() {
- if (!$this->_autopilot) {
- $this->_autopilot = new Autopilot($this);
- }
- return $this->_autopilot;
- }
-
- /**
- * Access the Chat Twilio Domain
- *
- * @return \Twilio\Rest\Chat Chat Twilio Domain
- */
- protected function getChat() {
- if (!$this->_chat) {
- $this->_chat = new Chat($this);
- }
- return $this->_chat;
- }
-
- /**
- * Access the Fax Twilio Domain
- *
- * @return \Twilio\Rest\Fax Fax Twilio Domain
- */
- protected function getFax() {
- if (!$this->_fax) {
- $this->_fax = new Fax($this);
- }
- return $this->_fax;
- }
-
- /**
- * Access the IpMessaging Twilio Domain
- *
- * @return \Twilio\Rest\IpMessaging IpMessaging Twilio Domain
- */
- protected function getIpMessaging() {
- if (!$this->_ipMessaging) {
- $this->_ipMessaging = new IpMessaging($this);
- }
- return $this->_ipMessaging;
- }
-
- /**
- * Access the Lookups Twilio Domain
- *
- * @return \Twilio\Rest\Lookups Lookups Twilio Domain
- */
- protected function getLookups() {
- if (!$this->_lookups) {
- $this->_lookups = new Lookups($this);
- }
- return $this->_lookups;
- }
-
- /**
- * Access the Monitor Twilio Domain
- *
- * @return \Twilio\Rest\Monitor Monitor Twilio Domain
- */
- protected function getMonitor() {
- if (!$this->_monitor) {
- $this->_monitor = new Monitor($this);
- }
- return $this->_monitor;
- }
-
- /**
- * Access the Notify Twilio Domain
- *
- * @return \Twilio\Rest\Notify Notify Twilio Domain
- */
- protected function getNotify() {
- if (!$this->_notify) {
- $this->_notify = new Notify($this);
- }
- return $this->_notify;
- }
-
- /**
- * Access the Preview Twilio Domain
- *
- * @return \Twilio\Rest\Preview Preview Twilio Domain
- */
- protected function getPreview() {
- if (!$this->_preview) {
- $this->_preview = new Preview($this);
- }
- return $this->_preview;
- }
-
- /**
- * Access the Pricing Twilio Domain
- *
- * @return \Twilio\Rest\Pricing Pricing Twilio Domain
- */
- protected function getPricing() {
- if (!$this->_pricing) {
- $this->_pricing = new Pricing($this);
- }
- return $this->_pricing;
- }
-
- /**
- * Access the Proxy Twilio Domain
- *
- * @return \Twilio\Rest\Proxy Proxy Twilio Domain
- */
- protected function getProxy() {
- if (!$this->_proxy) {
- $this->_proxy = new Proxy($this);
- }
- return $this->_proxy;
- }
-
- /**
- * Access the Taskrouter Twilio Domain
- *
- * @return \Twilio\Rest\Taskrouter Taskrouter Twilio Domain
- */
- protected function getTaskrouter() {
- if (!$this->_taskrouter) {
- $this->_taskrouter = new Taskrouter($this);
- }
- return $this->_taskrouter;
- }
-
- /**
- * Access the Trunking Twilio Domain
- *
- * @return \Twilio\Rest\Trunking Trunking Twilio Domain
- */
- protected function getTrunking() {
- if (!$this->_trunking) {
- $this->_trunking = new Trunking($this);
- }
- return $this->_trunking;
- }
-
- /**
- * Access the Video Twilio Domain
- *
- * @return \Twilio\Rest\Video Video Twilio Domain
- */
- protected function getVideo() {
- if (!$this->_video) {
- $this->_video = new Video($this);
- }
- return $this->_video;
- }
-
- /**
- * Access the Messaging Twilio Domain
- *
- * @return \Twilio\Rest\Messaging Messaging Twilio Domain
- */
- protected function getMessaging() {
- if (!$this->_messaging) {
- $this->_messaging = new Messaging($this);
- }
- return $this->_messaging;
- }
-
- /**
- * Access the Wireless Twilio Domain
- *
- * @return \Twilio\Rest\Wireless Wireless Twilio Domain
- */
- protected function getWireless() {
- if (!$this->_wireless) {
- $this->_wireless = new Wireless($this);
- }
- return $this->_wireless;
- }
-
- /**
- * Access the Sync Twilio Domain
- *
- * @return \Twilio\Rest\Sync Sync Twilio Domain
- */
- protected function getSync() {
- if (!$this->_sync) {
- $this->_sync = new Sync($this);
- }
- return $this->_sync;
- }
-
- /**
- * Access the Studio Twilio Domain
- *
- * @return \Twilio\Rest\Studio Studio Twilio Domain
- */
- protected function getStudio() {
- if (!$this->_studio) {
- $this->_studio = new Studio($this);
- }
- return $this->_studio;
- }
-
- /**
- * Access the Verify Twilio Domain
- *
- * @return \Twilio\Rest\Verify Verify Twilio Domain
- */
- protected function getVerify() {
- if (!$this->_verify) {
- $this->_verify = new Verify($this);
- }
- return $this->_verify;
- }
-
- /**
- * Access the Voice Twilio Domain
- *
- * @return \Twilio\Rest\Voice Voice Twilio Domain
- */
- protected function getVoice() {
- if (!$this->_voice) {
- $this->_voice = new Voice($this);
- }
- return $this->_voice;
- }
-
- /**
- * Magic getter to lazy load domains
- *
- * @param string $name Domain to return
- * @return \Twilio\Domain The requested domain
- * @throws TwilioException For unknown domains
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown domain ' . $name);
- }
-
- /**
- * Magic call to lazy load contexts
- *
- * @param string $name Context to return
- * @param mixed[] $arguments Context to return
- * @return \Twilio\InstanceContext The requested context
- * @throws TwilioException For unknown contexts
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Client ' . $this->getAccountSid() . ']';
- }
-
- /**
- * Validates connection to new SSL certificate endpoint
- *
- * @param CurlClient $client
- * @throws TwilioException if request fails
- */
- public function validateSslCertificate($client) {
- $response = $client->request('GET', 'https://api.twilio.com:8443');
-
- if ($response->getStatusCode() < 200 || $response->getStatusCode() > 300) {
- throw new TwilioException("Failed to validate SSL certificate");
- }
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax.php b/public/twilio-php/Twilio/Rest/Fax.php
deleted file mode 100644
index 6e0dffa..0000000
--- a/public/twilio-php/Twilio/Rest/Fax.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://fax.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Fax\V1 Version v1 of fax
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Fax\V1\FaxList
- */
- protected function getFaxes() {
- return $this->v1->faxes;
- }
-
- /**
- * @param string $sid A string that uniquely identifies this fax.
- * @return \Twilio\Rest\Fax\V1\FaxContext
- */
- protected function contextFaxes($sid) {
- return $this->v1->faxes($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Fax]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1.php b/public/twilio-php/Twilio/Rest/Fax/V1.php
deleted file mode 100644
index 2e819ce..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Fax\V1\FaxList
- */
- protected function getFaxes() {
- if (!$this->_faxes) {
- $this->_faxes = new FaxList($this);
- }
- return $this->_faxes;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Fax.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaContext.php b/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaContext.php
deleted file mode 100644
index c185816..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('faxSid' => $faxSid, 'sid' => $sid, );
-
- $this->uri = '/Faxes/' . rawurlencode($faxSid) . '/Media/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FaxMediaInstance
- *
- * @return FaxMediaInstance Fetched FaxMediaInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FaxMediaInstance(
- $this->version,
- $payload,
- $this->solution['faxSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FaxMediaInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Fax.V1.FaxMediaContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaInstance.php b/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaInstance.php
deleted file mode 100644
index bed9f9d..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaInstance.php
+++ /dev/null
@@ -1,127 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'faxSid' => Values::array_get($payload, 'fax_sid'),
- 'contentType' => Values::array_get($payload, 'content_type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('faxSid' => $faxSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Fax\V1\Fax\FaxMediaContext Context for this
- * FaxMediaInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FaxMediaContext(
- $this->version,
- $this->solution['faxSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FaxMediaInstance
- *
- * @return FaxMediaInstance Fetched FaxMediaInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FaxMediaInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Fax.V1.FaxMediaInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaList.php b/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaList.php
deleted file mode 100644
index d00b65d..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaList.php
+++ /dev/null
@@ -1,140 +0,0 @@
-solution = array('faxSid' => $faxSid, );
-
- $this->uri = '/Faxes/' . rawurlencode($faxSid) . '/Media';
- }
-
- /**
- * Streams FaxMediaInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FaxMediaInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FaxMediaInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FaxMediaInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FaxMediaInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FaxMediaPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FaxMediaInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FaxMediaInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FaxMediaPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a FaxMediaContext
- *
- * @param string $sid A string that uniquely identifies this fax media
- * @return \Twilio\Rest\Fax\V1\Fax\FaxMediaContext
- */
- public function getContext($sid) {
- return new FaxMediaContext($this->version, $this->solution['faxSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Fax.V1.FaxMediaList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaPage.php b/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaPage.php
deleted file mode 100644
index 85b2b74..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/Fax/FaxMediaPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FaxMediaInstance($this->version, $payload, $this->solution['faxSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Fax.V1.FaxMediaPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/FaxContext.php b/public/twilio-php/Twilio/Rest/Fax/V1/FaxContext.php
deleted file mode 100644
index 32798ef..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/FaxContext.php
+++ /dev/null
@@ -1,152 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Faxes/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FaxInstance
- *
- * @return FaxInstance Fetched FaxInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FaxInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the FaxInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FaxInstance Updated FaxInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Status' => $options['status'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FaxInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the FaxInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the media
- *
- * @return \Twilio\Rest\Fax\V1\Fax\FaxMediaList
- */
- protected function getMedia() {
- if (!$this->_media) {
- $this->_media = new FaxMediaList($this->version, $this->solution['sid']);
- }
-
- return $this->_media;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Fax.V1.FaxContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/FaxInstance.php b/public/twilio-php/Twilio/Rest/Fax/V1/FaxInstance.php
deleted file mode 100644
index 0d33aa7..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/FaxInstance.php
+++ /dev/null
@@ -1,166 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'from' => Values::array_get($payload, 'from'),
- 'to' => Values::array_get($payload, 'to'),
- 'quality' => Values::array_get($payload, 'quality'),
- 'mediaSid' => Values::array_get($payload, 'media_sid'),
- 'mediaUrl' => Values::array_get($payload, 'media_url'),
- 'numPages' => Values::array_get($payload, 'num_pages'),
- 'duration' => Values::array_get($payload, 'duration'),
- 'status' => Values::array_get($payload, 'status'),
- 'direction' => Values::array_get($payload, 'direction'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'price' => Values::array_get($payload, 'price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Fax\V1\FaxContext Context for this FaxInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FaxContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FaxInstance
- *
- * @return FaxInstance Fetched FaxInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the FaxInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FaxInstance Updated FaxInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the FaxInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the media
- *
- * @return \Twilio\Rest\Fax\V1\Fax\FaxMediaList
- */
- protected function getMedia() {
- return $this->proxy()->media;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Fax.V1.FaxInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/FaxList.php b/public/twilio-php/Twilio/Rest/Fax/V1/FaxList.php
deleted file mode 100644
index ccbf08d..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/FaxList.php
+++ /dev/null
@@ -1,183 +0,0 @@
-solution = array();
-
- $this->uri = '/Faxes';
- }
-
- /**
- * Streams FaxInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FaxInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FaxInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FaxInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FaxInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'From' => $options['from'],
- 'To' => $options['to'],
- 'DateCreatedOnOrBefore' => Serialize::iso8601DateTime($options['dateCreatedOnOrBefore']),
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FaxPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FaxInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FaxInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FaxPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FaxInstance
- *
- * @param string $to The phone number or SIP address to send the fax to
- * @param string $mediaUrl URL that points to the fax media
- * @param array|Options $options Optional Arguments
- * @return FaxInstance Newly created FaxInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $mediaUrl, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'MediaUrl' => $mediaUrl,
- 'Quality' => $options['quality'],
- 'StatusCallback' => $options['statusCallback'],
- 'From' => $options['from'],
- 'SipAuthUsername' => $options['sipAuthUsername'],
- 'SipAuthPassword' => $options['sipAuthPassword'],
- 'StoreMedia' => Serialize::booleanToString($options['storeMedia']),
- 'Ttl' => $options['ttl'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FaxInstance($this->version, $payload);
- }
-
- /**
- * Constructs a FaxContext
- *
- * @param string $sid A string that uniquely identifies this fax.
- * @return \Twilio\Rest\Fax\V1\FaxContext
- */
- public function getContext($sid) {
- return new FaxContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Fax.V1.FaxList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/FaxOptions.php b/public/twilio-php/Twilio/Rest/Fax/V1/FaxOptions.php
deleted file mode 100644
index d51ed19..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/FaxOptions.php
+++ /dev/null
@@ -1,276 +0,0 @@
-options['from'] = $from;
- $this->options['to'] = $to;
- $this->options['dateCreatedOnOrBefore'] = $dateCreatedOnOrBefore;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- }
-
- /**
- * Filters the returned list to only include faxes sent from the supplied number, given in E.164 format.
- *
- * @param string $from Include only faxes sent from
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * Filters the returned list to only include faxes sent to the supplied number, given in E.164 format.
- *
- * @param string $to Include only faxes sent to
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * Filters the returned list to only include faxes created on or before the supplied date, given in ISO 8601 format.
- *
- * @param \DateTime $dateCreatedOnOrBefore Include only faxes created on or
- * before
- * @return $this Fluent Builder
- */
- public function setDateCreatedOnOrBefore($dateCreatedOnOrBefore) {
- $this->options['dateCreatedOnOrBefore'] = $dateCreatedOnOrBefore;
- return $this;
- }
-
- /**
- * Filters the returned list to only include faxes created after the supplied date, given in ISO 8601 format.
- *
- * @param \DateTime $dateCreatedAfter Include only faxes created after
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Fax.V1.ReadFaxOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateFaxOptions extends Options {
- /**
- * @param string $quality The quality of this fax
- * @param string $statusCallback URL for fax status callbacks
- * @param string $from Twilio number from which to originate the fax
- * @param string $sipAuthUsername Username for SIP authentication
- * @param string $sipAuthPassword Password for SIP authentication
- * @param boolean $storeMedia Whether or not to store media
- * @param integer $ttl How many minutes to attempt a fax
- */
- public function __construct($quality = Values::NONE, $statusCallback = Values::NONE, $from = Values::NONE, $sipAuthUsername = Values::NONE, $sipAuthPassword = Values::NONE, $storeMedia = Values::NONE, $ttl = Values::NONE) {
- $this->options['quality'] = $quality;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['from'] = $from;
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- $this->options['storeMedia'] = $storeMedia;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * A [quality value](https://www.twilio.com/docs/api/fax/rest/faxes#fax-quality-values), which defaults to `fine`
- *
- * @param string $quality The quality of this fax
- * @return $this Fluent Builder
- */
- public function setQuality($quality) {
- $this->options['quality'] = $quality;
- return $this;
- }
-
- /**
- * A [status callback](https://www.twilio.com/docs/api/fax/rest/faxes#fax-status-callback) URL that will receive a POST when the status of the fax changes
- *
- * @param string $statusCallback URL for fax status callbacks
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The phone number to use as the caller id, E.164-formatted. If using a phone number, it must be a Twilio number or a verified outgoing caller id for your account. If sending to a SIP address, this can be any alphanumeric string (plus the characters `+`, `_`, `.`, and `-`) to use in the From header of the SIP request.
- *
- * @param string $from Twilio number from which to originate the fax
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The username to use for authentication when sending to a SIP address.
- *
- * @param string $sipAuthUsername Username for SIP authentication
- * @return $this Fluent Builder
- */
- public function setSipAuthUsername($sipAuthUsername) {
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- return $this;
- }
-
- /**
- * The password to use for authentication when sending to a SIP address.
- *
- * @param string $sipAuthPassword Password for SIP authentication
- * @return $this Fluent Builder
- */
- public function setSipAuthPassword($sipAuthPassword) {
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- return $this;
- }
-
- /**
- * Whether or not to store a copy of the sent media on Twilio's servers for later retrieval (defaults to `true`)
- *
- * @param boolean $storeMedia Whether or not to store media
- * @return $this Fluent Builder
- */
- public function setStoreMedia($storeMedia) {
- $this->options['storeMedia'] = $storeMedia;
- return $this;
- }
-
- /**
- * How many minutes from when a fax was initiated should Twilio attempt to send a fax.
- *
- * @param integer $ttl How many minutes to attempt a fax
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Fax.V1.CreateFaxOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateFaxOptions extends Options {
- /**
- * @param string $status The updated status of this fax
- */
- public function __construct($status = Values::NONE) {
- $this->options['status'] = $status;
- }
-
- /**
- * The updated status of this fax. The only valid option is `canceled`. This may fail if the status has already started transmission.
- *
- * @param string $status The updated status of this fax
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Fax.V1.UpdateFaxOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Fax/V1/FaxPage.php b/public/twilio-php/Twilio/Rest/Fax/V1/FaxPage.php
deleted file mode 100644
index 66458d7..0000000
--- a/public/twilio-php/Twilio/Rest/Fax/V1/FaxPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FaxInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Fax.V1.FaxPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging.php b/public/twilio-php/Twilio/Rest/IpMessaging.php
deleted file mode 100644
index 616fcf0..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging.php
+++ /dev/null
@@ -1,133 +0,0 @@
-baseUrl = 'https://ip-messaging.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V1 Version v1 of ip_messaging
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V2 Version v2 of ip_messaging
- */
- protected function getV2() {
- if (!$this->_v2) {
- $this->_v2 = new V2($this);
- }
- return $this->_v2;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V2\CredentialList
- */
- protected function getCredentials() {
- return $this->v2->credentials;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\CredentialContext
- */
- protected function contextCredentials($sid) {
- return $this->v2->credentials($sid);
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V2\ServiceList
- */
- protected function getServices() {
- return $this->v2->services;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v2->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1.php
deleted file mode 100644
index 06f3593..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V1\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList($this);
- }
- return $this->_credentials;
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialContext.php
deleted file mode 100644
index d5f2fa3..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialContext.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.CredentialContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialInstance.php
deleted file mode 100644
index bee452f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialInstance.php
+++ /dev/null
@@ -1,134 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'sandbox' => Values::array_get($payload, 'sandbox'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\CredentialContext Context for this
- * CredentialInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.CredentialInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialList.php
deleted file mode 100644
index 8db7dc4..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialList.php
+++ /dev/null
@@ -1,169 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials';
- }
-
- /**
- * Streams CredentialInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialInstance
- *
- * @param string $type Credential type, one of "gcm" or "apn"
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Newly created CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CredentialContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\CredentialContext
- */
- public function getContext($sid) {
- return new CredentialContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialOptions.php
deleted file mode 100644
index 828ea3c..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialOptions.php
+++ /dev/null
@@ -1,271 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * The secret
- *
- * @param string $secret The secret
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.CreateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCredentialOptions extends Options {
- /**
- * @param string $friendlyName Friendly name for stored credential
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @param string $secret The secret
- */
- public function __construct($friendlyName = Values::NONE, $certificate = Values::NONE, $privateKey = Values::NONE, $sandbox = Values::NONE, $apiKey = Values::NONE, $secret = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * The secret
- *
- * @param string $secret The secret
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.UpdateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialPage.php
deleted file mode 100644
index a823759..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/CredentialPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteContext.php
deleted file mode 100644
index 7602972..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.InviteContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteInstance.php
deleted file mode 100644
index c72392a..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteInstance.php
+++ /dev/null
@@ -1,139 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\InviteContext Context
- * for this
- * InviteInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.InviteInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteList.php
deleted file mode 100644
index 6f96438..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites';
- }
-
- /**
- * Create a new InviteInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @param array|Options $options Optional Arguments
- * @return InviteInstance Newly created InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams InviteInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InviteInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InviteInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InviteInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InviteInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InviteContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\InviteContext
- */
- public function getContext($sid) {
- return new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.InviteList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.php
deleted file mode 100644
index 97a2cca..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.php
+++ /dev/null
@@ -1,104 +0,0 @@
-options['roleSid'] = $roleSid;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/v1/role) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.CreateInviteOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadInviteOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/v1/user) in this [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.ReadInviteOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InvitePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InvitePage.php
deleted file mode 100644
index f48f863..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/InvitePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.InvitePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberContext.php
deleted file mode 100644
index c666c13..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberContext.php
+++ /dev/null
@@ -1,113 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'LastConsumedMessageIndex' => $options['lastConsumedMessageIndex'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.MemberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberInstance.php
deleted file mode 100644
index 20a2ab8..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberInstance.php
+++ /dev/null
@@ -1,153 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'lastConsumptionTimestamp' => Deserialize::dateTime(Values::array_get($payload, 'last_consumption_timestamp')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MemberContext Context
- * for this
- * MemberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.MemberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberList.php
deleted file mode 100644
index 33c40d0..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members';
- }
-
- /**
- * Create a new MemberInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Newly created MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MemberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MemberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MemberInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MemberInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MemberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MemberContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MemberContext
- */
- public function getContext($sid) {
- return new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.MemberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.php
deleted file mode 100644
index 4060a95..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.php
+++ /dev/null
@@ -1,167 +0,0 @@
-options['roleSid'] = $roleSid;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.CreateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMemberOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/v1/users) in this [Service](https://www.twilio.com/docs/api/chat/rest/v1/services). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.ReadMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMemberOptions extends Options {
- /**
- * @param string $roleSid The Role assigned to this member.
- * @param integer $lastConsumedMessageIndex An Integer representing index of
- * the last Message this Member has
- * read within this Channel
- */
- public function __construct($roleSid = Values::NONE, $lastConsumedMessageIndex = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An Integer representing index of the last [Message](https://www.twilio.com/docs/api/chat/rest/v1/messages) this Member has read within this [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channels)
- *
- * @param integer $lastConsumedMessageIndex An Integer representing index of
- * the last Message this Member has
- * read within this Channel
- * @return $this Fluent Builder
- */
- public function setLastConsumedMessageIndex($lastConsumedMessageIndex) {
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.UpdateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberPage.php
deleted file mode 100644
index 2426b0c..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.MemberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageContext.php
deleted file mode 100644
index 9feac0c..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageContext.php
+++ /dev/null
@@ -1,110 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Body' => $options['body'], 'Attributes' => $options['attributes'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.MessageContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageInstance.php
deleted file mode 100644
index 40c4621..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageInstance.php
+++ /dev/null
@@ -1,157 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'wasEdited' => Values::array_get($payload, 'was_edited'),
- 'from' => Values::array_get($payload, 'from'),
- 'body' => Values::array_get($payload, 'body'),
- 'index' => Values::array_get($payload, 'index'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MessageContext Context
- * for this
- * MessageInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.MessageInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageList.php
deleted file mode 100644
index 63e9673..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageList.php
+++ /dev/null
@@ -1,182 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages';
- }
-
- /**
- * Create a new MessageInstance
- *
- * @param string $body The body
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Newly created MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($body, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Body' => $body,
- 'From' => $options['from'],
- 'Attributes' => $options['attributes'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MessageInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MessageInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MessageInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MessageInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MessageInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MessageContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MessageContext
- */
- public function getContext($sid) {
- return new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.MessageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.php
deleted file mode 100644
index 33df3b6..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.php
+++ /dev/null
@@ -1,175 +0,0 @@
-options['from'] = $from;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * The from
- *
- * @param string $from The from
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The attributes
- *
- * @param string $attributes The attributes
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.CreateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMessageOptions extends Options {
- /**
- * @param string $order The order
- */
- public function __construct($order = Values::NONE) {
- $this->options['order'] = $order;
- }
-
- /**
- * The order
- *
- * @param string $order The order
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.ReadMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMessageOptions extends Options {
- /**
- * @param string $body The new message body string.
- * @param string $attributes The new attributes metadata field you can use to
- * store any data you wish.
- */
- public function __construct($body = Values::NONE, $attributes = Values::NONE) {
- $this->options['body'] = $body;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * The new message body string. You can also send structured data by serializing it into a string.
- *
- * @param string $body The new message body string.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * The new attributes metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.
- *
- * @param string $attributes The new attributes metadata field you can use to
- * store any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.UpdateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessagePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessagePage.php
deleted file mode 100644
index 6d29226..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/Channel/MessagePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.MessagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelContext.php
deleted file mode 100644
index fca60c1..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelContext.php
+++ /dev/null
@@ -1,211 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MemberList
- */
- protected function getMembers() {
- if (!$this->_members) {
- $this->_members = new MemberList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MessageList
- */
- protected function getMessages() {
- if (!$this->_messages) {
- $this->_messages = new MessageList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\InviteList
- */
- protected function getInvites() {
- if (!$this->_invites) {
- $this->_invites = new InviteList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_invites;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.ChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelInstance.php
deleted file mode 100644
index 6c99597..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelInstance.php
+++ /dev/null
@@ -1,183 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'type' => Values::array_get($payload, 'type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'membersCount' => Values::array_get($payload, 'members_count'),
- 'messagesCount' => Values::array_get($payload, 'messages_count'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\ChannelContext Context for this
- * ChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MemberList
- */
- protected function getMembers() {
- return $this->proxy()->members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\MessageList
- */
- protected function getMessages() {
- return $this->proxy()->messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\Channel\InviteList
- */
- protected function getInvites() {
- return $this->proxy()->invites;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.ChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelList.php
deleted file mode 100644
index ae5cf97..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels';
- }
-
- /**
- * Create a new ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Newly created ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- 'Type' => $options['type'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams ChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ChannelInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Type' => Serialize::map($options['type'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ChannelContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\Service\ChannelContext
- */
- public function getContext($sid) {
- return new ChannelContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.ChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.php
deleted file mode 100644
index 085637a..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.php
+++ /dev/null
@@ -1,220 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- $this->options['type'] = $type;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional metadata field you can use to store any data you wish. No processing or validation is done on this field.
- *
- * @param string $attributes An optional metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The visibility of the channel - `public` or `private`. Defaults to `public`.
- *
- * @param string $type The visibility of the channel - public or private.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.CreateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadChannelOptions extends Options {
- /**
- * @param string $type The type
- */
- public function __construct($type = Values::NONE) {
- $this->options['type'] = $type;
- }
-
- /**
- * The type
- *
- * @param string $type The type
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.ReadChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateChannelOptions extends Options {
- /**
- * @param string $friendlyName A human-readable name for the Channel.
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @param string $attributes An optional metadata field you can use to store
- * any data you wish.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE, $attributes = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional metadata field you can use to store any data you wish. No processing or validation is done on this field.
- *
- * @param string $attributes An optional metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.UpdateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelPage.php
deleted file mode 100644
index b544d81..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/ChannelPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.ChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleContext.php
deleted file mode 100644
index ba7f283..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleContext.php
+++ /dev/null
@@ -1,105 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.RoleContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleInstance.php
deleted file mode 100644
index bf05708..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'permissions' => Values::array_get($payload, 'permissions'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\RoleContext Context for this
- * RoleInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RoleContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- return $this->proxy()->update($permission);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.RoleInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleList.php
deleted file mode 100644
index 1755125..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RoleList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles';
- }
-
- /**
- * Create a new RoleInstance
- *
- * @param string $friendlyName The human-readable name of this role.
- * @param string $type What kind of role this is.
- * @param string $permission A permission this role should have.
- * @return RoleInstance Newly created RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $type, $permission) {
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Type' => $type,
- 'Permission' => Serialize::map($permission, function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams RoleInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RoleInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RoleInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RoleInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RoleInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RoleContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\Service\RoleContext
- */
- public function getContext($sid) {
- return new RoleContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.RoleList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RolePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RolePage.php
deleted file mode 100644
index 3204171..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/RolePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.RolePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelInstance.php
deleted file mode 100644
index a72ed70..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelInstance.php
+++ /dev/null
@@ -1,84 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'memberSid' => Values::array_get($payload, 'member_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'unreadMessagesCount' => Values::array_get($payload, 'unread_messages_count'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.UserChannelInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelList.php
deleted file mode 100644
index b02d8e6..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelList.php
+++ /dev/null
@@ -1,129 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Channels';
- }
-
- /**
- * Streams UserChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserChannelInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.UserChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelPage.php
deleted file mode 100644
index ba89f1c..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.UserChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserContext.php
deleted file mode 100644
index 068d84e..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserContext.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- if (!$this->_userChannels) {
- $this->_userChannels = new UserChannelList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_userChannels;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.UserContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserInstance.php
deleted file mode 100644
index 5c9c98b..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserInstance.php
+++ /dev/null
@@ -1,162 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'isOnline' => Values::array_get($payload, 'is_online'),
- 'isNotifiable' => Values::array_get($payload, 'is_notifiable'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'joinedChannelsCount' => Values::array_get($payload, 'joined_channels_count'),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\UserContext Context for this
- * UserInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- return $this->proxy()->userChannels;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.UserInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserList.php
deleted file mode 100644
index 381538a..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users';
- }
-
- /**
- * Create a new UserInstance
- *
- * @param string $identity A unique string that identifies the user within this
- * service - often a username or email address.
- * @param array|Options $options Optional Arguments
- * @return UserInstance Newly created UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams UserInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\Service\UserContext
- */
- public function getContext($sid) {
- return new UserContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.UserList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserOptions.php
deleted file mode 100644
index 99cbc88..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserOptions.php
+++ /dev/null
@@ -1,172 +0,0 @@
-options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this user.
- *
- * @param string $roleSid The unique id of the Role assigned to this user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.CreateUserOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateUserOptions extends Options {
- /**
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @param string $friendlyName An optional human readable string representing
- * the user.
- */
- public function __construct($roleSid = Values::NONE, $attributes = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role][role] assigned to this user.
- *
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.UpdateUserOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserPage.php
deleted file mode 100644
index 6afc1bc..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/Service/UserPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.UserPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceContext.php
deleted file mode 100644
index 87735ae..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceContext.php
+++ /dev/null
@@ -1,256 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DefaultServiceRoleSid' => $options['defaultServiceRoleSid'],
- 'DefaultChannelRoleSid' => $options['defaultChannelRoleSid'],
- 'DefaultChannelCreatorRoleSid' => $options['defaultChannelCreatorRoleSid'],
- 'ReadStatusEnabled' => Serialize::booleanToString($options['readStatusEnabled']),
- 'ReachabilityEnabled' => Serialize::booleanToString($options['reachabilityEnabled']),
- 'TypingIndicatorTimeout' => $options['typingIndicatorTimeout'],
- 'ConsumptionReportInterval' => $options['consumptionReportInterval'],
- 'Notifications.NewMessage.Enabled' => Serialize::booleanToString($options['notificationsNewMessageEnabled']),
- 'Notifications.NewMessage.Template' => $options['notificationsNewMessageTemplate'],
- 'Notifications.AddedToChannel.Enabled' => Serialize::booleanToString($options['notificationsAddedToChannelEnabled']),
- 'Notifications.AddedToChannel.Template' => $options['notificationsAddedToChannelTemplate'],
- 'Notifications.RemovedFromChannel.Enabled' => Serialize::booleanToString($options['notificationsRemovedFromChannelEnabled']),
- 'Notifications.RemovedFromChannel.Template' => $options['notificationsRemovedFromChannelTemplate'],
- 'Notifications.InvitedToChannel.Enabled' => Serialize::booleanToString($options['notificationsInvitedToChannelEnabled']),
- 'Notifications.InvitedToChannel.Template' => $options['notificationsInvitedToChannelTemplate'],
- 'PreWebhookUrl' => $options['preWebhookUrl'],
- 'PostWebhookUrl' => $options['postWebhookUrl'],
- 'WebhookMethod' => $options['webhookMethod'],
- 'WebhookFilters' => Serialize::map($options['webhookFilters'], function($e) { return $e; }),
- 'Webhooks.OnMessageSend.Url' => $options['webhooksOnMessageSendUrl'],
- 'Webhooks.OnMessageSend.Method' => $options['webhooksOnMessageSendMethod'],
- 'Webhooks.OnMessageSend.Format' => $options['webhooksOnMessageSendFormat'],
- 'Webhooks.OnMessageUpdate.Url' => $options['webhooksOnMessageUpdateUrl'],
- 'Webhooks.OnMessageUpdate.Method' => $options['webhooksOnMessageUpdateMethod'],
- 'Webhooks.OnMessageUpdate.Format' => $options['webhooksOnMessageUpdateFormat'],
- 'Webhooks.OnMessageRemove.Url' => $options['webhooksOnMessageRemoveUrl'],
- 'Webhooks.OnMessageRemove.Method' => $options['webhooksOnMessageRemoveMethod'],
- 'Webhooks.OnMessageRemove.Format' => $options['webhooksOnMessageRemoveFormat'],
- 'Webhooks.OnChannelAdd.Url' => $options['webhooksOnChannelAddUrl'],
- 'Webhooks.OnChannelAdd.Method' => $options['webhooksOnChannelAddMethod'],
- 'Webhooks.OnChannelAdd.Format' => $options['webhooksOnChannelAddFormat'],
- 'Webhooks.OnChannelDestroy.Url' => $options['webhooksOnChannelDestroyUrl'],
- 'Webhooks.OnChannelDestroy.Method' => $options['webhooksOnChannelDestroyMethod'],
- 'Webhooks.OnChannelDestroy.Format' => $options['webhooksOnChannelDestroyFormat'],
- 'Webhooks.OnChannelUpdate.Url' => $options['webhooksOnChannelUpdateUrl'],
- 'Webhooks.OnChannelUpdate.Method' => $options['webhooksOnChannelUpdateMethod'],
- 'Webhooks.OnChannelUpdate.Format' => $options['webhooksOnChannelUpdateFormat'],
- 'Webhooks.OnMemberAdd.Url' => $options['webhooksOnMemberAddUrl'],
- 'Webhooks.OnMemberAdd.Method' => $options['webhooksOnMemberAddMethod'],
- 'Webhooks.OnMemberAdd.Format' => $options['webhooksOnMemberAddFormat'],
- 'Webhooks.OnMemberRemove.Url' => $options['webhooksOnMemberRemoveUrl'],
- 'Webhooks.OnMemberRemove.Method' => $options['webhooksOnMemberRemoveMethod'],
- 'Webhooks.OnMemberRemove.Format' => $options['webhooksOnMemberRemoveFormat'],
- 'Webhooks.OnMessageSent.Url' => $options['webhooksOnMessageSentUrl'],
- 'Webhooks.OnMessageSent.Method' => $options['webhooksOnMessageSentMethod'],
- 'Webhooks.OnMessageSent.Format' => $options['webhooksOnMessageSentFormat'],
- 'Webhooks.OnMessageUpdated.Url' => $options['webhooksOnMessageUpdatedUrl'],
- 'Webhooks.OnMessageUpdated.Method' => $options['webhooksOnMessageUpdatedMethod'],
- 'Webhooks.OnMessageUpdated.Format' => $options['webhooksOnMessageUpdatedFormat'],
- 'Webhooks.OnMessageRemoved.Url' => $options['webhooksOnMessageRemovedUrl'],
- 'Webhooks.OnMessageRemoved.Method' => $options['webhooksOnMessageRemovedMethod'],
- 'Webhooks.OnMessageRemoved.Format' => $options['webhooksOnMessageRemovedFormat'],
- 'Webhooks.OnChannelAdded.Url' => $options['webhooksOnChannelAddedUrl'],
- 'Webhooks.OnChannelAdded.Method' => $options['webhooksOnChannelAddedMethod'],
- 'Webhooks.OnChannelAdded.Format' => $options['webhooksOnChannelAddedFormat'],
- 'Webhooks.OnChannelDestroyed.Url' => $options['webhooksOnChannelDestroyedUrl'],
- 'Webhooks.OnChannelDestroyed.Method' => $options['webhooksOnChannelDestroyedMethod'],
- 'Webhooks.OnChannelDestroyed.Format' => $options['webhooksOnChannelDestroyedFormat'],
- 'Webhooks.OnChannelUpdated.Url' => $options['webhooksOnChannelUpdatedUrl'],
- 'Webhooks.OnChannelUpdated.Method' => $options['webhooksOnChannelUpdatedMethod'],
- 'Webhooks.OnChannelUpdated.Format' => $options['webhooksOnChannelUpdatedFormat'],
- 'Webhooks.OnMemberAdded.Url' => $options['webhooksOnMemberAddedUrl'],
- 'Webhooks.OnMemberAdded.Method' => $options['webhooksOnMemberAddedMethod'],
- 'Webhooks.OnMemberAdded.Format' => $options['webhooksOnMemberAddedFormat'],
- 'Webhooks.OnMemberRemoved.Url' => $options['webhooksOnMemberRemovedUrl'],
- 'Webhooks.OnMemberRemoved.Method' => $options['webhooksOnMemberRemovedMethod'],
- 'Webhooks.OnMemberRemoved.Format' => $options['webhooksOnMemberRemovedFormat'],
- 'Limits.ChannelMembers' => $options['limitsChannelMembers'],
- 'Limits.UserChannels' => $options['limitsUserChannels'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\ChannelList
- */
- protected function getChannels() {
- if (!$this->_channels) {
- $this->_channels = new ChannelList($this->version, $this->solution['sid']);
- }
-
- return $this->_channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\RoleList
- */
- protected function getRoles() {
- if (!$this->_roles) {
- $this->_roles = new RoleList($this->version, $this->solution['sid']);
- }
-
- return $this->_roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\UserList
- */
- protected function getUsers() {
- if (!$this->_users) {
- $this->_users = new UserList($this->version, $this->solution['sid']);
- }
-
- return $this->_users;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceInstance.php
deleted file mode 100644
index d0e9c73..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceInstance.php
+++ /dev/null
@@ -1,191 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'defaultServiceRoleSid' => Values::array_get($payload, 'default_service_role_sid'),
- 'defaultChannelRoleSid' => Values::array_get($payload, 'default_channel_role_sid'),
- 'defaultChannelCreatorRoleSid' => Values::array_get($payload, 'default_channel_creator_role_sid'),
- 'readStatusEnabled' => Values::array_get($payload, 'read_status_enabled'),
- 'reachabilityEnabled' => Values::array_get($payload, 'reachability_enabled'),
- 'typingIndicatorTimeout' => Values::array_get($payload, 'typing_indicator_timeout'),
- 'consumptionReportInterval' => Values::array_get($payload, 'consumption_report_interval'),
- 'limits' => Values::array_get($payload, 'limits'),
- 'webhooks' => Values::array_get($payload, 'webhooks'),
- 'preWebhookUrl' => Values::array_get($payload, 'pre_webhook_url'),
- 'postWebhookUrl' => Values::array_get($payload, 'post_webhook_url'),
- 'webhookMethod' => Values::array_get($payload, 'webhook_method'),
- 'webhookFilters' => Values::array_get($payload, 'webhook_filters'),
- 'notifications' => Values::array_get($payload, 'notifications'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V1\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\ChannelList
- */
- protected function getChannels() {
- return $this->proxy()->channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\RoleList
- */
- protected function getRoles() {
- return $this->proxy()->roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\IpMessaging\V1\Service\UserList
- */
- protected function getUsers() {
- return $this->proxy()->users;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceList.php
deleted file mode 100644
index ace69d4..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceList.php
+++ /dev/null
@@ -1,156 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceOptions.php
deleted file mode 100644
index 9cbeacb..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServiceOptions.php
+++ /dev/null
@@ -1,1180 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- $this->options['webhookMethod'] = $webhookMethod;
- $this->options['webhookFilters'] = $webhookFilters;
- $this->options['webhooksOnMessageSendUrl'] = $webhooksOnMessageSendUrl;
- $this->options['webhooksOnMessageSendMethod'] = $webhooksOnMessageSendMethod;
- $this->options['webhooksOnMessageSendFormat'] = $webhooksOnMessageSendFormat;
- $this->options['webhooksOnMessageUpdateUrl'] = $webhooksOnMessageUpdateUrl;
- $this->options['webhooksOnMessageUpdateMethod'] = $webhooksOnMessageUpdateMethod;
- $this->options['webhooksOnMessageUpdateFormat'] = $webhooksOnMessageUpdateFormat;
- $this->options['webhooksOnMessageRemoveUrl'] = $webhooksOnMessageRemoveUrl;
- $this->options['webhooksOnMessageRemoveMethod'] = $webhooksOnMessageRemoveMethod;
- $this->options['webhooksOnMessageRemoveFormat'] = $webhooksOnMessageRemoveFormat;
- $this->options['webhooksOnChannelAddUrl'] = $webhooksOnChannelAddUrl;
- $this->options['webhooksOnChannelAddMethod'] = $webhooksOnChannelAddMethod;
- $this->options['webhooksOnChannelAddFormat'] = $webhooksOnChannelAddFormat;
- $this->options['webhooksOnChannelDestroyUrl'] = $webhooksOnChannelDestroyUrl;
- $this->options['webhooksOnChannelDestroyMethod'] = $webhooksOnChannelDestroyMethod;
- $this->options['webhooksOnChannelDestroyFormat'] = $webhooksOnChannelDestroyFormat;
- $this->options['webhooksOnChannelUpdateUrl'] = $webhooksOnChannelUpdateUrl;
- $this->options['webhooksOnChannelUpdateMethod'] = $webhooksOnChannelUpdateMethod;
- $this->options['webhooksOnChannelUpdateFormat'] = $webhooksOnChannelUpdateFormat;
- $this->options['webhooksOnMemberAddUrl'] = $webhooksOnMemberAddUrl;
- $this->options['webhooksOnMemberAddMethod'] = $webhooksOnMemberAddMethod;
- $this->options['webhooksOnMemberAddFormat'] = $webhooksOnMemberAddFormat;
- $this->options['webhooksOnMemberRemoveUrl'] = $webhooksOnMemberRemoveUrl;
- $this->options['webhooksOnMemberRemoveMethod'] = $webhooksOnMemberRemoveMethod;
- $this->options['webhooksOnMemberRemoveFormat'] = $webhooksOnMemberRemoveFormat;
- $this->options['webhooksOnMessageSentUrl'] = $webhooksOnMessageSentUrl;
- $this->options['webhooksOnMessageSentMethod'] = $webhooksOnMessageSentMethod;
- $this->options['webhooksOnMessageSentFormat'] = $webhooksOnMessageSentFormat;
- $this->options['webhooksOnMessageUpdatedUrl'] = $webhooksOnMessageUpdatedUrl;
- $this->options['webhooksOnMessageUpdatedMethod'] = $webhooksOnMessageUpdatedMethod;
- $this->options['webhooksOnMessageUpdatedFormat'] = $webhooksOnMessageUpdatedFormat;
- $this->options['webhooksOnMessageRemovedUrl'] = $webhooksOnMessageRemovedUrl;
- $this->options['webhooksOnMessageRemovedMethod'] = $webhooksOnMessageRemovedMethod;
- $this->options['webhooksOnMessageRemovedFormat'] = $webhooksOnMessageRemovedFormat;
- $this->options['webhooksOnChannelAddedUrl'] = $webhooksOnChannelAddedUrl;
- $this->options['webhooksOnChannelAddedMethod'] = $webhooksOnChannelAddedMethod;
- $this->options['webhooksOnChannelAddedFormat'] = $webhooksOnChannelAddedFormat;
- $this->options['webhooksOnChannelDestroyedUrl'] = $webhooksOnChannelDestroyedUrl;
- $this->options['webhooksOnChannelDestroyedMethod'] = $webhooksOnChannelDestroyedMethod;
- $this->options['webhooksOnChannelDestroyedFormat'] = $webhooksOnChannelDestroyedFormat;
- $this->options['webhooksOnChannelUpdatedUrl'] = $webhooksOnChannelUpdatedUrl;
- $this->options['webhooksOnChannelUpdatedMethod'] = $webhooksOnChannelUpdatedMethod;
- $this->options['webhooksOnChannelUpdatedFormat'] = $webhooksOnChannelUpdatedFormat;
- $this->options['webhooksOnMemberAddedUrl'] = $webhooksOnMemberAddedUrl;
- $this->options['webhooksOnMemberAddedMethod'] = $webhooksOnMemberAddedMethod;
- $this->options['webhooksOnMemberAddedFormat'] = $webhooksOnMemberAddedFormat;
- $this->options['webhooksOnMemberRemovedUrl'] = $webhooksOnMemberRemovedUrl;
- $this->options['webhooksOnMemberRemovedMethod'] = $webhooksOnMemberRemovedMethod;
- $this->options['webhooksOnMemberRemovedFormat'] = $webhooksOnMemberRemovedFormat;
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The default_service_role_sid
- *
- * @param string $defaultServiceRoleSid The default_service_role_sid
- * @return $this Fluent Builder
- */
- public function setDefaultServiceRoleSid($defaultServiceRoleSid) {
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned on channel join (see [Roles](https://www.twilio.com/docs/api/chat/rest/v1/roles) data model for the details)
- *
- * @param string $defaultChannelRoleSid Channel role assigned on channel join
- * @return $this Fluent Builder
- */
- public function setDefaultChannelRoleSid($defaultChannelRoleSid) {
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned to creator of channel when joining for first time
- *
- * @param string $defaultChannelCreatorRoleSid Channel role assigned to creator
- * of channel when joining for
- * first time
- * @return $this Fluent Builder
- */
- public function setDefaultChannelCreatorRoleSid($defaultChannelCreatorRoleSid) {
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- return $this;
- }
-
- /**
- * `true` if the member read status feature is enabled, `false` if not. Defaults to `true`.
- *
- * @param boolean $readStatusEnabled true if the member read status feature is
- * enabled, false if not.
- * @return $this Fluent Builder
- */
- public function setReadStatusEnabled($readStatusEnabled) {
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- return $this;
- }
-
- /**
- * `true` if the reachability feature should be enabled. Defaults to `false`
- *
- * @param boolean $reachabilityEnabled true if the reachability feature should
- * be enabled.
- * @return $this Fluent Builder
- */
- public function setReachabilityEnabled($reachabilityEnabled) {
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- return $this;
- }
-
- /**
- * ISO 8601 duration indicating the timeout after "started typing" event when client should assume that user is not typing anymore even if no "ended typing" message received
- *
- * @param integer $typingIndicatorTimeout ISO 8601 duration indicating the
- * timeout after "started typing" event
- * when client should assume that user
- * is not typing anymore even if no
- * "ended typing" message received
- * @return $this Fluent Builder
- */
- public function setTypingIndicatorTimeout($typingIndicatorTimeout) {
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- return $this;
- }
-
- /**
- * ISO 8601 duration indicating the interval between consumption reports sent from client endpoints.
- *
- * @param integer $consumptionReportInterval ISO 8601 duration indicating the
- * interval between consumption
- * reports sent from client endpoints.
- * @return $this Fluent Builder
- */
- public function setConsumptionReportInterval($consumptionReportInterval) {
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- return $this;
- }
-
- /**
- * The notifications.new_message.enabled
- *
- * @param boolean $notificationsNewMessageEnabled The
- * notifications.new_message.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageEnabled($notificationsNewMessageEnabled) {
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- return $this;
- }
-
- /**
- * The notifications.new_message.template
- *
- * @param string $notificationsNewMessageTemplate The
- * notifications.new_message.template
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageTemplate($notificationsNewMessageTemplate) {
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.enabled
- *
- * @param boolean $notificationsAddedToChannelEnabled The
- * notifications.added_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelEnabled($notificationsAddedToChannelEnabled) {
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.template
- *
- * @param string $notificationsAddedToChannelTemplate The
- * notifications.added_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelTemplate($notificationsAddedToChannelTemplate) {
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.enabled
- *
- * @param boolean $notificationsRemovedFromChannelEnabled The
- * notifications.removed_from_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelEnabled($notificationsRemovedFromChannelEnabled) {
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.template
- *
- * @param string $notificationsRemovedFromChannelTemplate The
- * notifications.removed_from_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelTemplate($notificationsRemovedFromChannelTemplate) {
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.enabled
- *
- * @param boolean $notificationsInvitedToChannelEnabled The
- * notifications.invited_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelEnabled($notificationsInvitedToChannelEnabled) {
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.template
- *
- * @param string $notificationsInvitedToChannelTemplate The
- * notifications.invited_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelTemplate($notificationsInvitedToChannelTemplate) {
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- return $this;
- }
-
- /**
- * The webhook URL for PRE-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $preWebhookUrl The webhook URL for PRE-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPreWebhookUrl($preWebhookUrl) {
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook URL for POST-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $postWebhookUrl The webhook URL for POST-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPostWebhookUrl($postWebhookUrl) {
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook request format to use. Must be POST or GET. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $webhookMethod The webhook request format to use.
- * @return $this Fluent Builder
- */
- public function setWebhookMethod($webhookMethod) {
- $this->options['webhookMethod'] = $webhookMethod;
- return $this;
- }
-
- /**
- * The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
- *
- * @param string $webhookFilters The list of WebHook events that are enabled
- * for this Service instance.
- * @return $this Fluent Builder
- */
- public function setWebhookFilters($webhookFilters) {
- $this->options['webhookFilters'] = $webhookFilters;
- return $this;
- }
-
- /**
- * The webhooks.on_message_send.url
- *
- * @param string $webhooksOnMessageSendUrl The webhooks.on_message_send.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSendUrl($webhooksOnMessageSendUrl) {
- $this->options['webhooksOnMessageSendUrl'] = $webhooksOnMessageSendUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_send.method
- *
- * @param string $webhooksOnMessageSendMethod The
- * webhooks.on_message_send.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSendMethod($webhooksOnMessageSendMethod) {
- $this->options['webhooksOnMessageSendMethod'] = $webhooksOnMessageSendMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_send.format
- *
- * @param string $webhooksOnMessageSendFormat The
- * webhooks.on_message_send.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSendFormat($webhooksOnMessageSendFormat) {
- $this->options['webhooksOnMessageSendFormat'] = $webhooksOnMessageSendFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_update.url
- *
- * @param string $webhooksOnMessageUpdateUrl The webhooks.on_message_update.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdateUrl($webhooksOnMessageUpdateUrl) {
- $this->options['webhooksOnMessageUpdateUrl'] = $webhooksOnMessageUpdateUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_update.method
- *
- * @param string $webhooksOnMessageUpdateMethod The
- * webhooks.on_message_update.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdateMethod($webhooksOnMessageUpdateMethod) {
- $this->options['webhooksOnMessageUpdateMethod'] = $webhooksOnMessageUpdateMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_update.format
- *
- * @param string $webhooksOnMessageUpdateFormat The
- * webhooks.on_message_update.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdateFormat($webhooksOnMessageUpdateFormat) {
- $this->options['webhooksOnMessageUpdateFormat'] = $webhooksOnMessageUpdateFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_remove.url
- *
- * @param string $webhooksOnMessageRemoveUrl The webhooks.on_message_remove.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemoveUrl($webhooksOnMessageRemoveUrl) {
- $this->options['webhooksOnMessageRemoveUrl'] = $webhooksOnMessageRemoveUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_remove.method
- *
- * @param string $webhooksOnMessageRemoveMethod The
- * webhooks.on_message_remove.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemoveMethod($webhooksOnMessageRemoveMethod) {
- $this->options['webhooksOnMessageRemoveMethod'] = $webhooksOnMessageRemoveMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_remove.format
- *
- * @param string $webhooksOnMessageRemoveFormat The
- * webhooks.on_message_remove.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemoveFormat($webhooksOnMessageRemoveFormat) {
- $this->options['webhooksOnMessageRemoveFormat'] = $webhooksOnMessageRemoveFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_add.url
- *
- * @param string $webhooksOnChannelAddUrl The webhooks.on_channel_add.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddUrl($webhooksOnChannelAddUrl) {
- $this->options['webhooksOnChannelAddUrl'] = $webhooksOnChannelAddUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_add.method
- *
- * @param string $webhooksOnChannelAddMethod The webhooks.on_channel_add.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddMethod($webhooksOnChannelAddMethod) {
- $this->options['webhooksOnChannelAddMethod'] = $webhooksOnChannelAddMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_add.format
- *
- * @param string $webhooksOnChannelAddFormat The webhooks.on_channel_add.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddFormat($webhooksOnChannelAddFormat) {
- $this->options['webhooksOnChannelAddFormat'] = $webhooksOnChannelAddFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroy.url
- *
- * @param string $webhooksOnChannelDestroyUrl The
- * webhooks.on_channel_destroy.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyUrl($webhooksOnChannelDestroyUrl) {
- $this->options['webhooksOnChannelDestroyUrl'] = $webhooksOnChannelDestroyUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroy.method
- *
- * @param string $webhooksOnChannelDestroyMethod The
- * webhooks.on_channel_destroy.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyMethod($webhooksOnChannelDestroyMethod) {
- $this->options['webhooksOnChannelDestroyMethod'] = $webhooksOnChannelDestroyMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroy.format
- *
- * @param string $webhooksOnChannelDestroyFormat The
- * webhooks.on_channel_destroy.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyFormat($webhooksOnChannelDestroyFormat) {
- $this->options['webhooksOnChannelDestroyFormat'] = $webhooksOnChannelDestroyFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_update.url
- *
- * @param string $webhooksOnChannelUpdateUrl The webhooks.on_channel_update.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdateUrl($webhooksOnChannelUpdateUrl) {
- $this->options['webhooksOnChannelUpdateUrl'] = $webhooksOnChannelUpdateUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_update.method
- *
- * @param string $webhooksOnChannelUpdateMethod The
- * webhooks.on_channel_update.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdateMethod($webhooksOnChannelUpdateMethod) {
- $this->options['webhooksOnChannelUpdateMethod'] = $webhooksOnChannelUpdateMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_update.format
- *
- * @param string $webhooksOnChannelUpdateFormat The
- * webhooks.on_channel_update.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdateFormat($webhooksOnChannelUpdateFormat) {
- $this->options['webhooksOnChannelUpdateFormat'] = $webhooksOnChannelUpdateFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_add.url
- *
- * @param string $webhooksOnMemberAddUrl The webhooks.on_member_add.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddUrl($webhooksOnMemberAddUrl) {
- $this->options['webhooksOnMemberAddUrl'] = $webhooksOnMemberAddUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_add.method
- *
- * @param string $webhooksOnMemberAddMethod The webhooks.on_member_add.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddMethod($webhooksOnMemberAddMethod) {
- $this->options['webhooksOnMemberAddMethod'] = $webhooksOnMemberAddMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_add.format
- *
- * @param string $webhooksOnMemberAddFormat The webhooks.on_member_add.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddFormat($webhooksOnMemberAddFormat) {
- $this->options['webhooksOnMemberAddFormat'] = $webhooksOnMemberAddFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_remove.url
- *
- * @param string $webhooksOnMemberRemoveUrl The webhooks.on_member_remove.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemoveUrl($webhooksOnMemberRemoveUrl) {
- $this->options['webhooksOnMemberRemoveUrl'] = $webhooksOnMemberRemoveUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_remove.method
- *
- * @param string $webhooksOnMemberRemoveMethod The
- * webhooks.on_member_remove.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemoveMethod($webhooksOnMemberRemoveMethod) {
- $this->options['webhooksOnMemberRemoveMethod'] = $webhooksOnMemberRemoveMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_remove.format
- *
- * @param string $webhooksOnMemberRemoveFormat The
- * webhooks.on_member_remove.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemoveFormat($webhooksOnMemberRemoveFormat) {
- $this->options['webhooksOnMemberRemoveFormat'] = $webhooksOnMemberRemoveFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_sent.url
- *
- * @param string $webhooksOnMessageSentUrl The webhooks.on_message_sent.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSentUrl($webhooksOnMessageSentUrl) {
- $this->options['webhooksOnMessageSentUrl'] = $webhooksOnMessageSentUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_sent.method
- *
- * @param string $webhooksOnMessageSentMethod The
- * webhooks.on_message_sent.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSentMethod($webhooksOnMessageSentMethod) {
- $this->options['webhooksOnMessageSentMethod'] = $webhooksOnMessageSentMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_sent.format
- *
- * @param string $webhooksOnMessageSentFormat The
- * webhooks.on_message_sent.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageSentFormat($webhooksOnMessageSentFormat) {
- $this->options['webhooksOnMessageSentFormat'] = $webhooksOnMessageSentFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_updated.url
- *
- * @param string $webhooksOnMessageUpdatedUrl The
- * webhooks.on_message_updated.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdatedUrl($webhooksOnMessageUpdatedUrl) {
- $this->options['webhooksOnMessageUpdatedUrl'] = $webhooksOnMessageUpdatedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_updated.method
- *
- * @param string $webhooksOnMessageUpdatedMethod The
- * webhooks.on_message_updated.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdatedMethod($webhooksOnMessageUpdatedMethod) {
- $this->options['webhooksOnMessageUpdatedMethod'] = $webhooksOnMessageUpdatedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_updated.format
- *
- * @param string $webhooksOnMessageUpdatedFormat The
- * webhooks.on_message_updated.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageUpdatedFormat($webhooksOnMessageUpdatedFormat) {
- $this->options['webhooksOnMessageUpdatedFormat'] = $webhooksOnMessageUpdatedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_message_removed.url
- *
- * @param string $webhooksOnMessageRemovedUrl The
- * webhooks.on_message_removed.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemovedUrl($webhooksOnMessageRemovedUrl) {
- $this->options['webhooksOnMessageRemovedUrl'] = $webhooksOnMessageRemovedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_message_removed.method
- *
- * @param string $webhooksOnMessageRemovedMethod The
- * webhooks.on_message_removed.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemovedMethod($webhooksOnMessageRemovedMethod) {
- $this->options['webhooksOnMessageRemovedMethod'] = $webhooksOnMessageRemovedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_message_removed.format
- *
- * @param string $webhooksOnMessageRemovedFormat The
- * webhooks.on_message_removed.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMessageRemovedFormat($webhooksOnMessageRemovedFormat) {
- $this->options['webhooksOnMessageRemovedFormat'] = $webhooksOnMessageRemovedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_added.url
- *
- * @param string $webhooksOnChannelAddedUrl The webhooks.on_channel_added.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddedUrl($webhooksOnChannelAddedUrl) {
- $this->options['webhooksOnChannelAddedUrl'] = $webhooksOnChannelAddedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_added.method
- *
- * @param string $webhooksOnChannelAddedMethod The
- * webhooks.on_channel_added.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddedMethod($webhooksOnChannelAddedMethod) {
- $this->options['webhooksOnChannelAddedMethod'] = $webhooksOnChannelAddedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_added.format
- *
- * @param string $webhooksOnChannelAddedFormat The
- * webhooks.on_channel_added.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelAddedFormat($webhooksOnChannelAddedFormat) {
- $this->options['webhooksOnChannelAddedFormat'] = $webhooksOnChannelAddedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroyed.url
- *
- * @param string $webhooksOnChannelDestroyedUrl The
- * webhooks.on_channel_destroyed.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyedUrl($webhooksOnChannelDestroyedUrl) {
- $this->options['webhooksOnChannelDestroyedUrl'] = $webhooksOnChannelDestroyedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroyed.method
- *
- * @param string $webhooksOnChannelDestroyedMethod The
- * webhooks.on_channel_destroyed.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyedMethod($webhooksOnChannelDestroyedMethod) {
- $this->options['webhooksOnChannelDestroyedMethod'] = $webhooksOnChannelDestroyedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_destroyed.format
- *
- * @param string $webhooksOnChannelDestroyedFormat The
- * webhooks.on_channel_destroyed.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelDestroyedFormat($webhooksOnChannelDestroyedFormat) {
- $this->options['webhooksOnChannelDestroyedFormat'] = $webhooksOnChannelDestroyedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_updated.url
- *
- * @param string $webhooksOnChannelUpdatedUrl The
- * webhooks.on_channel_updated.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdatedUrl($webhooksOnChannelUpdatedUrl) {
- $this->options['webhooksOnChannelUpdatedUrl'] = $webhooksOnChannelUpdatedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_updated.method
- *
- * @param string $webhooksOnChannelUpdatedMethod The
- * webhooks.on_channel_updated.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdatedMethod($webhooksOnChannelUpdatedMethod) {
- $this->options['webhooksOnChannelUpdatedMethod'] = $webhooksOnChannelUpdatedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_channel_updated.format
- *
- * @param string $webhooksOnChannelUpdatedFormat The
- * webhooks.on_channel_updated.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnChannelUpdatedFormat($webhooksOnChannelUpdatedFormat) {
- $this->options['webhooksOnChannelUpdatedFormat'] = $webhooksOnChannelUpdatedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_added.url
- *
- * @param string $webhooksOnMemberAddedUrl The webhooks.on_member_added.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddedUrl($webhooksOnMemberAddedUrl) {
- $this->options['webhooksOnMemberAddedUrl'] = $webhooksOnMemberAddedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_added.method
- *
- * @param string $webhooksOnMemberAddedMethod The
- * webhooks.on_member_added.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddedMethod($webhooksOnMemberAddedMethod) {
- $this->options['webhooksOnMemberAddedMethod'] = $webhooksOnMemberAddedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_added.format
- *
- * @param string $webhooksOnMemberAddedFormat The
- * webhooks.on_member_added.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberAddedFormat($webhooksOnMemberAddedFormat) {
- $this->options['webhooksOnMemberAddedFormat'] = $webhooksOnMemberAddedFormat;
- return $this;
- }
-
- /**
- * The webhooks.on_member_removed.url
- *
- * @param string $webhooksOnMemberRemovedUrl The webhooks.on_member_removed.url
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemovedUrl($webhooksOnMemberRemovedUrl) {
- $this->options['webhooksOnMemberRemovedUrl'] = $webhooksOnMemberRemovedUrl;
- return $this;
- }
-
- /**
- * The webhooks.on_member_removed.method
- *
- * @param string $webhooksOnMemberRemovedMethod The
- * webhooks.on_member_removed.method
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemovedMethod($webhooksOnMemberRemovedMethod) {
- $this->options['webhooksOnMemberRemovedMethod'] = $webhooksOnMemberRemovedMethod;
- return $this;
- }
-
- /**
- * The webhooks.on_member_removed.format
- *
- * @param string $webhooksOnMemberRemovedFormat The
- * webhooks.on_member_removed.format
- * @return $this Fluent Builder
- */
- public function setWebhooksOnMemberRemovedFormat($webhooksOnMemberRemovedFormat) {
- $this->options['webhooksOnMemberRemovedFormat'] = $webhooksOnMemberRemovedFormat;
- return $this;
- }
-
- /**
- * The limits.channel_members
- *
- * @param integer $limitsChannelMembers The limits.channel_members
- * @return $this Fluent Builder
- */
- public function setLimitsChannelMembers($limitsChannelMembers) {
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- return $this;
- }
-
- /**
- * The limits.user_channels
- *
- * @param integer $limitsUserChannels The limits.user_channels
- * @return $this Fluent Builder
- */
- public function setLimitsUserChannels($limitsUserChannels) {
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServicePage.php
deleted file mode 100644
index cf49117..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V1/ServicePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2.php
deleted file mode 100644
index d1900fe..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v2';
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V2\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList($this);
- }
- return $this->_credentials;
- }
-
- /**
- * @return \Twilio\Rest\IpMessaging\V2\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialContext.php
deleted file mode 100644
index 5b494e7..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialContext.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.CredentialContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialInstance.php
deleted file mode 100644
index 0c46ef4..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialInstance.php
+++ /dev/null
@@ -1,134 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'sandbox' => Values::array_get($payload, 'sandbox'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\CredentialContext Context for this
- * CredentialInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.CredentialInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialList.php
deleted file mode 100644
index 21f3787..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialList.php
+++ /dev/null
@@ -1,169 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials';
- }
-
- /**
- * Streams CredentialInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialInstance
- *
- * @param string $type Credential type, one of "gcm", "fcm", or "apn"
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Newly created CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CredentialContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\CredentialContext
- */
- public function getContext($sid) {
- return new CredentialContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialOptions.php
deleted file mode 100644
index 85c9fa5..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialOptions.php
+++ /dev/null
@@ -1,289 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g.
- `-----BEGIN CERTIFICATE-----
- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
- -----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g.
- `-----BEGIN RSA PRIVATE KEY-----
- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
- -----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
- *
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCredentialOptions extends Options {
- /**
- * @param string $friendlyName Friendly name for stored credential
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- */
- public function __construct($friendlyName = Values::NONE, $certificate = Values::NONE, $privateKey = Values::NONE, $sandbox = Values::NONE, $apiKey = Values::NONE, $secret = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate, e.g.
- `-----BEGIN CERTIFICATE-----
- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
- -----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate, e.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key, e.g.
- `-----BEGIN RSA PRIVATE KEY-----
- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
- -----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key, e.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "API key" for project from Google Developer console for your GCM Service application credential
- *
- * @param string $apiKey [GCM only] This is the "API key" for project from
- * Google Developer console for your GCM Service
- * application credential
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
- *
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialPage.php
deleted file mode 100644
index c040d17..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/CredentialPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingContext.php
deleted file mode 100644
index 1ad3bad..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Bindings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a BindingInstance
- *
- * @return BindingInstance Fetched BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the BindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.BindingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingInstance.php
deleted file mode 100644
index a2fbbbc..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingInstance.php
+++ /dev/null
@@ -1,136 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'endpoint' => Values::array_get($payload, 'endpoint'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'credentialSid' => Values::array_get($payload, 'credential_sid'),
- 'bindingType' => Values::array_get($payload, 'binding_type'),
- 'messageTypes' => Values::array_get($payload, 'message_types'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\BindingContext Context for this
- * BindingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new BindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a BindingInstance
- *
- * @return BindingInstance Fetched BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the BindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.BindingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingList.php
deleted file mode 100644
index fae5141..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingList.php
+++ /dev/null
@@ -1,146 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Bindings';
- }
-
- /**
- * Streams BindingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads BindingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return BindingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of BindingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of BindingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'BindingType' => Serialize::map($options['bindingType'], function($e) { return $e; }),
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of BindingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of BindingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new BindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a BindingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\Service\BindingContext
- */
- public function getContext($sid) {
- return new BindingContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.BindingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.php
deleted file mode 100644
index e6d3ed2..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['bindingType'] = $bindingType;
- $this->options['identity'] = $identity;
- }
-
- /**
- * The push technology used for the returned Bindings. Supported values are apn, gcm and fcm. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more information.
- *
- * @param string $bindingType The push technology used for the bindings
- * returned.
- * @return $this Fluent Builder
- */
- public function setBindingType($bindingType) {
- $this->options['bindingType'] = $bindingType;
- return $this;
- }
-
- /**
- * The identity
- *
- * @param string $identity The identity
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.ReadBindingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingPage.php
deleted file mode 100644
index 192fe11..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/BindingPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new BindingInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.BindingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteContext.php
deleted file mode 100644
index 6d4cc8e..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.InviteContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteInstance.php
deleted file mode 100644
index f68cb15..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteInstance.php
+++ /dev/null
@@ -1,139 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\InviteContext Context
- * for this
- * InviteInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a InviteInstance
- *
- * @return InviteInstance Fetched InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the InviteInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.InviteInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteList.php
deleted file mode 100644
index cea05eb..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Invites';
- }
-
- /**
- * Create a new InviteInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @param array|Options $options Optional Arguments
- * @return InviteInstance Newly created InviteInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams InviteInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InviteInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InviteInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InviteInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InviteInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InviteInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InvitePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InviteContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\InviteContext
- */
- public function getContext($sid) {
- return new InviteContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.InviteList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.php
deleted file mode 100644
index c81298f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.php
+++ /dev/null
@@ -1,104 +0,0 @@
-options['roleSid'] = $roleSid;
- }
-
- /**
- * The [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this member.
- *
- * @param string $roleSid The Role assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateInviteOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadInviteOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/users) in this [Service](https://www.twilio.com/docs/api/chat/rest/services). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.ReadInviteOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InvitePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InvitePage.php
deleted file mode 100644
index 2346d87..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/InvitePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InviteInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.InvitePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberContext.php
deleted file mode 100644
index 3df7f56..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'LastConsumedMessageIndex' => $options['lastConsumedMessageIndex'],
- 'LastConsumptionTimestamp' => Serialize::iso8601DateTime($options['lastConsumptionTimestamp']),
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.MemberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberInstance.php
deleted file mode 100644
index c4e10f7..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberInstance.php
+++ /dev/null
@@ -1,153 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'lastConsumptionTimestamp' => Deserialize::dateTime(Values::array_get($payload, 'last_consumption_timestamp')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MemberContext Context
- * for this
- * MemberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MemberInstance
- *
- * @return MemberInstance Fetched MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MemberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MemberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Updated MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.MemberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberList.php
deleted file mode 100644
index 7bfece8..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberList.php
+++ /dev/null
@@ -1,187 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Members';
- }
-
- /**
- * Create a new MemberInstance
- *
- * @param string $identity A unique string identifier for this User in this
- * Service. See the access tokens docs for more details.
- * @param array|Options $options Optional Arguments
- * @return MemberInstance Newly created MemberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'RoleSid' => $options['roleSid'],
- 'LastConsumedMessageIndex' => $options['lastConsumedMessageIndex'],
- 'LastConsumptionTimestamp' => Serialize::iso8601DateTime($options['lastConsumptionTimestamp']),
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MemberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MemberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MemberInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MemberInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MemberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MemberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MemberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MemberContext
- *
- * @param string $sid Key that uniquely defines the member to fetch.
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MemberContext
- */
- public function getContext($sid) {
- return new MemberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.MemberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.php
deleted file mode 100644
index 29aef57..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.php
+++ /dev/null
@@ -1,346 +0,0 @@
-options['roleSid'] = $roleSid;
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- }
-
- /**
- * The role to be assigned to this member. Defaults to the roles specified on the [Service](https://www.twilio.com/docs/chat/api/services).
- *
- * @param string $roleSid The role to be assigned to this member. Defaults to
- * the roles specified on the Service.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.
- *
- * @param integer $lastConsumedMessageIndex Field used to specify the last
- * consumed Message index for the
- * Channel for this Member. Should
- * only be used when recreating a
- * Member from a backup/separate
- * source.
- * @return $this Fluent Builder
- */
- public function setLastConsumedMessageIndex($lastConsumedMessageIndex) {
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- return $this;
- }
-
- /**
- * ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source
- *
- * @param \DateTime $lastConsumptionTimestamp ISO8601 time indicating the last
- * datetime the Member consumed a
- * Message in the Channel. Should
- * only be used when recreating a
- * Member from a backup/separate
- * source
- * @return $this Fluent Builder
- */
- public function setLastConsumptionTimestamp($lastConsumptionTimestamp) {
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Members should be set as being created. Will
- * be set to the current time by the Chat service
- * if not specified. Note that this should only
- * be used in cases where a Member is being
- * recreated from a backup/separate source
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Member should be set as having been last
- * updated. Will be set to the null by the Chat
- * service if not specified. Note that this
- * should only be used in cases where a Member is
- * being recreated from a backup/separate source
- * and where a Member was previously updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMemberOptions extends Options {
- /**
- * @param string $identity A unique string identifier for this User in this
- * Service. See the access tokens docs for more details.
- */
- public function __construct($identity = Values::NONE) {
- $this->options['identity'] = $identity;
- }
-
- /**
- * A unique string identifier for this [User](https://www.twilio.com/docs/api/chat/rest/users) in this [Service](https://www.twilio.com/docs/api/chat/rest/services). See the [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) docs for more details.
- *
- * @param string $identity A unique string identifier for this User in this
- * Service. See the access tokens docs for more details.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.ReadMemberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMemberOptions extends Options {
- /**
- * @param string $roleSid The role to be assigned to this member.
- * @param integer $lastConsumedMessageIndex Field used to specify the last
- * consumed Message index for the
- * Channel for this Member.
- * @param \DateTime $lastConsumptionTimestamp ISO8601 time indicating the last
- * datetime the Member consumed a
- * Message in the Channel.
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Members should be set as being created.
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Member should be set as having been last
- * updated.
- */
- public function __construct($roleSid = Values::NONE, $lastConsumedMessageIndex = Values::NONE, $lastConsumptionTimestamp = Values::NONE, $dateCreated = Values::NONE, $dateUpdated = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- }
-
- /**
- * The role to be assigned to this member. Defaults to the roles specified on the [Service](https://www.twilio.com/docs/chat/api/services).
- *
- * @param string $roleSid The role to be assigned to this member.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.
- *
- * @param integer $lastConsumedMessageIndex Field used to specify the last
- * consumed Message index for the
- * Channel for this Member.
- * @return $this Fluent Builder
- */
- public function setLastConsumedMessageIndex($lastConsumedMessageIndex) {
- $this->options['lastConsumedMessageIndex'] = $lastConsumedMessageIndex;
- return $this;
- }
-
- /**
- * ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source
- *
- * @param \DateTime $lastConsumptionTimestamp ISO8601 time indicating the last
- * datetime the Member consumed a
- * Message in the Channel.
- * @return $this Fluent Builder
- */
- public function setLastConsumptionTimestamp($lastConsumptionTimestamp) {
- $this->options['lastConsumptionTimestamp'] = $lastConsumptionTimestamp;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Members should be set as being created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Member should be set as having been last
- * updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateMemberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberPage.php
deleted file mode 100644
index 68484ee..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MemberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.MemberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageContext.php
deleted file mode 100644
index 4fc2f1d..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageContext.php
+++ /dev/null
@@ -1,119 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Body' => $options['body'],
- 'Attributes' => $options['attributes'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'LastUpdatedBy' => $options['lastUpdatedBy'],
- 'From' => $options['from'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.MessageContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageInstance.php
deleted file mode 100644
index a0149ef..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageInstance.php
+++ /dev/null
@@ -1,163 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'lastUpdatedBy' => Values::array_get($payload, 'last_updated_by'),
- 'wasEdited' => Values::array_get($payload, 'was_edited'),
- 'from' => Values::array_get($payload, 'from'),
- 'body' => Values::array_get($payload, 'body'),
- 'index' => Values::array_get($payload, 'index'),
- 'type' => Values::array_get($payload, 'type'),
- 'media' => Values::array_get($payload, 'media'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MessageContext Context
- * for this
- * MessageInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MessageInstance
- *
- * @return MessageInstance Fetched MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the MessageInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Updated MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.MessageInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageList.php
deleted file mode 100644
index 542714c..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageList.php
+++ /dev/null
@@ -1,186 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Messages';
- }
-
- /**
- * Create a new MessageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInstance Newly created MessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'From' => $options['from'],
- 'Attributes' => $options['attributes'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'LastUpdatedBy' => $options['lastUpdatedBy'],
- 'Body' => $options['body'],
- 'MediaSid' => $options['mediaSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Streams MessageInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MessageInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MessageInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MessageInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MessageInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MessageInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MessagePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MessageContext
- *
- * @param string $sid Key that uniquely defines the message to fetch.
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MessageContext
- */
- public function getContext($sid) {
- return new MessageContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.MessageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.php
deleted file mode 100644
index 94f5758..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.php
+++ /dev/null
@@ -1,334 +0,0 @@
-options['from'] = $from;
- $this->options['attributes'] = $attributes;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- $this->options['body'] = $body;
- $this->options['mediaSid'] = $mediaSid;
- }
-
- /**
- * The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the message's author. Defaults to `system`.
- *
- * @param string $from The identity of the message's author. Defaults to system
- * if not specified.
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * An string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that this will always be null for resources returned via LIST GET operations, but will be present for single GET operations.
- *
- * @param string $attributes The attributes metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Chat's history is being recreated from a backup/separate source.
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Message should be set as being created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Chat's history is being recreated from a backup/separate source and where a Message was previously updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Message should be set as having been last
- * updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Specify the Identity of the User that last updated the Message (if relevant)
- *
- * @param string $lastUpdatedBy Specify the Identity of the User that last
- * updated the Message
- * @return $this Fluent Builder
- */
- public function setLastUpdatedBy($lastUpdatedBy) {
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- return $this;
- }
-
- /**
- * A string message to send to this channel. You can also send structured data by serializing it into a string. May be empty string or `null`, will be set as empty string as a result in this cases.
- *
- * @param string $body The message body string.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * The [Media](https://www.twilio.com/docs/api/chat/rest/media) Sid to be attached to this Message.
- *
- * @param string $mediaSid The Media Sid to be attached to this Message.
- * @return $this Fluent Builder
- */
- public function setMediaSid($mediaSid) {
- $this->options['mediaSid'] = $mediaSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadMessageOptions extends Options {
- /**
- * @param string $order Specifies sorting order for messages list, possible
- * values are: `asc` or `desc`.
- */
- public function __construct($order = Values::NONE) {
- $this->options['order'] = $order;
- }
-
- /**
- * Specifies sorting order for messages list, possible values are: `asc` or `desc`. If no value is specified, then `asc` is used as the default.
- *
- * @param string $order Specifies sorting order for messages list, possible
- * values are: `asc` or `desc`.
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.ReadMessageOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateMessageOptions extends Options {
- /**
- * @param string $body The message body string.
- * @param string $attributes The attributes metadata field you can use to store
- * any data you wish.
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Message should be set as being created.
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Message should be set as having been last
- * updated.
- * @param string $lastUpdatedBy Specify the Identity of the User that last
- * updated the Message
- * @param string $from The identity of the message's author.
- */
- public function __construct($body = Values::NONE, $attributes = Values::NONE, $dateCreated = Values::NONE, $dateUpdated = Values::NONE, $lastUpdatedBy = Values::NONE, $from = Values::NONE) {
- $this->options['body'] = $body;
- $this->options['attributes'] = $attributes;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- $this->options['from'] = $from;
- }
-
- /**
- * The message body string. You can also send structured data by serializing it into a string. May be updated to empty string or `null`, will be set as empty string as a result in this cases.
- *
- * @param string $body The message body string.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that this will always be null for resources returned via LIST GET operations, but will be present for single GET operations.
- *
- * @param string $attributes The attributes metadata field you can use to store
- * any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as being created.
- *
- * @param \DateTime $dateCreated The ISO8601 time specifying the datetime the
- * Message should be set as being created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The ISO8601 time specifying the datetime the Message should be set as having been last updated.
- *
- * @param \DateTime $dateUpdated The ISO8601 time specifying the datetime the
- * Message should be set as having been last
- * updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Specify the Identity of the User that last updated the Message (if relevant)
- *
- * @param string $lastUpdatedBy Specify the Identity of the User that last
- * updated the Message
- * @return $this Fluent Builder
- */
- public function setLastUpdatedBy($lastUpdatedBy) {
- $this->options['lastUpdatedBy'] = $lastUpdatedBy;
- return $this;
- }
-
- /**
- * The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the message's author.
- *
- * @param string $from The identity of the message's author.
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateMessageOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessagePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessagePage.php
deleted file mode 100644
index 8fc1265..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/MessagePage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.MessagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookContext.php
deleted file mode 100644
index b7f6de2..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Webhooks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a WebhookInstance
- *
- * @return WebhookInstance Fetched WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the WebhookInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WebhookInstance Updated WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Configuration.Url' => $options['configurationUrl'],
- 'Configuration.Method' => $options['configurationMethod'],
- 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }),
- 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }),
- 'Configuration.FlowSid' => $options['configurationFlowSid'],
- 'Configuration.RetryCount' => $options['configurationRetryCount'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the WebhookInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.WebhookContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookInstance.php
deleted file mode 100644
index f2cf88f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookInstance.php
+++ /dev/null
@@ -1,148 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'type' => Values::array_get($payload, 'type'),
- 'url' => Values::array_get($payload, 'url'),
- 'configuration' => Values::array_get($payload, 'configuration'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'channelSid' => $channelSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\WebhookContext Context
- * for this
- * WebhookInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WebhookContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WebhookInstance
- *
- * @return WebhookInstance Fetched WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the WebhookInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WebhookInstance Updated WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the WebhookInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.WebhookInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookList.php
deleted file mode 100644
index f0c6f51..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'channelSid' => $channelSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($channelSid) . '/Webhooks';
- }
-
- /**
- * Streams WebhookInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads WebhookInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return WebhookInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of WebhookInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of WebhookInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WebhookPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of WebhookInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of WebhookInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new WebhookPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new WebhookInstance
- *
- * @param string $type The type
- * @param array|Options $options Optional Arguments
- * @return WebhookInstance Newly created WebhookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'Configuration.Url' => $options['configurationUrl'],
- 'Configuration.Method' => $options['configurationMethod'],
- 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }),
- 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }),
- 'Configuration.FlowSid' => $options['configurationFlowSid'],
- 'Configuration.RetryCount' => $options['configurationRetryCount'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Constructs a WebhookContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\WebhookContext
- */
- public function getContext($sid) {
- return new WebhookContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['channelSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.WebhookList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.php
deleted file mode 100644
index f194971..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.php
+++ /dev/null
@@ -1,241 +0,0 @@
-options['configurationUrl'] = $configurationUrl;
- $this->options['configurationMethod'] = $configurationMethod;
- $this->options['configurationFilters'] = $configurationFilters;
- $this->options['configurationTriggers'] = $configurationTriggers;
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- }
-
- /**
- * The configuration.url
- *
- * @param string $configurationUrl The configuration.url
- * @return $this Fluent Builder
- */
- public function setConfigurationUrl($configurationUrl) {
- $this->options['configurationUrl'] = $configurationUrl;
- return $this;
- }
-
- /**
- * The configuration.method
- *
- * @param string $configurationMethod The configuration.method
- * @return $this Fluent Builder
- */
- public function setConfigurationMethod($configurationMethod) {
- $this->options['configurationMethod'] = $configurationMethod;
- return $this;
- }
-
- /**
- * The configuration.filters
- *
- * @param string $configurationFilters The configuration.filters
- * @return $this Fluent Builder
- */
- public function setConfigurationFilters($configurationFilters) {
- $this->options['configurationFilters'] = $configurationFilters;
- return $this;
- }
-
- /**
- * The configuration.triggers
- *
- * @param string $configurationTriggers The configuration.triggers
- * @return $this Fluent Builder
- */
- public function setConfigurationTriggers($configurationTriggers) {
- $this->options['configurationTriggers'] = $configurationTriggers;
- return $this;
- }
-
- /**
- * The configuration.flow_sid
- *
- * @param string $configurationFlowSid The configuration.flow_sid
- * @return $this Fluent Builder
- */
- public function setConfigurationFlowSid($configurationFlowSid) {
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- return $this;
- }
-
- /**
- * The configuration.retry_count
- *
- * @param integer $configurationRetryCount The configuration.retry_count
- * @return $this Fluent Builder
- */
- public function setConfigurationRetryCount($configurationRetryCount) {
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateWebhookOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateWebhookOptions extends Options {
- /**
- * @param string $configurationUrl The configuration.url
- * @param string $configurationMethod The configuration.method
- * @param string $configurationFilters The configuration.filters
- * @param string $configurationTriggers The configuration.triggers
- * @param string $configurationFlowSid The configuration.flow_sid
- * @param integer $configurationRetryCount The configuration.retry_count
- */
- public function __construct($configurationUrl = Values::NONE, $configurationMethod = Values::NONE, $configurationFilters = Values::NONE, $configurationTriggers = Values::NONE, $configurationFlowSid = Values::NONE, $configurationRetryCount = Values::NONE) {
- $this->options['configurationUrl'] = $configurationUrl;
- $this->options['configurationMethod'] = $configurationMethod;
- $this->options['configurationFilters'] = $configurationFilters;
- $this->options['configurationTriggers'] = $configurationTriggers;
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- }
-
- /**
- * The configuration.url
- *
- * @param string $configurationUrl The configuration.url
- * @return $this Fluent Builder
- */
- public function setConfigurationUrl($configurationUrl) {
- $this->options['configurationUrl'] = $configurationUrl;
- return $this;
- }
-
- /**
- * The configuration.method
- *
- * @param string $configurationMethod The configuration.method
- * @return $this Fluent Builder
- */
- public function setConfigurationMethod($configurationMethod) {
- $this->options['configurationMethod'] = $configurationMethod;
- return $this;
- }
-
- /**
- * The configuration.filters
- *
- * @param string $configurationFilters The configuration.filters
- * @return $this Fluent Builder
- */
- public function setConfigurationFilters($configurationFilters) {
- $this->options['configurationFilters'] = $configurationFilters;
- return $this;
- }
-
- /**
- * The configuration.triggers
- *
- * @param string $configurationTriggers The configuration.triggers
- * @return $this Fluent Builder
- */
- public function setConfigurationTriggers($configurationTriggers) {
- $this->options['configurationTriggers'] = $configurationTriggers;
- return $this;
- }
-
- /**
- * The configuration.flow_sid
- *
- * @param string $configurationFlowSid The configuration.flow_sid
- * @return $this Fluent Builder
- */
- public function setConfigurationFlowSid($configurationFlowSid) {
- $this->options['configurationFlowSid'] = $configurationFlowSid;
- return $this;
- }
-
- /**
- * The configuration.retry_count
- *
- * @param integer $configurationRetryCount The configuration.retry_count
- * @return $this Fluent Builder
- */
- public function setConfigurationRetryCount($configurationRetryCount) {
- $this->options['configurationRetryCount'] = $configurationRetryCount;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateWebhookOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookPage.php
deleted file mode 100644
index d2c8b3a..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WebhookInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.WebhookPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelContext.php
deleted file mode 100644
index 8a8666a..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelContext.php
+++ /dev/null
@@ -1,236 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'CreatedBy' => $options['createdBy'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MemberList
- */
- protected function getMembers() {
- if (!$this->_members) {
- $this->_members = new MemberList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MessageList
- */
- protected function getMessages() {
- if (!$this->_messages) {
- $this->_messages = new MessageList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\InviteList
- */
- protected function getInvites() {
- if (!$this->_invites) {
- $this->_invites = new InviteList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_invites;
- }
-
- /**
- * Access the webhooks
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\WebhookList
- */
- protected function getWebhooks() {
- if (!$this->_webhooks) {
- $this->_webhooks = new WebhookList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_webhooks;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.ChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelInstance.php
deleted file mode 100644
index dfa2342..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelInstance.php
+++ /dev/null
@@ -1,193 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'type' => Values::array_get($payload, 'type'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- 'membersCount' => Values::array_get($payload, 'members_count'),
- 'messagesCount' => Values::array_get($payload, 'messages_count'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\ChannelContext Context for this
- * ChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ChannelInstance
- *
- * @return ChannelInstance Fetched ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ChannelInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Updated ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the members
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MemberList
- */
- protected function getMembers() {
- return $this->proxy()->members;
- }
-
- /**
- * Access the messages
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\MessageList
- */
- protected function getMessages() {
- return $this->proxy()->messages;
- }
-
- /**
- * Access the invites
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\InviteList
- */
- protected function getInvites() {
- return $this->proxy()->invites;
- }
-
- /**
- * Access the webhooks
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\Channel\WebhookList
- */
- protected function getWebhooks() {
- return $this->proxy()->webhooks;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.ChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelList.php
deleted file mode 100644
index 363da33..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelList.php
+++ /dev/null
@@ -1,175 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Channels';
- }
-
- /**
- * Create a new ChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ChannelInstance Newly created ChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Attributes' => $options['attributes'],
- 'Type' => $options['type'],
- 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']),
- 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']),
- 'CreatedBy' => $options['createdBy'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams ChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ChannelInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Type' => Serialize::map($options['type'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ChannelContext
- *
- * @param string $sid Key that uniquely defines the channel to fetch.
- * @return \Twilio\Rest\IpMessaging\V2\Service\ChannelContext
- */
- public function getContext($sid) {
- return new ChannelContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.ChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.php
deleted file mode 100644
index 520bff6..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.php
+++ /dev/null
@@ -1,334 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- $this->options['type'] = $type;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['createdBy'] = $createdBy;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set "{}" will be returned.
- *
- * @param string $attributes An optional string metadata field you can use to
- * store any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The visibility of the channel - `public` or `private`. Defaults to `public`.
- *
- * @param string $type The visibility of the channel - public or private.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a a Channel is being recreated from a backup/separate source
- *
- * @param \DateTime $dateCreated The optional ISO8601 time specifying the
- * datetime the Channel should be set as being
- * created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as having been last updated. Will be set to the `null` by the Chat service if not specified. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated.
- *
- * @param \DateTime $dateUpdated The optional ISO8601 time specifying the
- * datetime the Channel should be set as having
- * been last updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Optional field to specify the Identity of the User that created the Channel. Will be set to "system" if not specified.
- *
- * @param string $createdBy Optional field to specify the Identity of the User
- * that created the Channel.
- * @return $this Fluent Builder
- */
- public function setCreatedBy($createdBy) {
- $this->options['createdBy'] = $createdBy;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadChannelOptions extends Options {
- /**
- * @param string $type The visibility of the channel - public or private.
- */
- public function __construct($type = Values::NONE) {
- $this->options['type'] = $type;
- }
-
- /**
- * The visibility of the channel - `public` or `private`. Defaults to `public`.
- *
- * @param string $type The visibility of the channel - public or private.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.ReadChannelOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateChannelOptions extends Options {
- /**
- * @param string $friendlyName A human-readable name for the Channel.
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @param string $attributes An optional string metadata field you can use to
- * store any data you wish.
- * @param \DateTime $dateCreated The optional ISO8601 time specifying the
- * datetime the Channel should be set as being
- * created.
- * @param \DateTime $dateUpdated The optional ISO8601 time specifying the
- * datetime the Channel should be set as having
- * been last updated.
- * @param string $createdBy Optional field to specify the Identity of the User
- * that created the Channel.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE, $attributes = Values::NONE, $dateCreated = Values::NONE, $dateUpdated = Values::NONE, $createdBy = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['attributes'] = $attributes;
- $this->options['dateCreated'] = $dateCreated;
- $this->options['dateUpdated'] = $dateUpdated;
- $this->options['createdBy'] = $createdBy;
- }
-
- /**
- * A human-readable name for the Channel. Optional.
- *
- * @param string $friendlyName A human-readable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A unique, addressable name for the Channel. Optional.
- *
- * @param string $uniqueName A unique, addressable name for the Channel.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set "{}" will be returned.
- *
- * @param string $attributes An optional string metadata field you can use to
- * store any data you wish.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as being created.
- *
- * @param \DateTime $dateCreated The optional ISO8601 time specifying the
- * datetime the Channel should be set as being
- * created.
- * @return $this Fluent Builder
- */
- public function setDateCreated($dateCreated) {
- $this->options['dateCreated'] = $dateCreated;
- return $this;
- }
-
- /**
- * The optional ISO8601 time specifying the datetime the Channel should be set as having been last updated.
- *
- * @param \DateTime $dateUpdated The optional ISO8601 time specifying the
- * datetime the Channel should be set as having
- * been last updated.
- * @return $this Fluent Builder
- */
- public function setDateUpdated($dateUpdated) {
- $this->options['dateUpdated'] = $dateUpdated;
- return $this;
- }
-
- /**
- * Optional field to specify the Identity of the User that created the Channel.
- *
- * @param string $createdBy Optional field to specify the Identity of the User
- * that created the Channel.
- * @return $this Fluent Builder
- */
- public function setCreatedBy($createdBy) {
- $this->options['createdBy'] = $createdBy;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateChannelOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelPage.php
deleted file mode 100644
index 8c01dbd..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/ChannelPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ChannelInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.ChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleContext.php
deleted file mode 100644
index 776e396..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleContext.php
+++ /dev/null
@@ -1,105 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.RoleContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleInstance.php
deleted file mode 100644
index ee8781b..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'permissions' => Values::array_get($payload, 'permissions'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\RoleContext Context for this
- * RoleInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RoleContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RoleInstance
- *
- * @return RoleInstance Fetched RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RoleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the RoleInstance
- *
- * @param string $permission A permission this role should have.
- * @return RoleInstance Updated RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($permission) {
- return $this->proxy()->update($permission);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.RoleInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleList.php
deleted file mode 100644
index e5e777b..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RoleList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Roles';
- }
-
- /**
- * Create a new RoleInstance
- *
- * @param string $friendlyName The human-readable name of this role.
- * @param string $type What kind of role this is.
- * @param string $permission A permission this role should have.
- * @return RoleInstance Newly created RoleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $type, $permission) {
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Type' => $type,
- 'Permission' => Serialize::map($permission, function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams RoleInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RoleInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RoleInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RoleInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RoleInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RoleInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RolePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RoleContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\Service\RoleContext
- */
- public function getContext($sid) {
- return new RoleContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.RoleList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RolePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RolePage.php
deleted file mode 100644
index a9613be..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/RolePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.RolePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingContext.php
deleted file mode 100644
index b87a87f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Bindings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a UserBindingInstance
- *
- * @return UserBindingInstance Fetched UserBindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserBindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the UserBindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.UserBindingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingInstance.php
deleted file mode 100644
index 91f65c9..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'endpoint' => Values::array_get($payload, 'endpoint'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'userSid' => Values::array_get($payload, 'user_sid'),
- 'credentialSid' => Values::array_get($payload, 'credential_sid'),
- 'bindingType' => Values::array_get($payload, 'binding_type'),
- 'messageTypes' => Values::array_get($payload, 'message_types'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'userSid' => $userSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserBindingContext Context
- * for this
- * UserBindingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserBindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserBindingInstance
- *
- * @return UserBindingInstance Fetched UserBindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the UserBindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.UserBindingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingList.php
deleted file mode 100644
index 488afcf..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingList.php
+++ /dev/null
@@ -1,151 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Bindings';
- }
-
- /**
- * Streams UserBindingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserBindingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserBindingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserBindingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserBindingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'BindingType' => Serialize::map($options['bindingType'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserBindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserBindingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserBindingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserBindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserBindingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserBindingContext
- */
- public function getContext($sid) {
- return new UserBindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.UserBindingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.php
deleted file mode 100644
index 1ffbd39..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['bindingType'] = $bindingType;
- }
-
- /**
- * The push technology used for the returned Bindings. Supported values are apn, gcm and fcm. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more information.
- *
- * @param string $bindingType The push technology used for the bindings
- * returned.
- * @return $this Fluent Builder
- */
- public function setBindingType($bindingType) {
- $this->options['bindingType'] = $bindingType;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.ReadUserBindingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingPage.php
deleted file mode 100644
index 2840d48..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserBindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.UserBindingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelContext.php
deleted file mode 100644
index 10e614f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelContext.php
+++ /dev/null
@@ -1,103 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'userSid' => $userSid,
- 'channelSid' => $channelSid,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Channels/' . rawurlencode($channelSid) . '';
- }
-
- /**
- * Fetch a UserChannelInstance
- *
- * @return UserChannelInstance Fetched UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Update the UserChannelInstance
- *
- * @param string $notificationLevel Push notification level to be assigned to
- * Channel of the User.
- * @return UserChannelInstance Updated UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($notificationLevel) {
- $data = Values::of(array('NotificationLevel' => $notificationLevel, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['channelSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.UserChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelInstance.php
deleted file mode 100644
index cb496b3..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelInstance.php
+++ /dev/null
@@ -1,142 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'channelSid' => Values::array_get($payload, 'channel_sid'),
- 'userSid' => Values::array_get($payload, 'user_sid'),
- 'memberSid' => Values::array_get($payload, 'member_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'lastConsumedMessageIndex' => Values::array_get($payload, 'last_consumed_message_index'),
- 'unreadMessagesCount' => Values::array_get($payload, 'unread_messages_count'),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- 'notificationLevel' => Values::array_get($payload, 'notification_level'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'userSid' => $userSid,
- 'channelSid' => $channelSid ?: $this->properties['channelSid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserChannelContext Context
- * for this
- * UserChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $this->solution['channelSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserChannelInstance
- *
- * @return UserChannelInstance Fetched UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the UserChannelInstance
- *
- * @param string $notificationLevel Push notification level to be assigned to
- * Channel of the User.
- * @return UserChannelInstance Updated UserChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($notificationLevel) {
- return $this->proxy()->update($notificationLevel);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.UserChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelList.php
deleted file mode 100644
index 665b36c..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelList.php
+++ /dev/null
@@ -1,144 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'userSid' => $userSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($userSid) . '/Channels';
- }
-
- /**
- * Streams UserChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserChannelInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserChannelContext
- *
- * @param string $channelSid The unique id of a Channel.
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserChannelContext
- */
- public function getContext($channelSid) {
- return new UserChannelContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['userSid'],
- $channelSid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.UserChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelPage.php
deleted file mode 100644
index 1ef8eed..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserChannelInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['userSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.UserChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserContext.php
deleted file mode 100644
index 8cb8b89..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserContext.php
+++ /dev/null
@@ -1,190 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- if (!$this->_userChannels) {
- $this->_userChannels = new UserChannelList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_userChannels;
- }
-
- /**
- * Access the userBindings
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserBindingList
- */
- protected function getUserBindings() {
- if (!$this->_userBindings) {
- $this->_userBindings = new UserBindingList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_userBindings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.UserContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserInstance.php
deleted file mode 100644
index 33014f6..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserInstance.php
+++ /dev/null
@@ -1,172 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'roleSid' => Values::array_get($payload, 'role_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'isOnline' => Values::array_get($payload, 'is_online'),
- 'isNotifiable' => Values::array_get($payload, 'is_notifiable'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'joinedChannelsCount' => Values::array_get($payload, 'joined_channels_count'),
- 'links' => Values::array_get($payload, 'links'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\UserContext Context for this
- * UserInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UserContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UserInstance
- *
- * @return UserInstance Fetched UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the UserInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the UserInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UserInstance Updated UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the userChannels
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserChannelList
- */
- protected function getUserChannels() {
- return $this->proxy()->userChannels;
- }
-
- /**
- * Access the userBindings
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\User\UserBindingList
- */
- protected function getUserBindings() {
- return $this->proxy()->userBindings;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.UserInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserList.php
deleted file mode 100644
index 763d093..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Users';
- }
-
- /**
- * Create a new UserInstance
- *
- * @param string $identity A unique string that identifies the user within this
- * service - often a username or email address.
- * @param array|Options $options Optional Arguments
- * @return UserInstance Newly created UserInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'RoleSid' => $options['roleSid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams UserInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UserInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UserInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UserInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UserInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UserInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UserPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a UserContext
- *
- * @param string $sid Key that uniquely defines the user to fetch.
- * @return \Twilio\Rest\IpMessaging\V2\Service\UserContext
- */
- public function getContext($sid) {
- return new UserContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.UserList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserOptions.php
deleted file mode 100644
index 467a121..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserOptions.php
+++ /dev/null
@@ -1,172 +0,0 @@
-options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user.
- *
- * @param string $roleSid The unique id of the Role assigned to this user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.CreateUserOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateUserOptions extends Options {
- /**
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @param string $friendlyName An optional human readable string representing
- * the user.
- */
- public function __construct($roleSid = Values::NONE, $attributes = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['roleSid'] = $roleSid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique id of the [Role][role] assigned to this user.
- *
- * @param string $roleSid The unique id of the [Role][role] assigned to this
- * user.
- * @return $this Fluent Builder
- */
- public function setRoleSid($roleSid) {
- $this->options['roleSid'] = $roleSid;
- return $this;
- }
-
- /**
- * An optional string used to contain any metadata or other information for the User. The string must contain structurally valid JSON if specified.
- *
- * @param string $attributes An optional string used to contain any metadata or
- * other information for the User.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * An optional human readable string representing the user. Often used for display purposes.
- *
- * @param string $friendlyName An optional human readable string representing
- * the user.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateUserOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserPage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserPage.php
deleted file mode 100644
index bf135b1..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/Service/UserPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UserInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.UserPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceContext.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceContext.php
deleted file mode 100644
index 45a8301..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceContext.php
+++ /dev/null
@@ -1,234 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DefaultServiceRoleSid' => $options['defaultServiceRoleSid'],
- 'DefaultChannelRoleSid' => $options['defaultChannelRoleSid'],
- 'DefaultChannelCreatorRoleSid' => $options['defaultChannelCreatorRoleSid'],
- 'ReadStatusEnabled' => Serialize::booleanToString($options['readStatusEnabled']),
- 'ReachabilityEnabled' => Serialize::booleanToString($options['reachabilityEnabled']),
- 'TypingIndicatorTimeout' => $options['typingIndicatorTimeout'],
- 'ConsumptionReportInterval' => $options['consumptionReportInterval'],
- 'Notifications.NewMessage.Enabled' => Serialize::booleanToString($options['notificationsNewMessageEnabled']),
- 'Notifications.NewMessage.Template' => $options['notificationsNewMessageTemplate'],
- 'Notifications.NewMessage.Sound' => $options['notificationsNewMessageSound'],
- 'Notifications.NewMessage.BadgeCountEnabled' => Serialize::booleanToString($options['notificationsNewMessageBadgeCountEnabled']),
- 'Notifications.AddedToChannel.Enabled' => Serialize::booleanToString($options['notificationsAddedToChannelEnabled']),
- 'Notifications.AddedToChannel.Template' => $options['notificationsAddedToChannelTemplate'],
- 'Notifications.AddedToChannel.Sound' => $options['notificationsAddedToChannelSound'],
- 'Notifications.RemovedFromChannel.Enabled' => Serialize::booleanToString($options['notificationsRemovedFromChannelEnabled']),
- 'Notifications.RemovedFromChannel.Template' => $options['notificationsRemovedFromChannelTemplate'],
- 'Notifications.RemovedFromChannel.Sound' => $options['notificationsRemovedFromChannelSound'],
- 'Notifications.InvitedToChannel.Enabled' => Serialize::booleanToString($options['notificationsInvitedToChannelEnabled']),
- 'Notifications.InvitedToChannel.Template' => $options['notificationsInvitedToChannelTemplate'],
- 'Notifications.InvitedToChannel.Sound' => $options['notificationsInvitedToChannelSound'],
- 'PreWebhookUrl' => $options['preWebhookUrl'],
- 'PostWebhookUrl' => $options['postWebhookUrl'],
- 'WebhookMethod' => $options['webhookMethod'],
- 'WebhookFilters' => Serialize::map($options['webhookFilters'], function($e) { return $e; }),
- 'Limits.ChannelMembers' => $options['limitsChannelMembers'],
- 'Limits.UserChannels' => $options['limitsUserChannels'],
- 'Media.CompatibilityMessage' => $options['mediaCompatibilityMessage'],
- 'PreWebhookRetryCount' => $options['preWebhookRetryCount'],
- 'PostWebhookRetryCount' => $options['postWebhookRetryCount'],
- 'Notifications.LogEnabled' => Serialize::booleanToString($options['notificationsLogEnabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\ChannelList
- */
- protected function getChannels() {
- if (!$this->_channels) {
- $this->_channels = new ChannelList($this->version, $this->solution['sid']);
- }
-
- return $this->_channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\RoleList
- */
- protected function getRoles() {
- if (!$this->_roles) {
- $this->_roles = new RoleList($this->version, $this->solution['sid']);
- }
-
- return $this->_roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\UserList
- */
- protected function getUsers() {
- if (!$this->_users) {
- $this->_users = new UserList($this->version, $this->solution['sid']);
- }
-
- return $this->_users;
- }
-
- /**
- * Access the bindings
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\BindingList
- */
- protected function getBindings() {
- if (!$this->_bindings) {
- $this->_bindings = new BindingList($this->version, $this->solution['sid']);
- }
-
- return $this->_bindings;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceInstance.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceInstance.php
deleted file mode 100644
index ab6ec0e..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceInstance.php
+++ /dev/null
@@ -1,205 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'defaultServiceRoleSid' => Values::array_get($payload, 'default_service_role_sid'),
- 'defaultChannelRoleSid' => Values::array_get($payload, 'default_channel_role_sid'),
- 'defaultChannelCreatorRoleSid' => Values::array_get($payload, 'default_channel_creator_role_sid'),
- 'readStatusEnabled' => Values::array_get($payload, 'read_status_enabled'),
- 'reachabilityEnabled' => Values::array_get($payload, 'reachability_enabled'),
- 'typingIndicatorTimeout' => Values::array_get($payload, 'typing_indicator_timeout'),
- 'consumptionReportInterval' => Values::array_get($payload, 'consumption_report_interval'),
- 'limits' => Values::array_get($payload, 'limits'),
- 'preWebhookUrl' => Values::array_get($payload, 'pre_webhook_url'),
- 'postWebhookUrl' => Values::array_get($payload, 'post_webhook_url'),
- 'webhookMethod' => Values::array_get($payload, 'webhook_method'),
- 'webhookFilters' => Values::array_get($payload, 'webhook_filters'),
- 'preWebhookRetryCount' => Values::array_get($payload, 'pre_webhook_retry_count'),
- 'postWebhookRetryCount' => Values::array_get($payload, 'post_webhook_retry_count'),
- 'notifications' => Values::array_get($payload, 'notifications'),
- 'media' => Values::array_get($payload, 'media'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\IpMessaging\V2\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the channels
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\ChannelList
- */
- protected function getChannels() {
- return $this->proxy()->channels;
- }
-
- /**
- * Access the roles
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\RoleList
- */
- protected function getRoles() {
- return $this->proxy()->roles;
- }
-
- /**
- * Access the users
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\UserList
- */
- protected function getUsers() {
- return $this->proxy()->users;
- }
-
- /**
- * Access the bindings
- *
- * @return \Twilio\Rest\IpMessaging\V2\Service\BindingList
- */
- protected function getBindings() {
- return $this->proxy()->bindings;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.IpMessaging.V2.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceList.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceList.php
deleted file mode 100644
index 70d140f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceList.php
+++ /dev/null
@@ -1,156 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\IpMessaging\V2\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceOptions.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceOptions.php
deleted file mode 100644
index 44f490f..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServiceOptions.php
+++ /dev/null
@@ -1,565 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- $this->options['notificationsNewMessageSound'] = $notificationsNewMessageSound;
- $this->options['notificationsNewMessageBadgeCountEnabled'] = $notificationsNewMessageBadgeCountEnabled;
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- $this->options['notificationsAddedToChannelSound'] = $notificationsAddedToChannelSound;
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- $this->options['notificationsRemovedFromChannelSound'] = $notificationsRemovedFromChannelSound;
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- $this->options['notificationsInvitedToChannelSound'] = $notificationsInvitedToChannelSound;
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- $this->options['webhookMethod'] = $webhookMethod;
- $this->options['webhookFilters'] = $webhookFilters;
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- $this->options['mediaCompatibilityMessage'] = $mediaCompatibilityMessage;
- $this->options['preWebhookRetryCount'] = $preWebhookRetryCount;
- $this->options['postWebhookRetryCount'] = $postWebhookRetryCount;
- $this->options['notificationsLogEnabled'] = $notificationsLogEnabled;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The default_service_role_sid
- *
- * @param string $defaultServiceRoleSid The default_service_role_sid
- * @return $this Fluent Builder
- */
- public function setDefaultServiceRoleSid($defaultServiceRoleSid) {
- $this->options['defaultServiceRoleSid'] = $defaultServiceRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned on channel join (see [Roles](https://www.twilio.com/docs/chat/api/roles) data model for the details)
- *
- * @param string $defaultChannelRoleSid Channel role assigned on channel join
- * @return $this Fluent Builder
- */
- public function setDefaultChannelRoleSid($defaultChannelRoleSid) {
- $this->options['defaultChannelRoleSid'] = $defaultChannelRoleSid;
- return $this;
- }
-
- /**
- * Channel role assigned to creator of channel when joining for first time
- *
- * @param string $defaultChannelCreatorRoleSid Channel role assigned to creator
- * of channel when joining for
- * first time
- * @return $this Fluent Builder
- */
- public function setDefaultChannelCreatorRoleSid($defaultChannelCreatorRoleSid) {
- $this->options['defaultChannelCreatorRoleSid'] = $defaultChannelCreatorRoleSid;
- return $this;
- }
-
- /**
- * `true` if the member read status feature is enabled, `false` if not. Defaults to `true`.
- *
- * @param boolean $readStatusEnabled true if the member read status feature is
- * enabled, false if not.
- * @return $this Fluent Builder
- */
- public function setReadStatusEnabled($readStatusEnabled) {
- $this->options['readStatusEnabled'] = $readStatusEnabled;
- return $this;
- }
-
- /**
- * `true` if the reachability feature should be enabled. Defaults to `false`
- *
- * @param boolean $reachabilityEnabled true if the reachability feature should
- * be enabled.
- * @return $this Fluent Builder
- */
- public function setReachabilityEnabled($reachabilityEnabled) {
- $this->options['reachabilityEnabled'] = $reachabilityEnabled;
- return $this;
- }
-
- /**
- * The duration in seconds indicating the timeout after "started typing" event when client should assume that user is not typing anymore even if no "ended typing" message received
- *
- * @param integer $typingIndicatorTimeout The duration in seconds indicating
- * the timeout after "started typing"
- * event when client should assume that
- * user is not typing anymore even if no
- * "ended typing" message received
- * @return $this Fluent Builder
- */
- public function setTypingIndicatorTimeout($typingIndicatorTimeout) {
- $this->options['typingIndicatorTimeout'] = $typingIndicatorTimeout;
- return $this;
- }
-
- /**
- * The consumption_report_interval
- *
- * @param integer $consumptionReportInterval The consumption_report_interval
- * @return $this Fluent Builder
- */
- public function setConsumptionReportInterval($consumptionReportInterval) {
- $this->options['consumptionReportInterval'] = $consumptionReportInterval;
- return $this;
- }
-
- /**
- * The notifications.new_message.enabled
- *
- * @param boolean $notificationsNewMessageEnabled The
- * notifications.new_message.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageEnabled($notificationsNewMessageEnabled) {
- $this->options['notificationsNewMessageEnabled'] = $notificationsNewMessageEnabled;
- return $this;
- }
-
- /**
- * The notifications.new_message.template
- *
- * @param string $notificationsNewMessageTemplate The
- * notifications.new_message.template
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageTemplate($notificationsNewMessageTemplate) {
- $this->options['notificationsNewMessageTemplate'] = $notificationsNewMessageTemplate;
- return $this;
- }
-
- /**
- * The notifications.new_message.sound
- *
- * @param string $notificationsNewMessageSound The
- * notifications.new_message.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageSound($notificationsNewMessageSound) {
- $this->options['notificationsNewMessageSound'] = $notificationsNewMessageSound;
- return $this;
- }
-
- /**
- * The notifications.new_message.badge_count_enabled
- *
- * @param boolean $notificationsNewMessageBadgeCountEnabled The
- * notifications.new_message.badge_count_enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsNewMessageBadgeCountEnabled($notificationsNewMessageBadgeCountEnabled) {
- $this->options['notificationsNewMessageBadgeCountEnabled'] = $notificationsNewMessageBadgeCountEnabled;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.enabled
- *
- * @param boolean $notificationsAddedToChannelEnabled The
- * notifications.added_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelEnabled($notificationsAddedToChannelEnabled) {
- $this->options['notificationsAddedToChannelEnabled'] = $notificationsAddedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.template
- *
- * @param string $notificationsAddedToChannelTemplate The
- * notifications.added_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelTemplate($notificationsAddedToChannelTemplate) {
- $this->options['notificationsAddedToChannelTemplate'] = $notificationsAddedToChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.added_to_channel.sound
- *
- * @param string $notificationsAddedToChannelSound The
- * notifications.added_to_channel.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsAddedToChannelSound($notificationsAddedToChannelSound) {
- $this->options['notificationsAddedToChannelSound'] = $notificationsAddedToChannelSound;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.enabled
- *
- * @param boolean $notificationsRemovedFromChannelEnabled The
- * notifications.removed_from_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelEnabled($notificationsRemovedFromChannelEnabled) {
- $this->options['notificationsRemovedFromChannelEnabled'] = $notificationsRemovedFromChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.template
- *
- * @param string $notificationsRemovedFromChannelTemplate The
- * notifications.removed_from_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelTemplate($notificationsRemovedFromChannelTemplate) {
- $this->options['notificationsRemovedFromChannelTemplate'] = $notificationsRemovedFromChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.removed_from_channel.sound
- *
- * @param string $notificationsRemovedFromChannelSound The
- * notifications.removed_from_channel.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsRemovedFromChannelSound($notificationsRemovedFromChannelSound) {
- $this->options['notificationsRemovedFromChannelSound'] = $notificationsRemovedFromChannelSound;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.enabled
- *
- * @param boolean $notificationsInvitedToChannelEnabled The
- * notifications.invited_to_channel.enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelEnabled($notificationsInvitedToChannelEnabled) {
- $this->options['notificationsInvitedToChannelEnabled'] = $notificationsInvitedToChannelEnabled;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.template
- *
- * @param string $notificationsInvitedToChannelTemplate The
- * notifications.invited_to_channel.template
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelTemplate($notificationsInvitedToChannelTemplate) {
- $this->options['notificationsInvitedToChannelTemplate'] = $notificationsInvitedToChannelTemplate;
- return $this;
- }
-
- /**
- * The notifications.invited_to_channel.sound
- *
- * @param string $notificationsInvitedToChannelSound The
- * notifications.invited_to_channel.sound
- * @return $this Fluent Builder
- */
- public function setNotificationsInvitedToChannelSound($notificationsInvitedToChannelSound) {
- $this->options['notificationsInvitedToChannelSound'] = $notificationsInvitedToChannelSound;
- return $this;
- }
-
- /**
- * The webhook URL for PRE-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $preWebhookUrl The webhook URL for PRE-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPreWebhookUrl($preWebhookUrl) {
- $this->options['preWebhookUrl'] = $preWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook URL for POST-Event webhooks. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $postWebhookUrl The webhook URL for POST-Event webhooks.
- * @return $this Fluent Builder
- */
- public function setPostWebhookUrl($postWebhookUrl) {
- $this->options['postWebhookUrl'] = $postWebhookUrl;
- return $this;
- }
-
- /**
- * The webhook request format to use. Must be POST or GET. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $webhookMethod The webhook request format to use.
- * @return $this Fluent Builder
- */
- public function setWebhookMethod($webhookMethod) {
- $this->options['webhookMethod'] = $webhookMethod;
- return $this;
- }
-
- /**
- * The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
- *
- * @param string $webhookFilters The list of WebHook events that are enabled
- * for this Service instance.
- * @return $this Fluent Builder
- */
- public function setWebhookFilters($webhookFilters) {
- $this->options['webhookFilters'] = $webhookFilters;
- return $this;
- }
-
- /**
- * The maximum number of Members that can be added to Channels within this Service. The maximum allowed value is 1,000
- *
- * @param integer $limitsChannelMembers The maximum number of Members that can
- * be added to Channels within this
- * Service.
- * @return $this Fluent Builder
- */
- public function setLimitsChannelMembers($limitsChannelMembers) {
- $this->options['limitsChannelMembers'] = $limitsChannelMembers;
- return $this;
- }
-
- /**
- * The maximum number of Channels Users can be a Member of within this Service. The maximum value allowed is 1,000
- *
- * @param integer $limitsUserChannels The maximum number of Channels Users can
- * be a Member of within this Service.
- * @return $this Fluent Builder
- */
- public function setLimitsUserChannels($limitsUserChannels) {
- $this->options['limitsUserChannels'] = $limitsUserChannels;
- return $this;
- }
-
- /**
- * The media.compatibility_message
- *
- * @param string $mediaCompatibilityMessage The media.compatibility_message
- * @return $this Fluent Builder
- */
- public function setMediaCompatibilityMessage($mediaCompatibilityMessage) {
- $this->options['mediaCompatibilityMessage'] = $mediaCompatibilityMessage;
- return $this;
- }
-
- /**
- * Count of times webhook will be retried in case of timeout (5 seconds) or 429/503/504 HTTP responses. Default retry count is 0 times.
- *
- * @param integer $preWebhookRetryCount Count of times webhook will be retried
- * in case of timeout or 429/503/504 HTTP
- * responses.
- * @return $this Fluent Builder
- */
- public function setPreWebhookRetryCount($preWebhookRetryCount) {
- $this->options['preWebhookRetryCount'] = $preWebhookRetryCount;
- return $this;
- }
-
- /**
- * Count of times webhook will be retried in case of timeout (5 seconds) or 429/503/504 HTTP responses. Default retry count is 0 times.
- *
- * @param integer $postWebhookRetryCount Count of times webhook will be retried
- * in case of timeout or 429/503/504 HTTP
- * responses.
- * @return $this Fluent Builder
- */
- public function setPostWebhookRetryCount($postWebhookRetryCount) {
- $this->options['postWebhookRetryCount'] = $postWebhookRetryCount;
- return $this;
- }
-
- /**
- * The notifications.log_enabled
- *
- * @param boolean $notificationsLogEnabled The notifications.log_enabled
- * @return $this Fluent Builder
- */
- public function setNotificationsLogEnabled($notificationsLogEnabled) {
- $this->options['notificationsLogEnabled'] = $notificationsLogEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.IpMessaging.V2.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServicePage.php b/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServicePage.php
deleted file mode 100644
index 63cf474..0000000
--- a/public/twilio-php/Twilio/Rest/IpMessaging/V2/ServicePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.IpMessaging.V2.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups.php b/public/twilio-php/Twilio/Rest/Lookups.php
deleted file mode 100644
index 5f6cebe..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://lookups.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Lookups\V1 Version v1 of lookups
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Lookups\V1\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- return $this->v1->phoneNumbers;
- }
-
- /**
- * @param string $phoneNumber The phone_number
- * @return \Twilio\Rest\Lookups\V1\PhoneNumberContext
- */
- protected function contextPhoneNumbers($phoneNumber) {
- return $this->v1->phoneNumbers($phoneNumber);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Lookups]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups/V1.php b/public/twilio-php/Twilio/Rest/Lookups/V1.php
deleted file mode 100644
index d88951d..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Lookups\V1\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- if (!$this->_phoneNumbers) {
- $this->_phoneNumbers = new PhoneNumberList($this);
- }
- return $this->_phoneNumbers;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Lookups.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberContext.php b/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberContext.php
deleted file mode 100644
index fdad45e..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberContext.php
+++ /dev/null
@@ -1,73 +0,0 @@
-solution = array('phoneNumber' => $phoneNumber, );
-
- $this->uri = '/PhoneNumbers/' . rawurlencode($phoneNumber) . '';
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'CountryCode' => $options['countryCode'],
- 'Type' => Serialize::map($options['type'], function($e) { return $e; }),
- 'AddOns' => Serialize::map($options['addOns'], function($e) { return $e; }),
- ));
-
- $params = array_merge($params, Serialize::prefixedCollapsibleMap($options['addOnsData'], 'AddOns'));
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberInstance($this->version, $payload, $this->solution['phoneNumber']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Lookups.V1.PhoneNumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberInstance.php
deleted file mode 100644
index 0f136e0..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberInstance.php
+++ /dev/null
@@ -1,111 +0,0 @@
-properties = array(
- 'callerName' => Values::array_get($payload, 'caller_name'),
- 'countryCode' => Values::array_get($payload, 'country_code'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'nationalFormat' => Values::array_get($payload, 'national_format'),
- 'carrier' => Values::array_get($payload, 'carrier'),
- 'addOns' => Values::array_get($payload, 'add_ons'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('phoneNumber' => $phoneNumber ?: $this->properties['phoneNumber'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Lookups\V1\PhoneNumberContext Context for this
- * PhoneNumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PhoneNumberContext($this->version, $this->solution['phoneNumber']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Lookups.V1.PhoneNumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberList.php b/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberList.php
deleted file mode 100644
index d5d8430..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a PhoneNumberContext
- *
- * @param string $phoneNumber The phone_number
- * @return \Twilio\Rest\Lookups\V1\PhoneNumberContext
- */
- public function getContext($phoneNumber) {
- return new PhoneNumberContext($this->version, $phoneNumber);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Lookups.V1.PhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberOptions.php b/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberOptions.php
deleted file mode 100644
index d65b9af..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberOptions.php
+++ /dev/null
@@ -1,106 +0,0 @@
-options['countryCode'] = $countryCode;
- $this->options['type'] = $type;
- $this->options['addOns'] = $addOns;
- $this->options['addOnsData'] = $addOnsData;
- }
-
- /**
- * Optional [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number. This is used to specify the country when the number is provided in a national format.
- *
- * @param string $countryCode Optional ISO country code of the phone number.
- * @return $this Fluent Builder
- */
- public function setCountryCode($countryCode) {
- $this->options['countryCode'] = $countryCode;
- return $this;
- }
-
- /**
- * Indicates the type of information you would like returned with your request. Possible values are `carrier` or `caller-name`. If not specified, the default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information costs $0.01 per phone number looked up, and is currently ONLY available in the US. You can retrieve both types of information by including two `Type` arguments or making two separate requests.
- *
- * @param string $type Indicates the type of information you would like
- * returned with your request.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Indicates the particular Add-on you would like to use to get more information. Possible values are the *Add-on Unique Names* of Add-ons installed on your account. You can specify multiple instances of this parameter to invoke different Add-ons. See [Add-ons documentation](https://www.twilio.com/docs/api/addons) for information on installing Add-ons. Add-on pricing is available in your list of Installed Add-ons in the Console.
- *
- * @param string $addOns Indicates the particular Add-on you would like to use
- * to get more information.
- * @return $this Fluent Builder
- */
- public function setAddOns($addOns) {
- $this->options['addOns'] = $addOns;
- return $this;
- }
-
- /**
- * The add_ons_data
- *
- * @param string $addOnsData The add_ons_data
- * @return $this Fluent Builder
- */
- public function setAddOnsData($addOnsData) {
- $this->options['addOnsData'] = $addOnsData;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Lookups.V1.FetchPhoneNumberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberPage.php
deleted file mode 100644
index 2cb6607..0000000
--- a/public/twilio-php/Twilio/Rest/Lookups/V1/PhoneNumberPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PhoneNumberInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Lookups.V1.PhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging.php b/public/twilio-php/Twilio/Rest/Messaging.php
deleted file mode 100644
index a94adfe..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://messaging.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Messaging\V1 Version v1 of messaging
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Messaging\V1\ServiceList
- */
- protected function getServices() {
- return $this->v1->services;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Messaging\V1\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v1->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1.php b/public/twilio-php/Twilio/Rest/Messaging/V1.php
deleted file mode 100644
index 4d8b6bc..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Messaging\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderContext.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderContext.php
deleted file mode 100644
index c3f2b45..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/AlphaSenders/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AlphaSenderInstance
- *
- * @return AlphaSenderInstance Fetched AlphaSenderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AlphaSenderInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the AlphaSenderInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.AlphaSenderContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderInstance.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderInstance.php
deleted file mode 100644
index 471f5db..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderInstance.php
+++ /dev/null
@@ -1,131 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'alphaSender' => Values::array_get($payload, 'alpha_sender'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Messaging\V1\Service\AlphaSenderContext Context for
- * this
- * AlphaSenderInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AlphaSenderContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AlphaSenderInstance
- *
- * @return AlphaSenderInstance Fetched AlphaSenderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AlphaSenderInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.AlphaSenderInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderList.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderList.php
deleted file mode 100644
index f021259..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderList.php
+++ /dev/null
@@ -1,162 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/AlphaSenders';
- }
-
- /**
- * Create a new AlphaSenderInstance
- *
- * @param string $alphaSender An Alphanumeric Sender ID string, up to 11
- * characters.
- * @return AlphaSenderInstance Newly created AlphaSenderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($alphaSender) {
- $data = Values::of(array('AlphaSender' => $alphaSender, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AlphaSenderInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams AlphaSenderInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AlphaSenderInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AlphaSenderInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AlphaSenderInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AlphaSenderInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AlphaSenderPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AlphaSenderInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AlphaSenderInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AlphaSenderPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AlphaSenderContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Messaging\V1\Service\AlphaSenderContext
- */
- public function getContext($sid) {
- return new AlphaSenderContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.AlphaSenderList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderPage.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderPage.php
deleted file mode 100644
index b2d009a..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/AlphaSenderPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AlphaSenderInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.AlphaSenderPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberContext.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberContext.php
deleted file mode 100644
index 4e5871e..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/PhoneNumbers/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the PhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.PhoneNumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberInstance.php
deleted file mode 100644
index 8daf2f1..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberInstance.php
+++ /dev/null
@@ -1,132 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'countryCode' => Values::array_get($payload, 'country_code'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Messaging\V1\Service\PhoneNumberContext Context for
- * this
- * PhoneNumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PhoneNumberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the PhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.PhoneNumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberList.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberList.php
deleted file mode 100644
index bbab7d6..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberList.php
+++ /dev/null
@@ -1,161 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/PhoneNumbers';
- }
-
- /**
- * Create a new PhoneNumberInstance
- *
- * @param string $phoneNumberSid Phone Number SID for the Phone Number being
- * added to the Service.
- * @return PhoneNumberInstance Newly created PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumberSid) {
- $data = Values::of(array('PhoneNumberSid' => $phoneNumberSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new PhoneNumberInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams PhoneNumberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads PhoneNumberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return PhoneNumberInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of PhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of PhoneNumberInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of PhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of PhoneNumberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new PhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a PhoneNumberContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Messaging\V1\Service\PhoneNumberContext
- */
- public function getContext($sid) {
- return new PhoneNumberContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.PhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberPage.php
deleted file mode 100644
index 159ff9e..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/PhoneNumberPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PhoneNumberInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.PhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeContext.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeContext.php
deleted file mode 100644
index 893f4cd..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/ShortCodes/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the ShortCodeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a ShortCodeInstance
- *
- * @return ShortCodeInstance Fetched ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ShortCodeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.ShortCodeContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeInstance.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeInstance.php
deleted file mode 100644
index f3c0f46..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeInstance.php
+++ /dev/null
@@ -1,131 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'shortCode' => Values::array_get($payload, 'short_code'),
- 'countryCode' => Values::array_get($payload, 'country_code'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Messaging\V1\Service\ShortCodeContext Context for this
- * ShortCodeInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ShortCodeContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the ShortCodeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a ShortCodeInstance
- *
- * @return ShortCodeInstance Fetched ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.ShortCodeInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeList.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeList.php
deleted file mode 100644
index 44b8e06..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodeList.php
+++ /dev/null
@@ -1,161 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/ShortCodes';
- }
-
- /**
- * Create a new ShortCodeInstance
- *
- * @param string $shortCodeSid ShortCodeSid for the Shortcode being added to
- * the Service.
- * @return ShortCodeInstance Newly created ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($shortCodeSid) {
- $data = Values::of(array('ShortCodeSid' => $shortCodeSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ShortCodeInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams ShortCodeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ShortCodeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ShortCodeInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ShortCodeInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ShortCodeInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ShortCodePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ShortCodeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ShortCodeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ShortCodePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ShortCodeContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Messaging\V1\Service\ShortCodeContext
- */
- public function getContext($sid) {
- return new ShortCodeContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.ShortCodeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodePage.php b/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodePage.php
deleted file mode 100644
index 2abae05..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/Service/ShortCodePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ShortCodeInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.ShortCodePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceContext.php
deleted file mode 100644
index daa22b6..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceContext.php
+++ /dev/null
@@ -1,202 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'InboundRequestUrl' => $options['inboundRequestUrl'],
- 'InboundMethod' => $options['inboundMethod'],
- 'FallbackUrl' => $options['fallbackUrl'],
- 'FallbackMethod' => $options['fallbackMethod'],
- 'StatusCallback' => $options['statusCallback'],
- 'StickySender' => Serialize::booleanToString($options['stickySender']),
- 'MmsConverter' => Serialize::booleanToString($options['mmsConverter']),
- 'SmartEncoding' => Serialize::booleanToString($options['smartEncoding']),
- 'ScanMessageContent' => $options['scanMessageContent'],
- 'FallbackToLongCode' => Serialize::booleanToString($options['fallbackToLongCode']),
- 'AreaCodeGeomatch' => Serialize::booleanToString($options['areaCodeGeomatch']),
- 'ValidityPeriod' => $options['validityPeriod'],
- 'SynchronousValidation' => Serialize::booleanToString($options['synchronousValidation']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the phoneNumbers
- *
- * @return \Twilio\Rest\Messaging\V1\Service\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- if (!$this->_phoneNumbers) {
- $this->_phoneNumbers = new PhoneNumberList($this->version, $this->solution['sid']);
- }
-
- return $this->_phoneNumbers;
- }
-
- /**
- * Access the shortCodes
- *
- * @return \Twilio\Rest\Messaging\V1\Service\ShortCodeList
- */
- protected function getShortCodes() {
- if (!$this->_shortCodes) {
- $this->_shortCodes = new ShortCodeList($this->version, $this->solution['sid']);
- }
-
- return $this->_shortCodes;
- }
-
- /**
- * Access the alphaSenders
- *
- * @return \Twilio\Rest\Messaging\V1\Service\AlphaSenderList
- */
- protected function getAlphaSenders() {
- if (!$this->_alphaSenders) {
- $this->_alphaSenders = new AlphaSenderList($this->version, $this->solution['sid']);
- }
-
- return $this->_alphaSenders;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceInstance.php
deleted file mode 100644
index 825e47f..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceInstance.php
+++ /dev/null
@@ -1,191 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'inboundRequestUrl' => Values::array_get($payload, 'inbound_request_url'),
- 'inboundMethod' => Values::array_get($payload, 'inbound_method'),
- 'fallbackUrl' => Values::array_get($payload, 'fallback_url'),
- 'fallbackMethod' => Values::array_get($payload, 'fallback_method'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'stickySender' => Values::array_get($payload, 'sticky_sender'),
- 'mmsConverter' => Values::array_get($payload, 'mms_converter'),
- 'smartEncoding' => Values::array_get($payload, 'smart_encoding'),
- 'scanMessageContent' => Values::array_get($payload, 'scan_message_content'),
- 'fallbackToLongCode' => Values::array_get($payload, 'fallback_to_long_code'),
- 'areaCodeGeomatch' => Values::array_get($payload, 'area_code_geomatch'),
- 'synchronousValidation' => Values::array_get($payload, 'synchronous_validation'),
- 'validityPeriod' => Values::array_get($payload, 'validity_period'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Messaging\V1\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the phoneNumbers
- *
- * @return \Twilio\Rest\Messaging\V1\Service\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- return $this->proxy()->phoneNumbers;
- }
-
- /**
- * Access the shortCodes
- *
- * @return \Twilio\Rest\Messaging\V1\Service\ShortCodeList
- */
- protected function getShortCodes() {
- return $this->proxy()->shortCodes;
- }
-
- /**
- * Access the alphaSenders
- *
- * @return \Twilio\Rest\Messaging\V1\Service\AlphaSenderList
- */
- protected function getAlphaSenders() {
- return $this->proxy()->alphaSenders;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Messaging.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceList.php
deleted file mode 100644
index c977b8a..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName A human readable descriptive text for this
- * resource, up to 64 characters.
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'InboundRequestUrl' => $options['inboundRequestUrl'],
- 'InboundMethod' => $options['inboundMethod'],
- 'FallbackUrl' => $options['fallbackUrl'],
- 'FallbackMethod' => $options['fallbackMethod'],
- 'StatusCallback' => $options['statusCallback'],
- 'StickySender' => Serialize::booleanToString($options['stickySender']),
- 'MmsConverter' => Serialize::booleanToString($options['mmsConverter']),
- 'SmartEncoding' => Serialize::booleanToString($options['smartEncoding']),
- 'ScanMessageContent' => $options['scanMessageContent'],
- 'FallbackToLongCode' => Serialize::booleanToString($options['fallbackToLongCode']),
- 'AreaCodeGeomatch' => Serialize::booleanToString($options['areaCodeGeomatch']),
- 'ValidityPeriod' => $options['validityPeriod'],
- 'SynchronousValidation' => Serialize::booleanToString($options['synchronousValidation']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Messaging\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceOptions.php
deleted file mode 100644
index 0a27f47..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/ServiceOptions.php
+++ /dev/null
@@ -1,502 +0,0 @@
-options['inboundRequestUrl'] = $inboundRequestUrl;
- $this->options['inboundMethod'] = $inboundMethod;
- $this->options['fallbackUrl'] = $fallbackUrl;
- $this->options['fallbackMethod'] = $fallbackMethod;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['stickySender'] = $stickySender;
- $this->options['mmsConverter'] = $mmsConverter;
- $this->options['smartEncoding'] = $smartEncoding;
- $this->options['scanMessageContent'] = $scanMessageContent;
- $this->options['fallbackToLongCode'] = $fallbackToLongCode;
- $this->options['areaCodeGeomatch'] = $areaCodeGeomatch;
- $this->options['validityPeriod'] = $validityPeriod;
- $this->options['synchronousValidation'] = $synchronousValidation;
- }
-
- /**
- * A [webhook request](https://www.twilio.com/docs/api/twiml/sms/twilio_request) is made to the Inbound Request URL when a message is received by any phone number or shortcode associated to your Messaging Service. Set to `null` to disable inbound messaging.
- *
- * @param string $inboundRequestUrl A webhook request is made to the Inbound
- * Request URL when a message is received by
- * any phone number or shortcode associated to
- * your Messaging Service.
- * @return $this Fluent Builder
- */
- public function setInboundRequestUrl($inboundRequestUrl) {
- $this->options['inboundRequestUrl'] = $inboundRequestUrl;
- return $this;
- }
-
- /**
- * The HTTP method used when making requests to the Inbound Request URL. Either `GET` or `POST`. Default value is `POST`.
- *
- * @param string $inboundMethod The HTTP method used when making requests to
- * the Inbound Request URL.
- * @return $this Fluent Builder
- */
- public function setInboundMethod($inboundMethod) {
- $this->options['inboundMethod'] = $inboundMethod;
- return $this;
- }
-
- /**
- * A request is made to the Fallback URL if an error occurs with retrieving or executing the TwiML from you Inbound Request URL.
- *
- * @param string $fallbackUrl A request is made to the Fallback URL if an error
- * occurs with retrieving or executing the TwiML
- * from you Inbound Request URL.
- * @return $this Fluent Builder
- */
- public function setFallbackUrl($fallbackUrl) {
- $this->options['fallbackUrl'] = $fallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method used when requesting the Fallback URL. Either `GET` or `POST`. Default value is `POST`.
- *
- * @param string $fallbackMethod The HTTP method used when requesting the
- * Fallback URL.
- * @return $this Fluent Builder
- */
- public function setFallbackMethod($fallbackMethod) {
- $this->options['fallbackMethod'] = $fallbackMethod;
- return $this;
- }
-
- /**
- * A webhook request is made to the Status Callback to pass [status updates](https://www.twilio.com/docs/api/rest/message#sms-status-values) about your messages. These status updates let you know if your accepted message were successfully sent and delivered or if a [delivery related error](https://www.twilio.com/docs/api/rest/message#error-values) may have occurred.
- *
- * @param string $statusCallback A webhook request is made to the Status
- * Callback to pass status updates about your
- * messages.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * Configuration to enable or disable Sticky Sender on your Service Instance. Possible values are `true` and `false`. Default value is `true`.
- *
- * @param boolean $stickySender Configuration to enable or disable Sticky
- * Sender on your Service Instance.
- * @return $this Fluent Builder
- */
- public function setStickySender($stickySender) {
- $this->options['stickySender'] = $stickySender;
- return $this;
- }
-
- /**
- * Configuration to enable or disable MMS Converter on your Service Instance. Possible values are `true` and `false`. Default value is `true`.
- *
- * @param boolean $mmsConverter Configuration to enable or disable MMS
- * Converter on your Service Instance.
- * @return $this Fluent Builder
- */
- public function setMmsConverter($mmsConverter) {
- $this->options['mmsConverter'] = $mmsConverter;
- return $this;
- }
-
- /**
- * Configuration to enable or disable [Smart Encoding](https://www.twilio.com/docs/api/messaging/services-and-copilot#smart-encoding). Possible values are `true` and `false`. Default value is `true`.
- *
- * @param boolean $smartEncoding Configuration to enable or disable Smart
- * Encoding.
- * @return $this Fluent Builder
- */
- public function setSmartEncoding($smartEncoding) {
- $this->options['smartEncoding'] = $smartEncoding;
- return $this;
- }
-
- /**
- * The scan_message_content
- *
- * @param string $scanMessageContent The scan_message_content
- * @return $this Fluent Builder
- */
- public function setScanMessageContent($scanMessageContent) {
- $this->options['scanMessageContent'] = $scanMessageContent;
- return $this;
- }
-
- /**
- * Configuration to enable or disable [Fallback to Long Code](https://www.twilio.com/docs/api/messaging/services-and-copilot#fallback-to-long-code). Possible values are `true` and `false`. Default value is `false`.
- *
- * @param boolean $fallbackToLongCode Configuration to enable or disable
- * Fallback to Long Code.
- * @return $this Fluent Builder
- */
- public function setFallbackToLongCode($fallbackToLongCode) {
- $this->options['fallbackToLongCode'] = $fallbackToLongCode;
- return $this;
- }
-
- /**
- * Configuration to enable or disable [Area Code Geomatch](https://www.twilio.com/docs/api/messaging/services-and-copilot#area-code-geomatch). Possible values are `true` and `false`. Default value is `false`.
- *
- * @param boolean $areaCodeGeomatch Configuration to enable or disable Area
- * Code Geomatch.
- * @return $this Fluent Builder
- */
- public function setAreaCodeGeomatch($areaCodeGeomatch) {
- $this->options['areaCodeGeomatch'] = $areaCodeGeomatch;
- return $this;
- }
-
- /**
- * Configuration to set the [validity period](https://www.twilio.com/docs/api/messaging/services-and-copilot#validity-period) of all messages sent from your Service, in seconds. Acceptable integers range from `1` to `14,400`. Default value is `14,400`.
- *
- * @param integer $validityPeriod Configuration to set the validity period of
- * all messages sent from your Service, in
- * seconds.
- * @return $this Fluent Builder
- */
- public function setValidityPeriod($validityPeriod) {
- $this->options['validityPeriod'] = $validityPeriod;
- return $this;
- }
-
- /**
- * The synchronous_validation
- *
- * @param boolean $synchronousValidation The synchronous_validation
- * @return $this Fluent Builder
- */
- public function setSynchronousValidation($synchronousValidation) {
- $this->options['synchronousValidation'] = $synchronousValidation;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Messaging.V1.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $friendlyName The friendly_name
- * @param string $inboundRequestUrl The inbound_request_url
- * @param string $inboundMethod The inbound_method
- * @param string $fallbackUrl The fallback_url
- * @param string $fallbackMethod The fallback_method
- * @param string $statusCallback The status_callback
- * @param boolean $stickySender The sticky_sender
- * @param boolean $mmsConverter The mms_converter
- * @param boolean $smartEncoding The smart_encoding
- * @param string $scanMessageContent The scan_message_content
- * @param boolean $fallbackToLongCode The fallback_to_long_code
- * @param boolean $areaCodeGeomatch The area_code_geomatch
- * @param integer $validityPeriod The validity_period
- * @param boolean $synchronousValidation The synchronous_validation
- */
- public function __construct($friendlyName = Values::NONE, $inboundRequestUrl = Values::NONE, $inboundMethod = Values::NONE, $fallbackUrl = Values::NONE, $fallbackMethod = Values::NONE, $statusCallback = Values::NONE, $stickySender = Values::NONE, $mmsConverter = Values::NONE, $smartEncoding = Values::NONE, $scanMessageContent = Values::NONE, $fallbackToLongCode = Values::NONE, $areaCodeGeomatch = Values::NONE, $validityPeriod = Values::NONE, $synchronousValidation = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['inboundRequestUrl'] = $inboundRequestUrl;
- $this->options['inboundMethod'] = $inboundMethod;
- $this->options['fallbackUrl'] = $fallbackUrl;
- $this->options['fallbackMethod'] = $fallbackMethod;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['stickySender'] = $stickySender;
- $this->options['mmsConverter'] = $mmsConverter;
- $this->options['smartEncoding'] = $smartEncoding;
- $this->options['scanMessageContent'] = $scanMessageContent;
- $this->options['fallbackToLongCode'] = $fallbackToLongCode;
- $this->options['areaCodeGeomatch'] = $areaCodeGeomatch;
- $this->options['validityPeriod'] = $validityPeriod;
- $this->options['synchronousValidation'] = $synchronousValidation;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The inbound_request_url
- *
- * @param string $inboundRequestUrl The inbound_request_url
- * @return $this Fluent Builder
- */
- public function setInboundRequestUrl($inboundRequestUrl) {
- $this->options['inboundRequestUrl'] = $inboundRequestUrl;
- return $this;
- }
-
- /**
- * The inbound_method
- *
- * @param string $inboundMethod The inbound_method
- * @return $this Fluent Builder
- */
- public function setInboundMethod($inboundMethod) {
- $this->options['inboundMethod'] = $inboundMethod;
- return $this;
- }
-
- /**
- * The fallback_url
- *
- * @param string $fallbackUrl The fallback_url
- * @return $this Fluent Builder
- */
- public function setFallbackUrl($fallbackUrl) {
- $this->options['fallbackUrl'] = $fallbackUrl;
- return $this;
- }
-
- /**
- * The fallback_method
- *
- * @param string $fallbackMethod The fallback_method
- * @return $this Fluent Builder
- */
- public function setFallbackMethod($fallbackMethod) {
- $this->options['fallbackMethod'] = $fallbackMethod;
- return $this;
- }
-
- /**
- * The status_callback
- *
- * @param string $statusCallback The status_callback
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The sticky_sender
- *
- * @param boolean $stickySender The sticky_sender
- * @return $this Fluent Builder
- */
- public function setStickySender($stickySender) {
- $this->options['stickySender'] = $stickySender;
- return $this;
- }
-
- /**
- * The mms_converter
- *
- * @param boolean $mmsConverter The mms_converter
- * @return $this Fluent Builder
- */
- public function setMmsConverter($mmsConverter) {
- $this->options['mmsConverter'] = $mmsConverter;
- return $this;
- }
-
- /**
- * The smart_encoding
- *
- * @param boolean $smartEncoding The smart_encoding
- * @return $this Fluent Builder
- */
- public function setSmartEncoding($smartEncoding) {
- $this->options['smartEncoding'] = $smartEncoding;
- return $this;
- }
-
- /**
- * The scan_message_content
- *
- * @param string $scanMessageContent The scan_message_content
- * @return $this Fluent Builder
- */
- public function setScanMessageContent($scanMessageContent) {
- $this->options['scanMessageContent'] = $scanMessageContent;
- return $this;
- }
-
- /**
- * The fallback_to_long_code
- *
- * @param boolean $fallbackToLongCode The fallback_to_long_code
- * @return $this Fluent Builder
- */
- public function setFallbackToLongCode($fallbackToLongCode) {
- $this->options['fallbackToLongCode'] = $fallbackToLongCode;
- return $this;
- }
-
- /**
- * The area_code_geomatch
- *
- * @param boolean $areaCodeGeomatch The area_code_geomatch
- * @return $this Fluent Builder
- */
- public function setAreaCodeGeomatch($areaCodeGeomatch) {
- $this->options['areaCodeGeomatch'] = $areaCodeGeomatch;
- return $this;
- }
-
- /**
- * The validity_period
- *
- * @param integer $validityPeriod The validity_period
- * @return $this Fluent Builder
- */
- public function setValidityPeriod($validityPeriod) {
- $this->options['validityPeriod'] = $validityPeriod;
- return $this;
- }
-
- /**
- * The synchronous_validation
- *
- * @param boolean $synchronousValidation The synchronous_validation
- * @return $this Fluent Builder
- */
- public function setSynchronousValidation($synchronousValidation) {
- $this->options['synchronousValidation'] = $synchronousValidation;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Messaging.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Messaging/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Messaging/V1/ServicePage.php
deleted file mode 100644
index 22abe97..0000000
--- a/public/twilio-php/Twilio/Rest/Messaging/V1/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Messaging.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor.php b/public/twilio-php/Twilio/Rest/Monitor.php
deleted file mode 100644
index ac65811..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor.php
+++ /dev/null
@@ -1,120 +0,0 @@
-baseUrl = 'https://monitor.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Monitor\V1 Version v1 of monitor
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Monitor\V1\AlertList
- */
- protected function getAlerts() {
- return $this->v1->alerts;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Monitor\V1\AlertContext
- */
- protected function contextAlerts($sid) {
- return $this->v1->alerts($sid);
- }
-
- /**
- * @return \Twilio\Rest\Monitor\V1\EventList
- */
- protected function getEvents() {
- return $this->v1->events;
- }
-
- /**
- * @param string $sid A 34 character string that uniquely identifies this event.
- * @return \Twilio\Rest\Monitor\V1\EventContext
- */
- protected function contextEvents($sid) {
- return $this->v1->events($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Monitor]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1.php b/public/twilio-php/Twilio/Rest/Monitor/V1.php
deleted file mode 100644
index ff02a98..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Monitor\V1\AlertList
- */
- protected function getAlerts() {
- if (!$this->_alerts) {
- $this->_alerts = new AlertList($this);
- }
- return $this->_alerts;
- }
-
- /**
- * @return \Twilio\Rest\Monitor\V1\EventList
- */
- protected function getEvents() {
- if (!$this->_events) {
- $this->_events = new EventList($this);
- }
- return $this->_events;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Monitor.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertContext.php b/public/twilio-php/Twilio/Rest/Monitor/V1/AlertContext.php
deleted file mode 100644
index bb84a74..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertContext.php
+++ /dev/null
@@ -1,73 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Alerts/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AlertInstance
- *
- * @return AlertInstance Fetched AlertInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AlertInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the AlertInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Monitor.V1.AlertContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertInstance.php b/public/twilio-php/Twilio/Rest/Monitor/V1/AlertInstance.php
deleted file mode 100644
index cbe506b..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertInstance.php
+++ /dev/null
@@ -1,139 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'alertText' => Values::array_get($payload, 'alert_text'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateGenerated' => Deserialize::dateTime(Values::array_get($payload, 'date_generated')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- 'logLevel' => Values::array_get($payload, 'log_level'),
- 'moreInfo' => Values::array_get($payload, 'more_info'),
- 'requestMethod' => Values::array_get($payload, 'request_method'),
- 'requestUrl' => Values::array_get($payload, 'request_url'),
- 'resourceSid' => Values::array_get($payload, 'resource_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'requestVariables' => Values::array_get($payload, 'request_variables'),
- 'responseBody' => Values::array_get($payload, 'response_body'),
- 'responseHeaders' => Values::array_get($payload, 'response_headers'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Monitor\V1\AlertContext Context for this AlertInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AlertContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AlertInstance
- *
- * @return AlertInstance Fetched AlertInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the AlertInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Monitor.V1.AlertInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertList.php b/public/twilio-php/Twilio/Rest/Monitor/V1/AlertList.php
deleted file mode 100644
index 795c475..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertList.php
+++ /dev/null
@@ -1,145 +0,0 @@
-solution = array();
-
- $this->uri = '/Alerts';
- }
-
- /**
- * Streams AlertInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AlertInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AlertInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AlertInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AlertInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'LogLevel' => $options['logLevel'],
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AlertPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AlertInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AlertInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AlertPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AlertContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Monitor\V1\AlertContext
- */
- public function getContext($sid) {
- return new AlertContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Monitor.V1.AlertList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertOptions.php b/public/twilio-php/Twilio/Rest/Monitor/V1/AlertOptions.php
deleted file mode 100644
index 0aba463..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertOptions.php
+++ /dev/null
@@ -1,86 +0,0 @@
-options['logLevel'] = $logLevel;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- }
-
- /**
- * Only show alerts for this log-level. One of 'error', 'warning', 'notice', or 'debug'.
- *
- * @param string $logLevel Only show alerts for this log-level.
- * @return $this Fluent Builder
- */
- public function setLogLevel($logLevel) {
- $this->options['logLevel'] = $logLevel;
- return $this;
- }
-
- /**
- * Only show Alerts on or after this date. Useful in combination with `EndDate` to define a date-range of Alerts. Input is a [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is ignored by the filter. Queries for Alerts older than 30 days are not supported.
- *
- * @param \DateTime $startDate Only show Alerts on or after this date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only show Alerts on or before this date. Useful in combination with `StartDate` to define a date-range of Alerts. Input is a [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is ignored by the filter. Queries for Alerts older than 30 days are not supported.
- *
- * @param \DateTime $endDate Only show Alerts on or before this date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Monitor.V1.ReadAlertOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertPage.php b/public/twilio-php/Twilio/Rest/Monitor/V1/AlertPage.php
deleted file mode 100644
index 423b5ea..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/AlertPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AlertInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Monitor.V1.AlertPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/EventContext.php b/public/twilio-php/Twilio/Rest/Monitor/V1/EventContext.php
deleted file mode 100644
index 036c290..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/EventContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Events/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a EventInstance
- *
- * @return EventInstance Fetched EventInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EventInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Monitor.V1.EventContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/EventInstance.php b/public/twilio-php/Twilio/Rest/Monitor/V1/EventInstance.php
deleted file mode 100644
index a2f4f03..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/EventInstance.php
+++ /dev/null
@@ -1,123 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'actorSid' => Values::array_get($payload, 'actor_sid'),
- 'actorType' => Values::array_get($payload, 'actor_type'),
- 'description' => Values::array_get($payload, 'description'),
- 'eventData' => Values::array_get($payload, 'event_data'),
- 'eventDate' => Deserialize::dateTime(Values::array_get($payload, 'event_date')),
- 'eventType' => Values::array_get($payload, 'event_type'),
- 'resourceSid' => Values::array_get($payload, 'resource_sid'),
- 'resourceType' => Values::array_get($payload, 'resource_type'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'source' => Values::array_get($payload, 'source'),
- 'sourceIpAddress' => Values::array_get($payload, 'source_ip_address'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Monitor\V1\EventContext Context for this EventInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new EventContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a EventInstance
- *
- * @return EventInstance Fetched EventInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Monitor.V1.EventInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/EventList.php b/public/twilio-php/Twilio/Rest/Monitor/V1/EventList.php
deleted file mode 100644
index 5af6865..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/EventList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array();
-
- $this->uri = '/Events';
- }
-
- /**
- * Streams EventInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads EventInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return EventInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of EventInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of EventInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'ActorSid' => $options['actorSid'],
- 'EventType' => $options['eventType'],
- 'ResourceSid' => $options['resourceSid'],
- 'SourceIpAddress' => $options['sourceIpAddress'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EventPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of EventInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of EventInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new EventPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a EventContext
- *
- * @param string $sid A 34 character string that uniquely identifies this event.
- * @return \Twilio\Rest\Monitor\V1\EventContext
- */
- public function getContext($sid) {
- return new EventContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Monitor.V1.EventList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/EventOptions.php b/public/twilio-php/Twilio/Rest/Monitor/V1/EventOptions.php
deleted file mode 100644
index e12f4ad..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/EventOptions.php
+++ /dev/null
@@ -1,131 +0,0 @@
-options['actorSid'] = $actorSid;
- $this->options['eventType'] = $eventType;
- $this->options['resourceSid'] = $resourceSid;
- $this->options['sourceIpAddress'] = $sourceIpAddress;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- }
-
- /**
- * Only include Events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
- *
- * @param string $actorSid Only include Events initiated by this Actor
- * @return $this Fluent Builder
- */
- public function setActorSid($actorSid) {
- $this->options['actorSid'] = $actorSid;
- return $this;
- }
-
- /**
- * Only include Events of this EventType.
- *
- * @param string $eventType Only include Events of this EventType
- * @return $this Fluent Builder
- */
- public function setEventType($eventType) {
- $this->options['eventType'] = $eventType;
- return $this;
- }
-
- /**
- * Only include Events referring to this resource. Useful for discovering the history of a specific resource.
- *
- * @param string $resourceSid Only include Events referring to this resource
- * @return $this Fluent Builder
- */
- public function setResourceSid($resourceSid) {
- $this->options['resourceSid'] = $resourceSid;
- return $this;
- }
-
- /**
- * Only include Events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
- *
- * @param string $sourceIpAddress Only include Events that originated from this
- * IP address
- * @return $this Fluent Builder
- */
- public function setSourceIpAddress($sourceIpAddress) {
- $this->options['sourceIpAddress'] = $sourceIpAddress;
- return $this;
- }
-
- /**
- * Only show events on or after this date. Useful in combination with `EndDate` to define a date-range of events. Input is a [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is ignored by the filter.
- *
- * @param \DateTime $startDate Only show events on or after this date
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only show events on or before this date. Useful in combination with `StartDate` to define a date-range of events. Input is a [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is ignored by the filter.
- *
- * @param \DateTime $endDate Only show events on or before this date
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Monitor.V1.ReadEventOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Monitor/V1/EventPage.php b/public/twilio-php/Twilio/Rest/Monitor/V1/EventPage.php
deleted file mode 100644
index f494596..0000000
--- a/public/twilio-php/Twilio/Rest/Monitor/V1/EventPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new EventInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Monitor.V1.EventPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify.php b/public/twilio-php/Twilio/Rest/Notify.php
deleted file mode 100644
index 8b8d02e..0000000
--- a/public/twilio-php/Twilio/Rest/Notify.php
+++ /dev/null
@@ -1,120 +0,0 @@
-baseUrl = 'https://notify.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Notify\V1 Version v1 of notify
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Notify\V1\CredentialList
- */
- protected function getCredentials() {
- return $this->v1->credentials;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Notify\V1\CredentialContext
- */
- protected function contextCredentials($sid) {
- return $this->v1->credentials($sid);
- }
-
- /**
- * @return \Twilio\Rest\Notify\V1\ServiceList
- */
- protected function getServices() {
- return $this->v1->services;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Notify\V1\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v1->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1.php b/public/twilio-php/Twilio/Rest/Notify/V1.php
deleted file mode 100644
index 46990c2..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Notify\V1\CredentialList
- */
- protected function getCredentials() {
- if (!$this->_credentials) {
- $this->_credentials = new CredentialList($this);
- }
- return $this->_credentials;
- }
-
- /**
- * @return \Twilio\Rest\Notify\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialContext.php b/public/twilio-php/Twilio/Rest/Notify/V1/CredentialContext.php
deleted file mode 100644
index 4358d0b..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialContext.php
+++ /dev/null
@@ -1,107 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Credentials/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Notify.V1.CredentialContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialInstance.php b/public/twilio-php/Twilio/Rest/Notify/V1/CredentialInstance.php
deleted file mode 100644
index 4f3177a..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialInstance.php
+++ /dev/null
@@ -1,136 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'type' => Values::array_get($payload, 'type'),
- 'sandbox' => Values::array_get($payload, 'sandbox'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Notify\V1\CredentialContext Context for this
- * CredentialInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialInstance
- *
- * @return CredentialInstance Fetched CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the CredentialInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Updated CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the CredentialInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Notify.V1.CredentialInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialList.php b/public/twilio-php/Twilio/Rest/Notify/V1/CredentialList.php
deleted file mode 100644
index a215748..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array();
-
- $this->uri = '/Credentials';
- }
-
- /**
- * Streams CredentialInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CredentialInstance
- *
- * @param string $type Credential type, one of "gcm", "fcm", or "apn"
- * @param array|Options $options Optional Arguments
- * @return CredentialInstance Newly created CredentialInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($type, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Type' => $type,
- 'FriendlyName' => $options['friendlyName'],
- 'Certificate' => $options['certificate'],
- 'PrivateKey' => $options['privateKey'],
- 'Sandbox' => Serialize::booleanToString($options['sandbox']),
- 'ApiKey' => $options['apiKey'],
- 'Secret' => $options['secret'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CredentialContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Notify\V1\CredentialContext
- */
- public function getContext($sid) {
- return new CredentialContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.CredentialList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialOptions.php b/public/twilio-php/Twilio/Rest/Notify/V1/CredentialOptions.php
deleted file mode 100644
index 34a8ea2..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialOptions.php
+++ /dev/null
@@ -1,274 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging. Yes, you can use the server key from the Firebase console for GCM.
- *
- * @param string $apiKey [GCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
- *
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.CreateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCredentialOptions extends Options {
- /**
- * @param string $friendlyName Friendly name for stored credential
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate.
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key.
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @param string $apiKey [GCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- */
- public function __construct($friendlyName = Values::NONE, $certificate = Values::NONE, $privateKey = Values::NONE, $sandbox = Values::NONE, $apiKey = Values::NONE, $secret = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['certificate'] = $certificate;
- $this->options['privateKey'] = $privateKey;
- $this->options['sandbox'] = $sandbox;
- $this->options['apiKey'] = $apiKey;
- $this->options['secret'] = $secret;
- }
-
- /**
- * Friendly name for stored credential
- *
- * @param string $friendlyName Friendly name for stored credential
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
- *
- * @param string $certificate [APN only] URL encoded representation of the
- * certificate.
- * @return $this Fluent Builder
- */
- public function setCertificate($certificate) {
- $this->options['certificate'] = $certificate;
- return $this;
- }
-
- /**
- * [APN only] URL encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
- *
- * @param string $privateKey [APN only] URL encoded representation of the
- * private key.
- * @return $this Fluent Builder
- */
- public function setPrivateKey($privateKey) {
- $this->options['privateKey'] = $privateKey;
- return $this;
- }
-
- /**
- * [APN only] use this credential for sending to production or sandbox APNs (string `true` or `false`)
- *
- * @param boolean $sandbox [APN only] use this credential for sending to
- * production or sandbox APNs
- * @return $this Fluent Builder
- */
- public function setSandbox($sandbox) {
- $this->options['sandbox'] = $sandbox;
- return $this;
- }
-
- /**
- * [GCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging. Yes, you can use the server key from the Firebase console for GCM.
- *
- * @param string $apiKey [GCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setApiKey($apiKey) {
- $this->options['apiKey'] = $apiKey;
- return $this;
- }
-
- /**
- * [FCM only] This is the "Server key" of your project from Firebase console under Settings / Cloud messaging.
- *
- * @param string $secret [FCM only] This is the "Server key" of your project
- * from Firebase console under Settings / Cloud messaging.
- * @return $this Fluent Builder
- */
- public function setSecret($secret) {
- $this->options['secret'] = $secret;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.UpdateCredentialOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialPage.php b/public/twilio-php/Twilio/Rest/Notify/V1/CredentialPage.php
deleted file mode 100644
index fc70c3b..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/CredentialPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.CredentialPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingContext.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingContext.php
deleted file mode 100644
index d74e639..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingContext.php
+++ /dev/null
@@ -1,82 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Bindings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a BindingInstance
- *
- * @return BindingInstance Fetched BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BindingInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the BindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Notify.V1.BindingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingInstance.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingInstance.php
deleted file mode 100644
index 0da8f33..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingInstance.php
+++ /dev/null
@@ -1,141 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'credentialSid' => Values::array_get($payload, 'credential_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'notificationProtocolVersion' => Values::array_get($payload, 'notification_protocol_version'),
- 'endpoint' => Values::array_get($payload, 'endpoint'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'bindingType' => Values::array_get($payload, 'binding_type'),
- 'address' => Values::array_get($payload, 'address'),
- 'tags' => Values::array_get($payload, 'tags'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Notify\V1\Service\BindingContext Context for this
- * BindingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new BindingContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a BindingInstance
- *
- * @return BindingInstance Fetched BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the BindingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Notify.V1.BindingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingList.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingList.php
deleted file mode 100644
index b551a57..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingList.php
+++ /dev/null
@@ -1,183 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Bindings';
- }
-
- /**
- * Create a new BindingInstance
- *
- * @param string $identity The Identity to which this Binding belongs to.
- * @param string $bindingType The type of the Binding.
- * @param string $address The address specific to the channel.
- * @param array|Options $options Optional Arguments
- * @return BindingInstance Newly created BindingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity, $bindingType, $address, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => $identity,
- 'BindingType' => $bindingType,
- 'Address' => $address,
- 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }),
- 'NotificationProtocolVersion' => $options['notificationProtocolVersion'],
- 'CredentialSid' => $options['credentialSid'],
- 'Endpoint' => $options['endpoint'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new BindingInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams BindingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads BindingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return BindingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of BindingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of BindingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'StartDate' => Serialize::iso8601Date($options['startDate']),
- 'EndDate' => Serialize::iso8601Date($options['endDate']),
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new BindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of BindingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of BindingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new BindingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a BindingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Notify\V1\Service\BindingContext
- */
- public function getContext($sid) {
- return new BindingContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.BindingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingOptions.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingOptions.php
deleted file mode 100644
index 942463f..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingOptions.php
+++ /dev/null
@@ -1,206 +0,0 @@
-options['tag'] = $tag;
- $this->options['notificationProtocolVersion'] = $notificationProtocolVersion;
- $this->options['credentialSid'] = $credentialSid;
- $this->options['endpoint'] = $endpoint;
- }
-
- /**
- * The list of tags associated with this Binding. Tags can be used to select the Bindings to use when sending a notification. Maximum 20 tags are allowed.
- *
- * @param string $tag The list of tags associated with this Binding.
- * @return $this Fluent Builder
- */
- public function setTag($tag) {
- $this->options['tag'] = $tag;
- return $this;
- }
-
- /**
- * The version of the protocol (data format) used to send the notification. This defaults to the value of DefaultXXXNotificationProtocolVersion in the [Service](https://www.twilio.com/docs/api/notify/rest/services). The current version is `"3"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed.
- *
- * @param string $notificationProtocolVersion The version of the protocol used
- * to send the notification.
- * @return $this Fluent Builder
- */
- public function setNotificationProtocolVersion($notificationProtocolVersion) {
- $this->options['notificationProtocolVersion'] = $notificationProtocolVersion;
- return $this;
- }
-
- /**
- * The unique identifier (SID) of the Credential resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applicable only to `apn`, `fcm`, and `gcm` type Bindings.
- *
- * @param string $credentialSid The unique identifier of the Credential
- * resource to be used to send notifications to
- * this Binding.
- * @return $this Fluent Builder
- */
- public function setCredentialSid($credentialSid) {
- $this->options['credentialSid'] = $credentialSid;
- return $this;
- }
-
- /**
- * DEPRECATED*
- *
- * @param string $endpoint DEPRECATED*
- * @return $this Fluent Builder
- */
- public function setEndpoint($endpoint) {
- $this->options['endpoint'] = $endpoint;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.CreateBindingOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadBindingOptions extends Options {
- /**
- * @param \DateTime $startDate Only list Bindings created on or after the given
- * date.
- * @param \DateTime $endDate Only list Bindings created on or before the given
- * date.
- * @param string $identity Only list Bindings that have any of the specified
- * Identities.
- * @param string $tag Only list Bindings that have all of the specified Tags.
- */
- public function __construct($startDate = Values::NONE, $endDate = Values::NONE, $identity = Values::NONE, $tag = Values::NONE) {
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['identity'] = $identity;
- $this->options['tag'] = $tag;
- }
-
- /**
- * Only list Bindings created on or after the given date. Should be formatted as YYYY-MM-DD. All dates considered in UTC.
- *
- * @param \DateTime $startDate Only list Bindings created on or after the given
- * date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Only list Bindings created on or before the given date. Should be formatted as YYYY-MM-DD. All dates considered in UTC.
- *
- * @param \DateTime $endDate Only list Bindings created on or before the given
- * date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Only list Bindings that have any of the specified Identities.
- *
- * @param string $identity Only list Bindings that have any of the specified
- * Identities.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Only list Bindings that have all of the specified Tags. The following implicit tags are available: all, apn, fcm, gcm, sms, facebook-messenger. Maximum 5 tags are allowed.
- *
- * @param string $tag Only list Bindings that have all of the specified Tags.
- * @return $this Fluent Builder
- */
- public function setTag($tag) {
- $this->options['tag'] = $tag;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.ReadBindingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingPage.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingPage.php
deleted file mode 100644
index 163330a..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/BindingPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new BindingInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.BindingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationInstance.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationInstance.php
deleted file mode 100644
index ab1fe07..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationInstance.php
+++ /dev/null
@@ -1,109 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'identities' => Values::array_get($payload, 'identities'),
- 'tags' => Values::array_get($payload, 'tags'),
- 'segments' => Values::array_get($payload, 'segments'),
- 'priority' => Values::array_get($payload, 'priority'),
- 'ttl' => Values::array_get($payload, 'ttl'),
- 'title' => Values::array_get($payload, 'title'),
- 'body' => Values::array_get($payload, 'body'),
- 'sound' => Values::array_get($payload, 'sound'),
- 'action' => Values::array_get($payload, 'action'),
- 'data' => Values::array_get($payload, 'data'),
- 'apn' => Values::array_get($payload, 'apn'),
- 'gcm' => Values::array_get($payload, 'gcm'),
- 'fcm' => Values::array_get($payload, 'fcm'),
- 'sms' => Values::array_get($payload, 'sms'),
- 'facebookMessenger' => Values::array_get($payload, 'facebook_messenger'),
- 'alexa' => Values::array_get($payload, 'alexa'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.NotificationInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationList.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationList.php
deleted file mode 100644
index 7a48911..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationList.php
+++ /dev/null
@@ -1,86 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Notifications';
- }
-
- /**
- * Create a new NotificationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return NotificationInstance Newly created NotificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }),
- 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }),
- 'Body' => $options['body'],
- 'Priority' => $options['priority'],
- 'Ttl' => $options['ttl'],
- 'Title' => $options['title'],
- 'Sound' => $options['sound'],
- 'Action' => $options['action'],
- 'Data' => Serialize::jsonObject($options['data']),
- 'Apn' => Serialize::jsonObject($options['apn']),
- 'Gcm' => Serialize::jsonObject($options['gcm']),
- 'Sms' => Serialize::jsonObject($options['sms']),
- 'FacebookMessenger' => Serialize::jsonObject($options['facebookMessenger']),
- 'Fcm' => Serialize::jsonObject($options['fcm']),
- 'Segment' => Serialize::map($options['segment'], function($e) { return $e; }),
- 'Alexa' => Serialize::jsonObject($options['alexa']),
- 'ToBinding' => Serialize::map($options['toBinding'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new NotificationInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.NotificationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationOptions.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationOptions.php
deleted file mode 100644
index efe9160..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationOptions.php
+++ /dev/null
@@ -1,333 +0,0 @@
-options['identity'] = $identity;
- $this->options['tag'] = $tag;
- $this->options['body'] = $body;
- $this->options['priority'] = $priority;
- $this->options['ttl'] = $ttl;
- $this->options['title'] = $title;
- $this->options['sound'] = $sound;
- $this->options['action'] = $action;
- $this->options['data'] = $data;
- $this->options['apn'] = $apn;
- $this->options['gcm'] = $gcm;
- $this->options['sms'] = $sms;
- $this->options['facebookMessenger'] = $facebookMessenger;
- $this->options['fcm'] = $fcm;
- $this->options['segment'] = $segment;
- $this->options['alexa'] = $alexa;
- $this->options['toBinding'] = $toBinding;
- }
-
- /**
- * Delivery will be attempted only to Bindings with an Identity in this list. Maximum 20 items allowed in this list.
- *
- * @param string $identity Delivery will be attempted only to Bindings with an
- * Identity in this list.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Delivery will be attempted only to Bindings that have all of the Tags in this list. Maximum 5 items allowed in this list. The implicit tag "all" is available to notify all Bindings in a Service instance. Similarly the implicit tags "apn", "fcm", "gcm", "sms" and "facebook-messenger" are available to notify all Bindings of the given type.
- *
- * @param string $tag Delivery will be attempted only to Bindings that have all
- * of the Tags in this list.
- * @return $this Fluent Builder
- */
- public function setTag($tag) {
- $this->options['tag'] = $tag;
- return $this;
- }
-
- /**
- * (optional for all except Alexa) Indicates the notification body text. Translates to `data.twi_body` for FCM and GCM, `aps.alert.body` for APNS, `Body` for SMS and Facebook Messenger and `request.message.data` for Alexa. For SMS either this, `body`, or the `media_url` attribute of the `Sms` parameter is required. For Facebook Messenger either this parameter or the body attribute in the `FacebookMessenger` parameter is required.
- *
- * @param string $body Indicates the notification body text.
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * Two priorities defined: `low` and `high` (default). `low` optimizes the client app's battery consumption, and notifications may be delivered with unspecified delay. This is the same as Normal priority for FCM and GCM or priority 5 for APNS. `high` sends the notification immediately, and can wake up a sleeping device. This is the same as High priority for FCM and GCM or priority 10 for APNS. This feature is not supported by SMS and Facebook Messenger and will be ignored for deliveries via those channels.
- *
- * @param string $priority Two priorities defined: low and high.
- * @return $this Fluent Builder
- */
- public function setPriority($priority) {
- $this->options['priority'] = $priority;
- return $this;
- }
-
- /**
- * This parameter specifies how long (in seconds) the notification is valid. Delivery should be attempted if the device is offline. The maximum time to live supported is 4 weeks. The value zero means that the notification delivery is attempted immediately once but not stored for future delivery. The default value is 4 weeks. This feature is not supported by SMS and Facebook Messenger and will be ignored for deliveries via those channels.
- *
- * @param integer $ttl This parameter specifies how long the notification is
- * valid.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * (optional for all except Alexa) Indicates the notification title. This field is not visible on iOS phones and tablets but it is on Apple Watch and Android devices. Translates to `data.twi_title` for FCM and GCM, `aps.alert.title` for APNS and `displayInfo.content[0].title`, `displayInfo.content[].toast.primaryText` of `request.message` for Alexa. It is not supported for SMS and Facebook Messenger and will be omitted from deliveries via those channels.
- *
- * @param string $title Indicates the notification title.
- * @return $this Fluent Builder
- */
- public function setTitle($title) {
- $this->options['title'] = $title;
- return $this;
- }
-
- /**
- * Indicates a sound to be played. Translates to `data.twi_sound` for FCM and GCM and `aps.sound` for APNS. This parameter is not supported by SMS and Facebook Messenger and is omitted from deliveries via those channels.
- *
- * @param string $sound Indicates a sound to be played.
- * @return $this Fluent Builder
- */
- public function setSound($sound) {
- $this->options['sound'] = $sound;
- return $this;
- }
-
- /**
- * Specifies the actions to be displayed for the notification. Translates to `data.twi_action` for GCM and `aps.category` for APNS. This parameter is not supported by SMS and Facebook Messenger and is omitted from deliveries via those channels.
- *
- * @param string $action Specifies the actions to be displayed for the
- * notification.
- * @return $this Fluent Builder
- */
- public function setAction($action) {
- $this->options['action'] = $action;
- return $this;
- }
-
- /**
- * This parameter specifies the custom key-value pairs of the notification's payload. Translates to `data` dictionary in FCM and GCM payload. FCM and GCM [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used for those channels. For APNS, attributes of `Data` will be inserted into the APNS payload as custom properties outside of the `aps` dictionary. For Alexa they are added to `request.message.data`. For all channels, the `twi_` prefix is reserved for Twilio for future use. Requests including custom data with keys starting with `twi_` will be rejected as 400 Bad request and no delivery will be attempted. This parameter is not supported by SMS and Facebook Messenger and is omitted from deliveries via those channels.
- *
- * @param array $data This parameter specifies the custom key-value pairs of
- * the notification's payload.
- * @return $this Fluent Builder
- */
- public function setData($data) {
- $this->options['data'] = $data;
- return $this;
- }
-
- /**
- * APNS specific payload that overrides corresponding attributes in a generic payload for Bindings with the apn BindingType. This value is mapped to the Payload item, therefore the `aps` key has to be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. Refer to [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. The `twi_` key prefix for custom key-value pairs is reserved for Twilio for future use. Custom data with keys starting with `twi_` is not allowed.
- *
- * @param array $apn APNS specific payload that overrides corresponding
- * attributes in a generic payload for Bindings with the apn
- * BindingType.
- * @return $this Fluent Builder
- */
- public function setApn($apn) {
- $this->options['apn'] = $apn;
- return $this;
- }
-
- /**
- * GCM specific payload that overrides corresponding attributes in generic payload for Bindings with gcm BindingType. This value is mapped to the root json dictionary. Refer to [GCM documentation](https://developers.google.com/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. The `twi_` key prefix for custom key-value pairs is reserved for Twilio for future use. Custom data with keys starting with `twi_` is not allowed. FCM and GCM [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used for those channels.
- *
- * @param array $gcm GCM specific payload that overrides corresponding
- * attributes in generic payload for Bindings with gcm
- * BindingType.
- * @return $this Fluent Builder
- */
- public function setGcm($gcm) {
- $this->options['gcm'] = $gcm;
- return $this;
- }
-
- /**
- * SMS specific payload that overrides corresponding attributes in generic payload for Bindings with sms BindingType. Each attribute in this JSON object is mapped to the corresponding form parameter of the Twilio [Message](https://www.twilio.com/docs/api/rest/sending-messages) resource. The following parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service if configured. The `media_urls` expects a JSON array.
- *
- * @param array $sms SMS specific payload that overrides corresponding
- * attributes in generic payload for Bindings with sms
- * BindingType.
- * @return $this Fluent Builder
- */
- public function setSms($sms) {
- $this->options['sms'] = $sms;
- return $this;
- }
-
- /**
- * Messenger specific payload that overrides corresponding attributes in generic payload for Bindings with facebook-messenger BindingType. This value is mapped to the root json dictionary of Facebook's [Send API request](https://developers.facebook.com/docs/messenger-platform/send-api-reference). Overriding the `recipient` parameter is not allowed.
- *
- * @param array $facebookMessenger Messenger specific payload that overrides
- * corresponding attributes in generic payload
- * for Bindings with facebook-messenger
- * BindingType.
- * @return $this Fluent Builder
- */
- public function setFacebookMessenger($facebookMessenger) {
- $this->options['facebookMessenger'] = $facebookMessenger;
- return $this;
- }
-
- /**
- * FCM specific payload that overrides corresponding attributes in generic payload for Bindings with fcm BindingType. This value is mapped to the root json dictionary. Refer to [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed. The `twi_` key prefix for custom key-value pairs is reserved for Twilio for future use. Custom data with keys starting with `twi_` is not allowed. Custom data with keys starting with `twi_` is not allowed. FCM and GCM [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used for those channels.
- *
- * @param array $fcm FCM specific payload that overrides corresponding
- * attributes in generic payload for Bindings with fcm
- * BindingType.
- * @return $this Fluent Builder
- */
- public function setFcm($fcm) {
- $this->options['fcm'] = $fcm;
- return $this;
- }
-
- /**
- * The segment
- *
- * @param string $segment The segment
- * @return $this Fluent Builder
- */
- public function setSegment($segment) {
- $this->options['segment'] = $segment;
- return $this;
- }
-
- /**
- * The alexa
- *
- * @param array $alexa The alexa
- * @return $this Fluent Builder
- */
- public function setAlexa($alexa) {
- $this->options['alexa'] = $alexa;
- return $this;
- }
-
- /**
- * The destination address in a JSON object (see attributes below). Multiple ToBinding parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers.
- *
- * @param string $toBinding The destination address in a JSON object.
- * @return $this Fluent Builder
- */
- public function setToBinding($toBinding) {
- $this->options['toBinding'] = $toBinding;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.CreateNotificationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationPage.php b/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationPage.php
deleted file mode 100644
index b6fb52a..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/Service/NotificationPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NotificationInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.NotificationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Notify/V1/ServiceContext.php
deleted file mode 100644
index 1013d88..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceContext.php
+++ /dev/null
@@ -1,182 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'ApnCredentialSid' => $options['apnCredentialSid'],
- 'GcmCredentialSid' => $options['gcmCredentialSid'],
- 'MessagingServiceSid' => $options['messagingServiceSid'],
- 'FacebookMessengerPageId' => $options['facebookMessengerPageId'],
- 'DefaultApnNotificationProtocolVersion' => $options['defaultApnNotificationProtocolVersion'],
- 'DefaultGcmNotificationProtocolVersion' => $options['defaultGcmNotificationProtocolVersion'],
- 'FcmCredentialSid' => $options['fcmCredentialSid'],
- 'DefaultFcmNotificationProtocolVersion' => $options['defaultFcmNotificationProtocolVersion'],
- 'LogEnabled' => Serialize::booleanToString($options['logEnabled']),
- 'AlexaSkillId' => $options['alexaSkillId'],
- 'DefaultAlexaNotificationProtocolVersion' => $options['defaultAlexaNotificationProtocolVersion'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the bindings
- *
- * @return \Twilio\Rest\Notify\V1\Service\BindingList
- */
- protected function getBindings() {
- if (!$this->_bindings) {
- $this->_bindings = new BindingList($this->version, $this->solution['sid']);
- }
-
- return $this->_bindings;
- }
-
- /**
- * Access the notifications
- *
- * @return \Twilio\Rest\Notify\V1\Service\NotificationList
- */
- protected function getNotifications() {
- if (!$this->_notifications) {
- $this->_notifications = new NotificationList($this->version, $this->solution['sid']);
- }
-
- return $this->_notifications;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Notify.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Notify/V1/ServiceInstance.php
deleted file mode 100644
index 89641af..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceInstance.php
+++ /dev/null
@@ -1,177 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'apnCredentialSid' => Values::array_get($payload, 'apn_credential_sid'),
- 'gcmCredentialSid' => Values::array_get($payload, 'gcm_credential_sid'),
- 'fcmCredentialSid' => Values::array_get($payload, 'fcm_credential_sid'),
- 'messagingServiceSid' => Values::array_get($payload, 'messaging_service_sid'),
- 'facebookMessengerPageId' => Values::array_get($payload, 'facebook_messenger_page_id'),
- 'defaultApnNotificationProtocolVersion' => Values::array_get($payload, 'default_apn_notification_protocol_version'),
- 'defaultGcmNotificationProtocolVersion' => Values::array_get($payload, 'default_gcm_notification_protocol_version'),
- 'defaultFcmNotificationProtocolVersion' => Values::array_get($payload, 'default_fcm_notification_protocol_version'),
- 'logEnabled' => Values::array_get($payload, 'log_enabled'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'alexaSkillId' => Values::array_get($payload, 'alexa_skill_id'),
- 'defaultAlexaNotificationProtocolVersion' => Values::array_get($payload, 'default_alexa_notification_protocol_version'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Notify\V1\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the bindings
- *
- * @return \Twilio\Rest\Notify\V1\Service\BindingList
- */
- protected function getBindings() {
- return $this->proxy()->bindings;
- }
-
- /**
- * Access the notifications
- *
- * @return \Twilio\Rest\Notify\V1\Service\NotificationList
- */
- protected function getNotifications() {
- return $this->proxy()->notifications;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Notify.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Notify/V1/ServiceList.php
deleted file mode 100644
index 8cab5cc..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'ApnCredentialSid' => $options['apnCredentialSid'],
- 'GcmCredentialSid' => $options['gcmCredentialSid'],
- 'MessagingServiceSid' => $options['messagingServiceSid'],
- 'FacebookMessengerPageId' => $options['facebookMessengerPageId'],
- 'DefaultApnNotificationProtocolVersion' => $options['defaultApnNotificationProtocolVersion'],
- 'DefaultGcmNotificationProtocolVersion' => $options['defaultGcmNotificationProtocolVersion'],
- 'FcmCredentialSid' => $options['fcmCredentialSid'],
- 'DefaultFcmNotificationProtocolVersion' => $options['defaultFcmNotificationProtocolVersion'],
- 'LogEnabled' => Serialize::booleanToString($options['logEnabled']),
- 'AlexaSkillId' => $options['alexaSkillId'],
- 'DefaultAlexaNotificationProtocolVersion' => $options['defaultAlexaNotificationProtocolVersion'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Notify\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Notify/V1/ServiceOptions.php
deleted file mode 100644
index 27b66a3..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/ServiceOptions.php
+++ /dev/null
@@ -1,545 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['apnCredentialSid'] = $apnCredentialSid;
- $this->options['gcmCredentialSid'] = $gcmCredentialSid;
- $this->options['messagingServiceSid'] = $messagingServiceSid;
- $this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
- $this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
- $this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
- $this->options['fcmCredentialSid'] = $fcmCredentialSid;
- $this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
- $this->options['logEnabled'] = $logEnabled;
- $this->options['alexaSkillId'] = $alexaSkillId;
- $this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The SID of the [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for APN Bindings.
- *
- * @param string $apnCredentialSid The SID of the Credential to be used for APN
- * Bindings.
- * @return $this Fluent Builder
- */
- public function setApnCredentialSid($apnCredentialSid) {
- $this->options['apnCredentialSid'] = $apnCredentialSid;
- return $this;
- }
-
- /**
- * The SID of the [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for GCM Bindings.
- *
- * @param string $gcmCredentialSid The SID of the Credential to be used for GCM
- * Bindings.
- * @return $this Fluent Builder
- */
- public function setGcmCredentialSid($gcmCredentialSid) {
- $this->options['gcmCredentialSid'] = $gcmCredentialSid;
- return $this;
- }
-
- /**
- * The SID of the [Messaging Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
- *
- * @param string $messagingServiceSid The SID of the Messaging Service to be
- * used for SMS Bindings.
- * @return $this Fluent Builder
- */
- public function setMessagingServiceSid($messagingServiceSid) {
- $this->options['messagingServiceSid'] = $messagingServiceSid;
- return $this;
- }
-
- /**
- * The Page ID to be used to send for Facebook Messenger Bindings. It has to match the Page ID you configured when you [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on your account.
- *
- * @param string $facebookMessengerPageId The Page ID to be used to send for
- * Facebook Messenger Bindings.
- * @return $this Fluent Builder
- */
- public function setFacebookMessengerPageId($facebookMessengerPageId) {
- $this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
- return $this;
- }
-
- /**
- * The version of the protocol to be used for sending APNS notifications. Can be overriden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
- *
- * @param string $defaultApnNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending APNS
- * notifications.
- * @return $this Fluent Builder
- */
- public function setDefaultApnNotificationProtocolVersion($defaultApnNotificationProtocolVersion) {
- $this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * The version of the protocol to be used for sending GCM notifications. Can be overriden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
- *
- * @param string $defaultGcmNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending GCM
- * notifications.
- * @return $this Fluent Builder
- */
- public function setDefaultGcmNotificationProtocolVersion($defaultGcmNotificationProtocolVersion) {
- $this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * The SID of the [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for FCM Bindings.
- *
- * @param string $fcmCredentialSid The SID of the Credential to be used for FCM
- * Bindings.
- * @return $this Fluent Builder
- */
- public function setFcmCredentialSid($fcmCredentialSid) {
- $this->options['fcmCredentialSid'] = $fcmCredentialSid;
- return $this;
- }
-
- /**
- * The version of the protocol to be used for sending FCM notifications. Can be overriden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
- *
- * @param string $defaultFcmNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending FCM
- * notifications.
- * @return $this Fluent Builder
- */
- public function setDefaultFcmNotificationProtocolVersion($defaultFcmNotificationProtocolVersion) {
- $this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * The log_enabled
- *
- * @param boolean $logEnabled The log_enabled
- * @return $this Fluent Builder
- */
- public function setLogEnabled($logEnabled) {
- $this->options['logEnabled'] = $logEnabled;
- return $this;
- }
-
- /**
- * The alexa_skill_id
- *
- * @param string $alexaSkillId The alexa_skill_id
- * @return $this Fluent Builder
- */
- public function setAlexaSkillId($alexaSkillId) {
- $this->options['alexaSkillId'] = $alexaSkillId;
- return $this;
- }
-
- /**
- * The default_alexa_notification_protocol_version
- *
- * @param string $defaultAlexaNotificationProtocolVersion The
- * default_alexa_notification_protocol_version
- * @return $this Fluent Builder
- */
- public function setDefaultAlexaNotificationProtocolVersion($defaultAlexaNotificationProtocolVersion) {
- $this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadServiceOptions extends Options {
- /**
- * @param string $friendlyName Filter services by FriendlyName
- */
- public function __construct($friendlyName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * Filter services by FriendlyName
- *
- * @param string $friendlyName Filter services by FriendlyName
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.ReadServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $friendlyName Human-readable name for this service instance
- * @param string $apnCredentialSid The SID of the default Credential to be used
- * for APN Bindings
- * @param string $gcmCredentialSid The SID of the default Credential to be used
- * for GCM Bindings
- * @param string $messagingServiceSid The SID of the Messaging Service to be
- * used for SMS Bindings.
- * @param string $facebookMessengerPageId The Page ID to be used to send for
- * Facebook Messenger Bindings.
- * @param string $defaultApnNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending APNS
- * notifications.
- * @param string $defaultGcmNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending GCM
- * notifications.
- * @param string $fcmCredentialSid The SID of the default Credential to be used
- * for FCM Bindings
- * @param string $defaultFcmNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending FCM
- * notifications.
- * @param boolean $logEnabled The log_enabled
- * @param string $alexaSkillId The alexa_skill_id
- * @param string $defaultAlexaNotificationProtocolVersion The
- * default_alexa_notification_protocol_version
- */
- public function __construct($friendlyName = Values::NONE, $apnCredentialSid = Values::NONE, $gcmCredentialSid = Values::NONE, $messagingServiceSid = Values::NONE, $facebookMessengerPageId = Values::NONE, $defaultApnNotificationProtocolVersion = Values::NONE, $defaultGcmNotificationProtocolVersion = Values::NONE, $fcmCredentialSid = Values::NONE, $defaultFcmNotificationProtocolVersion = Values::NONE, $logEnabled = Values::NONE, $alexaSkillId = Values::NONE, $defaultAlexaNotificationProtocolVersion = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['apnCredentialSid'] = $apnCredentialSid;
- $this->options['gcmCredentialSid'] = $gcmCredentialSid;
- $this->options['messagingServiceSid'] = $messagingServiceSid;
- $this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
- $this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
- $this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
- $this->options['fcmCredentialSid'] = $fcmCredentialSid;
- $this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
- $this->options['logEnabled'] = $logEnabled;
- $this->options['alexaSkillId'] = $alexaSkillId;
- $this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The SID of the default Credential to be used for APN Bindings
- *
- * @param string $apnCredentialSid The SID of the default Credential to be used
- * for APN Bindings
- * @return $this Fluent Builder
- */
- public function setApnCredentialSid($apnCredentialSid) {
- $this->options['apnCredentialSid'] = $apnCredentialSid;
- return $this;
- }
-
- /**
- * The SID of the default Credential to be used for GCM Bindings
- *
- * @param string $gcmCredentialSid The SID of the default Credential to be used
- * for GCM Bindings
- * @return $this Fluent Builder
- */
- public function setGcmCredentialSid($gcmCredentialSid) {
- $this->options['gcmCredentialSid'] = $gcmCredentialSid;
- return $this;
- }
-
- /**
- * The SID of the [Messaging Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
- *
- * @param string $messagingServiceSid The SID of the Messaging Service to be
- * used for SMS Bindings.
- * @return $this Fluent Builder
- */
- public function setMessagingServiceSid($messagingServiceSid) {
- $this->options['messagingServiceSid'] = $messagingServiceSid;
- return $this;
- }
-
- /**
- * The Page ID to be used to send for Facebook Messenger Bindings. It has to match the Page ID you configured when you [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on your account. Facebook Messenger integration is in beta. You need to be in the beta program to be able to enable Facebook Messaging for your account.
- *
- * @param string $facebookMessengerPageId The Page ID to be used to send for
- * Facebook Messenger Bindings.
- * @return $this Fluent Builder
- */
- public function setFacebookMessengerPageId($facebookMessengerPageId) {
- $this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
- return $this;
- }
-
- /**
- * The version of the protocol to be used for sending APNS notifications. Can be overriden on a Binding by Binding basis when creating a Binding resource.
- *
- * @param string $defaultApnNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending APNS
- * notifications.
- * @return $this Fluent Builder
- */
- public function setDefaultApnNotificationProtocolVersion($defaultApnNotificationProtocolVersion) {
- $this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * The version of the protocol to be used for sending GCM notifications. Can be overriden on a Binding by Binding basis when creating a Binding resource.
- *
- * @param string $defaultGcmNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending GCM
- * notifications.
- * @return $this Fluent Builder
- */
- public function setDefaultGcmNotificationProtocolVersion($defaultGcmNotificationProtocolVersion) {
- $this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * The SID of the default Credential to be used for FCM Bindings
- *
- * @param string $fcmCredentialSid The SID of the default Credential to be used
- * for FCM Bindings
- * @return $this Fluent Builder
- */
- public function setFcmCredentialSid($fcmCredentialSid) {
- $this->options['fcmCredentialSid'] = $fcmCredentialSid;
- return $this;
- }
-
- /**
- * The version of the protocol to be used for sending FCM notifications. Can be overriden on a Binding by Binding basis when creating a Binding resource.
- *
- * @param string $defaultFcmNotificationProtocolVersion The version of the
- * protocol to be used for
- * sending FCM
- * notifications.
- * @return $this Fluent Builder
- */
- public function setDefaultFcmNotificationProtocolVersion($defaultFcmNotificationProtocolVersion) {
- $this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * The log_enabled
- *
- * @param boolean $logEnabled The log_enabled
- * @return $this Fluent Builder
- */
- public function setLogEnabled($logEnabled) {
- $this->options['logEnabled'] = $logEnabled;
- return $this;
- }
-
- /**
- * The alexa_skill_id
- *
- * @param string $alexaSkillId The alexa_skill_id
- * @return $this Fluent Builder
- */
- public function setAlexaSkillId($alexaSkillId) {
- $this->options['alexaSkillId'] = $alexaSkillId;
- return $this;
- }
-
- /**
- * The default_alexa_notification_protocol_version
- *
- * @param string $defaultAlexaNotificationProtocolVersion The
- * default_alexa_notification_protocol_version
- * @return $this Fluent Builder
- */
- public function setDefaultAlexaNotificationProtocolVersion($defaultAlexaNotificationProtocolVersion) {
- $this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Notify.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Notify/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Notify/V1/ServicePage.php
deleted file mode 100644
index d32613c..0000000
--- a/public/twilio-php/Twilio/Rest/Notify/V1/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Notify.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview.php b/public/twilio-php/Twilio/Rest/Preview.php
deleted file mode 100644
index 54d34d6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview.php
+++ /dev/null
@@ -1,396 +0,0 @@
-baseUrl = 'https://preview.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Preview\Authy Version authy of preview
- */
- protected function getAuthy() {
- if (!$this->_authy) {
- $this->_authy = new PreviewAuthy($this);
- }
- return $this->_authy;
- }
-
- /**
- * @return \Twilio\Rest\Preview\BulkExports Version bulkExports of preview
- */
- protected function getBulkExports() {
- if (!$this->_bulkExports) {
- $this->_bulkExports = new PreviewBulkExports($this);
- }
- return $this->_bulkExports;
- }
-
- /**
- * @return \Twilio\Rest\Preview\DeployedDevices Version deployedDevices of
- * preview
- */
- protected function getDeployedDevices() {
- if (!$this->_deployedDevices) {
- $this->_deployedDevices = new PreviewDeployedDevices($this);
- }
- return $this->_deployedDevices;
- }
-
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers Version hostedNumbers of preview
- */
- protected function getHostedNumbers() {
- if (!$this->_hostedNumbers) {
- $this->_hostedNumbers = new PreviewHostedNumbers($this);
- }
- return $this->_hostedNumbers;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Marketplace Version marketplace of preview
- */
- protected function getMarketplace() {
- if (!$this->_marketplace) {
- $this->_marketplace = new PreviewMarketplace($this);
- }
- return $this->_marketplace;
- }
-
- /**
- * @return \Twilio\Rest\Preview\AccSecurity Version accSecurity of preview
- */
- protected function getAccSecurity() {
- if (!$this->_accSecurity) {
- $this->_accSecurity = new PreviewAccSecurity($this);
- }
- return $this->_accSecurity;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Sync Version sync of preview
- */
- protected function getSync() {
- if (!$this->_sync) {
- $this->_sync = new PreviewSync($this);
- }
- return $this->_sync;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Understand Version understand of preview
- */
- protected function getUnderstand() {
- if (!$this->_understand) {
- $this->_understand = new PreviewUnderstand($this);
- }
- return $this->_understand;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless Version wireless of preview
- */
- protected function getWireless() {
- if (!$this->_wireless) {
- $this->_wireless = new PreviewWireless($this);
- }
- return $this->_wireless;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Sync\ServiceList
- */
- protected function getServices() {
- return $this->sync->services;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Sync\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->sync->services($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\BulkExports\ExportList
- */
- protected function getExports() {
- return $this->bulkExports->exports;
- }
-
- /**
- * @param string $resourceType The resource_type
- * @return \Twilio\Rest\Preview\BulkExports\ExportContext
- */
- protected function contextExports($resourceType) {
- return $this->bulkExports->exports($resourceType);
- }
-
- /**
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationList
- */
- protected function getExportConfiguration() {
- return $this->bulkExports->exportConfiguration;
- }
-
- /**
- * @param string $resourceType The resource_type
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationContext
- */
- protected function contextExportConfiguration($resourceType) {
- return $this->bulkExports->exportConfiguration($resourceType);
- }
-
- /**
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetList
- */
- protected function getFleets() {
- return $this->deployedDevices->fleets;
- }
-
- /**
- * @param string $sid A string that uniquely identifies the Fleet.
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetContext
- */
- protected function contextFleets($sid) {
- return $this->deployedDevices->fleets($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentList
- */
- protected function getAuthorizationDocuments() {
- return $this->hostedNumbers->authorizationDocuments;
- }
-
- /**
- * @param string $sid AuthorizationDocument sid.
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentContext
- */
- protected function contextAuthorizationDocuments($sid) {
- return $this->hostedNumbers->authorizationDocuments($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderList
- */
- protected function getHostedNumberOrders() {
- return $this->hostedNumbers->hostedNumberOrders;
- }
-
- /**
- * @param string $sid HostedNumberOrder sid.
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderContext
- */
- protected function contextHostedNumberOrders($sid) {
- return $this->hostedNumbers->hostedNumberOrders($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnList
- */
- protected function getAvailableAddOns() {
- return $this->marketplace->availableAddOns;
- }
-
- /**
- * @param string $sid The unique Available Add-on Sid
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnContext
- */
- protected function contextAvailableAddOns($sid) {
- return $this->marketplace->availableAddOns($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnList
- */
- protected function getInstalledAddOns() {
- return $this->marketplace->installedAddOns;
- }
-
- /**
- * @param string $sid The unique Installed Add-on Sid
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnContext
- */
- protected function contextInstalledAddOns($sid) {
- return $this->marketplace->installedAddOns($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Understand\AssistantList
- */
- protected function getAssistants() {
- return $this->understand->assistants;
- }
-
- /**
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Preview\Understand\AssistantContext
- */
- protected function contextAssistants($sid) {
- return $this->understand->assistants($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless\CommandList
- */
- protected function getCommands() {
- return $this->wireless->commands;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\CommandContext
- */
- protected function contextCommands($sid) {
- return $this->wireless->commands($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless\RatePlanList
- */
- protected function getRatePlans() {
- return $this->wireless->ratePlans;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\RatePlanContext
- */
- protected function contextRatePlans($sid) {
- return $this->wireless->ratePlans($sid);
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless\SimList
- */
- protected function getSims() {
- return $this->wireless->sims;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\SimContext
- */
- protected function contextSims($sid) {
- return $this->wireless->sims($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity.php
deleted file mode 100644
index 6cf4d90..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'Verification';
- }
-
- /**
- * @return \Twilio\Rest\Preview\AccSecurity\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckInstance.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckInstance.php
deleted file mode 100644
index 005829e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckInstance.php
+++ /dev/null
@@ -1,87 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channel' => Values::array_get($payload, 'channel'),
- 'status' => Values::array_get($payload, 'status'),
- 'valid' => Values::array_get($payload, 'valid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.VerificationCheckInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckList.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckList.php
deleted file mode 100644
index 99e6f53..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckList.php
+++ /dev/null
@@ -1,68 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/VerificationCheck';
- }
-
- /**
- * Create a new VerificationCheckInstance
- *
- * @param string $code The verification string
- * @param array|Options $options Optional Arguments
- * @return VerificationCheckInstance Newly created VerificationCheckInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($code, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Code' => $code, 'To' => $options['to'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new VerificationCheckInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.VerificationCheckList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckOptions.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckOptions.php
deleted file mode 100644
index a3ac5e1..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['to'] = $to;
- }
-
- /**
- * The To phonenumber of the phone being verified
- *
- * @param string $to To phonenumber
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.AccSecurity.CreateVerificationCheckOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckPage.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckPage.php
deleted file mode 100644
index 3dd2ccb..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationCheckPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VerificationCheckInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.VerificationCheckPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationInstance.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationInstance.php
deleted file mode 100644
index 37d80b4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationInstance.php
+++ /dev/null
@@ -1,87 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channel' => Values::array_get($payload, 'channel'),
- 'status' => Values::array_get($payload, 'status'),
- 'valid' => Values::array_get($payload, 'valid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.VerificationInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php
deleted file mode 100644
index adba3c6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php
+++ /dev/null
@@ -1,73 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Verifications';
- }
-
- /**
- * Create a new VerificationInstance
- *
- * @param string $to To phonenumber
- * @param string $channel sms or call
- * @param array|Options $options Optional Arguments
- * @return VerificationInstance Newly created VerificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $channel, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'Channel' => $channel,
- 'CustomMessage' => $options['customMessage'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.VerificationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationOptions.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationOptions.php
deleted file mode 100644
index 304e915..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['customMessage'] = $customMessage;
- }
-
- /**
- * A character string containing a custom message for this verification
- *
- * @param string $customMessage A custom message for this verification
- * @return $this Fluent Builder
- */
- public function setCustomMessage($customMessage) {
- $this->options['customMessage'] = $customMessage;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.AccSecurity.CreateVerificationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationPage.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationPage.php
deleted file mode 100644
index df6ea4f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/Service/VerificationPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.VerificationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceContext.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceContext.php
deleted file mode 100644
index aa09f14..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceContext.php
+++ /dev/null
@@ -1,157 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Name' => $options['name'], 'CodeLength' => $options['codeLength'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the verifications
- *
- * @return \Twilio\Rest\Preview\AccSecurity\Service\VerificationList
- */
- protected function getVerifications() {
- if (!$this->_verifications) {
- $this->_verifications = new VerificationList($this->version, $this->solution['sid']);
- }
-
- return $this->_verifications;
- }
-
- /**
- * Access the verificationChecks
- *
- * @return \Twilio\Rest\Preview\AccSecurity\Service\VerificationCheckList
- */
- protected function getVerificationChecks() {
- if (!$this->_verificationChecks) {
- $this->_verificationChecks = new VerificationCheckList($this->version, $this->solution['sid']);
- }
-
- return $this->_verificationChecks;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.AccSecurity.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceInstance.php
deleted file mode 100644
index c08e545..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'name' => Values::array_get($payload, 'name'),
- 'codeLength' => Values::array_get($payload, 'code_length'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\AccSecurity\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the verifications
- *
- * @return \Twilio\Rest\Preview\AccSecurity\Service\VerificationList
- */
- protected function getVerifications() {
- return $this->proxy()->verifications;
- }
-
- /**
- * Access the verificationChecks
- *
- * @return \Twilio\Rest\Preview\AccSecurity\Service\VerificationCheckList
- */
- protected function getVerificationChecks() {
- return $this->proxy()->verificationChecks;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.AccSecurity.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceList.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceList.php
deleted file mode 100644
index 76ccef2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceList.php
+++ /dev/null
@@ -1,163 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $name Friendly name of the service
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($name, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Name' => $name, 'CodeLength' => $options['codeLength'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid Verification Service Instance SID.
- * @return \Twilio\Rest\Preview\AccSecurity\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceOptions.php
deleted file mode 100644
index 22f5524..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServiceOptions.php
+++ /dev/null
@@ -1,118 +0,0 @@
-options['codeLength'] = $codeLength;
- }
-
- /**
- * The length of the verification code to be generated. Must be an integer value between 4-10
- *
- * @param integer $codeLength Length of verification code. Valid values are 4-10
- * @return $this Fluent Builder
- */
- public function setCodeLength($codeLength) {
- $this->options['codeLength'] = $codeLength;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.AccSecurity.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $name Friendly name of the service
- * @param integer $codeLength Length of verification code. Valid values are 4-10
- */
- public function __construct($name = Values::NONE, $codeLength = Values::NONE) {
- $this->options['name'] = $name;
- $this->options['codeLength'] = $codeLength;
- }
-
- /**
- * A 1-64 character string with friendly name of service
- *
- * @param string $name Friendly name of the service
- * @return $this Fluent Builder
- */
- public function setName($name) {
- $this->options['name'] = $name;
- return $this;
- }
-
- /**
- * The length of the verification code to be generated. Must be an integer value between 4-10
- *
- * @param integer $codeLength Length of verification code. Valid values are 4-10
- * @return $this Fluent Builder
- */
- public function setCodeLength($codeLength) {
- $this->options['codeLength'] = $codeLength;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.AccSecurity.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServicePage.php b/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServicePage.php
deleted file mode 100644
index 0444989..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/AccSecurity/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.AccSecurity.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy.php b/public/twilio-php/Twilio/Rest/Preview/Authy.php
deleted file mode 100644
index f0fb6ec..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'Authy';
- }
-
- /**
- * @return \Twilio\Rest\Preview\Authy\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Authy]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityContext.php b/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityContext.php
deleted file mode 100644
index 41621bd..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'identity' => $identity, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a EntityInstance
- *
- * @return EntityInstance Fetched EntityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EntityInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Authy.EntityContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityInstance.php b/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityInstance.php
deleted file mode 100644
index b164f8f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityInstance.php
+++ /dev/null
@@ -1,122 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Authy\Service\EntityContext Context for this
- * EntityInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new EntityContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a EntityInstance
- *
- * @return EntityInstance Fetched EntityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Authy.EntityInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityList.php b/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityList.php
deleted file mode 100644
index af4f016..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityList.php
+++ /dev/null
@@ -1,160 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Entities';
- }
-
- /**
- * Create a new EntityInstance
- *
- * @param string $identity Unique identity of the Entity
- * @return EntityInstance Newly created EntityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identity) {
- $data = Values::of(array('Identity' => $identity, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new EntityInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams EntityInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads EntityInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return EntityInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of EntityInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of EntityInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EntityPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of EntityInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of EntityInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new EntityPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a EntityContext
- *
- * @param string $identity Unique identity of the Entity
- * @return \Twilio\Rest\Preview\Authy\Service\EntityContext
- */
- public function getContext($identity) {
- return new EntityContext($this->version, $this->solution['serviceSid'], $identity);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Authy.EntityList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityPage.php b/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityPage.php
deleted file mode 100644
index 3c5b1b6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/Service/EntityPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new EntityInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Authy.EntityPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceContext.php b/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceContext.php
deleted file mode 100644
index 0a60735..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceContext.php
+++ /dev/null
@@ -1,142 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the entities
- *
- * @return \Twilio\Rest\Preview\Authy\Service\EntityList
- */
- protected function getEntities() {
- if (!$this->_entities) {
- $this->_entities = new EntityList($this->version, $this->solution['sid']);
- }
-
- return $this->_entities;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Authy.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceInstance.php
deleted file mode 100644
index 6a385c5..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceInstance.php
+++ /dev/null
@@ -1,135 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Authy\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the entities
- *
- * @return \Twilio\Rest\Preview\Authy\Service\EntityList
- */
- protected function getEntities() {
- return $this->proxy()->entities;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Authy.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceList.php b/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceList.php
deleted file mode 100644
index a22f175..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceList.php
+++ /dev/null
@@ -1,159 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName) {
- $data = Values::of(array('FriendlyName' => $friendlyName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid A string that uniquely identifies this Service.
- * @return \Twilio\Rest\Preview\Authy\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Authy.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceOptions.php
deleted file mode 100644
index f33f13e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/ServiceOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A human readable description of this resource, up to 64 characters.
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Authy.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Authy/ServicePage.php b/public/twilio-php/Twilio/Rest/Preview/Authy/ServicePage.php
deleted file mode 100644
index 3082388..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Authy/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Authy.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports.php
deleted file mode 100644
index 599627d..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'BulkExports';
- }
-
- /**
- * @return \Twilio\Rest\Preview\BulkExports\ExportList
- */
- protected function getExports() {
- if (!$this->_exports) {
- $this->_exports = new ExportList($this);
- }
- return $this->_exports;
- }
-
- /**
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationList
- */
- protected function getExportConfiguration() {
- if (!$this->_exportConfiguration) {
- $this->_exportConfiguration = new ExportConfigurationList($this);
- }
- return $this->_exportConfiguration;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayInstance.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayInstance.php
deleted file mode 100644
index e86a28a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayInstance.php
+++ /dev/null
@@ -1,76 +0,0 @@
-properties = array(
- 'redirectTo' => Values::array_get($payload, 'redirect_to'),
- 'day' => Values::array_get($payload, 'day'),
- 'size' => Values::array_get($payload, 'size'),
- 'resourceType' => Values::array_get($payload, 'resource_type'),
- );
-
- $this->solution = array('resourceType' => $resourceType, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.DayInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayList.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayList.php
deleted file mode 100644
index 1705a95..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayList.php
+++ /dev/null
@@ -1,130 +0,0 @@
-solution = array('resourceType' => $resourceType, );
-
- $this->uri = '/Exports/' . rawurlencode($resourceType) . '/Days';
- }
-
- /**
- * Streams DayInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DayInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DayInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DayInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DayInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DayPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DayInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DayInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DayPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.DayList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayPage.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayPage.php
deleted file mode 100644
index cf4eb3a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/Export/DayPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DayInstance($this->version, $payload, $this->solution['resourceType']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.DayPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationContext.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationContext.php
deleted file mode 100644
index 6e1888c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationContext.php
+++ /dev/null
@@ -1,94 +0,0 @@
-solution = array('resourceType' => $resourceType, );
-
- $this->uri = '/Exports/' . rawurlencode($resourceType) . '/Configuration';
- }
-
- /**
- * Fetch a ExportConfigurationInstance
- *
- * @return ExportConfigurationInstance Fetched ExportConfigurationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExportConfigurationInstance($this->version, $payload, $this->solution['resourceType']);
- }
-
- /**
- * Update the ExportConfigurationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ExportConfigurationInstance Updated ExportConfigurationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- 'WebhookUrl' => $options['webhookUrl'],
- 'WebhookMethod' => $options['webhookMethod'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ExportConfigurationInstance($this->version, $payload, $this->solution['resourceType']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.BulkExports.ExportConfigurationContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationInstance.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationInstance.php
deleted file mode 100644
index 5940916..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationInstance.php
+++ /dev/null
@@ -1,120 +0,0 @@
-properties = array(
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'webhookUrl' => Values::array_get($payload, 'webhook_url'),
- 'webhookMethod' => Values::array_get($payload, 'webhook_method'),
- 'resourceType' => Values::array_get($payload, 'resource_type'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('resourceType' => $resourceType ?: $this->properties['resourceType'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationContext Context
- * for this
- * ExportConfigurationInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ExportConfigurationContext($this->version, $this->solution['resourceType']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ExportConfigurationInstance
- *
- * @return ExportConfigurationInstance Fetched ExportConfigurationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ExportConfigurationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ExportConfigurationInstance Updated ExportConfigurationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.BulkExports.ExportConfigurationInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationList.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationList.php
deleted file mode 100644
index 4e7393e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a ExportConfigurationContext
- *
- * @param string $resourceType The resource_type
- * @return \Twilio\Rest\Preview\BulkExports\ExportConfigurationContext
- */
- public function getContext($resourceType) {
- return new ExportConfigurationContext($this->version, $resourceType);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.ExportConfigurationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationOptions.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationOptions.php
deleted file mode 100644
index 2f9fff9..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationOptions.php
+++ /dev/null
@@ -1,89 +0,0 @@
-options['enabled'] = $enabled;
- $this->options['webhookUrl'] = $webhookUrl;
- $this->options['webhookMethod'] = $webhookMethod;
- }
-
- /**
- * The enabled
- *
- * @param boolean $enabled The enabled
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * The webhook_url
- *
- * @param string $webhookUrl The webhook_url
- * @return $this Fluent Builder
- */
- public function setWebhookUrl($webhookUrl) {
- $this->options['webhookUrl'] = $webhookUrl;
- return $this;
- }
-
- /**
- * The webhook_method
- *
- * @param string $webhookMethod The webhook_method
- * @return $this Fluent Builder
- */
- public function setWebhookMethod($webhookMethod) {
- $this->options['webhookMethod'] = $webhookMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.BulkExports.UpdateExportConfigurationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationPage.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationPage.php
deleted file mode 100644
index 10d19f3..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportConfigurationPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ExportConfigurationInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.ExportConfigurationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportContext.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportContext.php
deleted file mode 100644
index bf03126..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('resourceType' => $resourceType, );
-
- $this->uri = '/Exports/' . rawurlencode($resourceType) . '';
- }
-
- /**
- * Fetch a ExportInstance
- *
- * @return ExportInstance Fetched ExportInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExportInstance($this->version, $payload, $this->solution['resourceType']);
- }
-
- /**
- * Access the days
- *
- * @return \Twilio\Rest\Preview\BulkExports\Export\DayList
- */
- protected function getDays() {
- if (!$this->_days) {
- $this->_days = new DayList($this->version, $this->solution['resourceType']);
- }
-
- return $this->_days;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.BulkExports.ExportContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportInstance.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportInstance.php
deleted file mode 100644
index 972e301..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportInstance.php
+++ /dev/null
@@ -1,114 +0,0 @@
-properties = array(
- 'resourceType' => Values::array_get($payload, 'resource_type'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('resourceType' => $resourceType ?: $this->properties['resourceType'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\BulkExports\ExportContext Context for this
- * ExportInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ExportContext($this->version, $this->solution['resourceType']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ExportInstance
- *
- * @return ExportInstance Fetched ExportInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the days
- *
- * @return \Twilio\Rest\Preview\BulkExports\Export\DayList
- */
- protected function getDays() {
- return $this->proxy()->days;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.BulkExports.ExportInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportList.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportList.php
deleted file mode 100644
index 112a02d..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a ExportContext
- *
- * @param string $resourceType The resource_type
- * @return \Twilio\Rest\Preview\BulkExports\ExportContext
- */
- public function getContext($resourceType) {
- return new ExportContext($this->version, $resourceType);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.ExportList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportPage.php b/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportPage.php
deleted file mode 100644
index 93c9a8e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/BulkExports/ExportPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ExportInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.BulkExports.ExportPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices.php
deleted file mode 100644
index e1120c4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices.php
+++ /dev/null
@@ -1,87 +0,0 @@
-version = 'DeployedDevices';
- }
-
- /**
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetList
- */
- protected function getFleets() {
- if (!$this->_fleets) {
- $this->_fleets = new FleetList($this);
- }
- return $this->_fleets;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateContext.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateContext.php
deleted file mode 100644
index 29b0716..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateContext.php
+++ /dev/null
@@ -1,113 +0,0 @@
-solution = array('fleetSid' => $fleetSid, 'sid' => $sid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Certificates/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CertificateInstance
- *
- * @return CertificateInstance Fetched CertificateInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CertificateInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the CertificateInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the CertificateInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CertificateInstance Updated CertificateInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DeviceSid' => $options['deviceSid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CertificateInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.CertificateContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateInstance.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateInstance.php
deleted file mode 100644
index 111f647..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateInstance.php
+++ /dev/null
@@ -1,142 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'fleetSid' => Values::array_get($payload, 'fleet_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'deviceSid' => Values::array_get($payload, 'device_sid'),
- 'thumbprint' => Values::array_get($payload, 'thumbprint'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('fleetSid' => $fleetSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\CertificateContext Context for this CertificateInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CertificateContext(
- $this->version,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CertificateInstance
- *
- * @return CertificateInstance Fetched CertificateInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the CertificateInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the CertificateInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CertificateInstance Updated CertificateInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.CertificateInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php
deleted file mode 100644
index 9f0631c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('fleetSid' => $fleetSid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Certificates';
- }
-
- /**
- * Create a new CertificateInstance
- *
- * @param string $certificateData The public certificate data.
- * @param array|Options $options Optional Arguments
- * @return CertificateInstance Newly created CertificateInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($certificateData, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'CertificateData' => $certificateData,
- 'FriendlyName' => $options['friendlyName'],
- 'DeviceSid' => $options['deviceSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CertificateInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Streams CertificateInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CertificateInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CertificateInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CertificateInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CertificateInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DeviceSid' => $options['deviceSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CertificatePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CertificateInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CertificateInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CertificatePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CertificateContext
- *
- * @param string $sid A string that uniquely identifies the Certificate.
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\CertificateContext
- */
- public function getContext($sid) {
- return new CertificateContext($this->version, $this->solution['fleetSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.CertificateList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.php
deleted file mode 100644
index 019c339..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.php
+++ /dev/null
@@ -1,190 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['deviceSid'] = $deviceSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Certificate credential, up to 256 characters long.
- *
- * @param string $friendlyName The human readable description for this
- * Certificate.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential.
- *
- * @param string $deviceSid The unique identifier of a Device to be
- * authenticated.
- * @return $this Fluent Builder
- */
- public function setDeviceSid($deviceSid) {
- $this->options['deviceSid'] = $deviceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.CreateCertificateOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadCertificateOptions extends Options {
- /**
- * @param string $deviceSid Find all Certificates authenticating specified
- * Device.
- */
- public function __construct($deviceSid = Values::NONE) {
- $this->options['deviceSid'] = $deviceSid;
- }
-
- /**
- * Filters the resulting list of Certificates by a unique string identifier of an authenticated Device.
- *
- * @param string $deviceSid Find all Certificates authenticating specified
- * Device.
- * @return $this Fluent Builder
- */
- public function setDeviceSid($deviceSid) {
- $this->options['deviceSid'] = $deviceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.ReadCertificateOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCertificateOptions extends Options {
- /**
- * @param string $friendlyName The human readable description for this
- * Certificate.
- * @param string $deviceSid The unique identifier of a Device to be
- * authenticated.
- */
- public function __construct($friendlyName = Values::NONE, $deviceSid = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['deviceSid'] = $deviceSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Certificate credential, up to 256 characters long.
- *
- * @param string $friendlyName The human readable description for this
- * Certificate.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential.
- *
- * @param string $deviceSid The unique identifier of a Device to be
- * authenticated.
- * @return $this Fluent Builder
- */
- public function setDeviceSid($deviceSid) {
- $this->options['deviceSid'] = $deviceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.UpdateCertificateOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificatePage.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificatePage.php
deleted file mode 100644
index f906d97..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificatePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CertificateInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.CertificatePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentContext.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentContext.php
deleted file mode 100644
index 2531d21..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentContext.php
+++ /dev/null
@@ -1,113 +0,0 @@
-solution = array('fleetSid' => $fleetSid, 'sid' => $sid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Deployments/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a DeploymentInstance
- *
- * @return DeploymentInstance Fetched DeploymentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DeploymentInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the DeploymentInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the DeploymentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DeploymentInstance Updated DeploymentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'SyncServiceSid' => $options['syncServiceSid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DeploymentInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.DeploymentContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentInstance.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentInstance.php
deleted file mode 100644
index 96765f2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'fleetSid' => Values::array_get($payload, 'fleet_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'syncServiceSid' => Values::array_get($payload, 'sync_service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('fleetSid' => $fleetSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeploymentContext Context
- * for
- * this
- * DeploymentInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DeploymentContext(
- $this->version,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DeploymentInstance
- *
- * @return DeploymentInstance Fetched DeploymentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the DeploymentInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the DeploymentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DeploymentInstance Updated DeploymentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.DeploymentInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentList.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentList.php
deleted file mode 100644
index 2fed16d..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentList.php
+++ /dev/null
@@ -1,166 +0,0 @@
-solution = array('fleetSid' => $fleetSid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Deployments';
- }
-
- /**
- * Create a new DeploymentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DeploymentInstance Newly created DeploymentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'SyncServiceSid' => $options['syncServiceSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DeploymentInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Streams DeploymentInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DeploymentInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DeploymentInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DeploymentInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DeploymentInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DeploymentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DeploymentInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DeploymentInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DeploymentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a DeploymentContext
- *
- * @param string $sid A string that uniquely identifies the Deployment.
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeploymentContext
- */
- public function getContext($sid) {
- return new DeploymentContext($this->version, $this->solution['fleetSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.DeploymentList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.php
deleted file mode 100644
index 2d1308d..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.php
+++ /dev/null
@@ -1,138 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['syncServiceSid'] = $syncServiceSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Deployment, up to 256 characters long.
- *
- * @param string $friendlyName A human readable description for this Deployment.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment.
- *
- * @param string $syncServiceSid The unique identifier of the Sync service
- * instance.
- * @return $this Fluent Builder
- */
- public function setSyncServiceSid($syncServiceSid) {
- $this->options['syncServiceSid'] = $syncServiceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.CreateDeploymentOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateDeploymentOptions extends Options {
- /**
- * @param string $friendlyName A human readable description for this Deployment.
- * @param string $syncServiceSid The unique identifier of the Sync service
- * instance.
- */
- public function __construct($friendlyName = Values::NONE, $syncServiceSid = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['syncServiceSid'] = $syncServiceSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Deployment, up to 64 characters long
- *
- * @param string $friendlyName A human readable description for this Deployment.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment.
- *
- * @param string $syncServiceSid The unique identifier of the Sync service
- * instance.
- * @return $this Fluent Builder
- */
- public function setSyncServiceSid($syncServiceSid) {
- $this->options['syncServiceSid'] = $syncServiceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.UpdateDeploymentOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentPage.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentPage.php
deleted file mode 100644
index 190b4c6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DeploymentInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.DeploymentPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceContext.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceContext.php
deleted file mode 100644
index f649a73..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceContext.php
+++ /dev/null
@@ -1,116 +0,0 @@
-solution = array('fleetSid' => $fleetSid, 'sid' => $sid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Devices/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a DeviceInstance
- *
- * @return DeviceInstance Fetched DeviceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DeviceInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the DeviceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the DeviceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DeviceInstance Updated DeviceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Identity' => $options['identity'],
- 'DeploymentSid' => $options['deploymentSid'],
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DeviceInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.DeviceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceInstance.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceInstance.php
deleted file mode 100644
index d4175b5..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceInstance.php
+++ /dev/null
@@ -1,150 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'fleetSid' => Values::array_get($payload, 'fleet_sid'),
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'deploymentSid' => Values::array_get($payload, 'deployment_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'dateAuthenticated' => Deserialize::dateTime(Values::array_get($payload, 'date_authenticated')),
- );
-
- $this->solution = array('fleetSid' => $fleetSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeviceContext Context for
- * this
- * DeviceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DeviceContext(
- $this->version,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DeviceInstance
- *
- * @return DeviceInstance Fetched DeviceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the DeviceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the DeviceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DeviceInstance Updated DeviceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.DeviceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceList.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceList.php
deleted file mode 100644
index 3713b6b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceList.php
+++ /dev/null
@@ -1,175 +0,0 @@
-solution = array('fleetSid' => $fleetSid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Devices';
- }
-
- /**
- * Create a new DeviceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DeviceInstance Newly created DeviceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'FriendlyName' => $options['friendlyName'],
- 'Identity' => $options['identity'],
- 'DeploymentSid' => $options['deploymentSid'],
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DeviceInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Streams DeviceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DeviceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DeviceInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DeviceInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DeviceInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DeploymentSid' => $options['deploymentSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DevicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DeviceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DeviceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DevicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a DeviceContext
- *
- * @param string $sid A string that uniquely identifies the Device.
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeviceContext
- */
- public function getContext($sid) {
- return new DeviceContext($this->version, $this->solution['fleetSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.DeviceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.php
deleted file mode 100644
index 62b16d8..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.php
+++ /dev/null
@@ -1,248 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['identity'] = $identity;
- $this->options['deploymentSid'] = $deploymentSid;
- $this->options['enabled'] = $enabled;
- }
-
- /**
- * Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long.
- *
- * @param string $uniqueName A unique, addressable name of this Device.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long.
- *
- * @param string $friendlyName A human readable description for this Device.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long.
- *
- * @param string $identity An identifier of the Device user.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Specifies the unique string identifier of the Deployment group that this Device is going to be associated with.
- *
- * @param string $deploymentSid The unique SID of the Deployment group.
- * @return $this Fluent Builder
- */
- public function setDeploymentSid($deploymentSid) {
- $this->options['deploymentSid'] = $deploymentSid;
- return $this;
- }
-
- /**
- * The enabled
- *
- * @param boolean $enabled The enabled
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.CreateDeviceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadDeviceOptions extends Options {
- /**
- * @param string $deploymentSid Find all Devices grouped under the specified
- * Deployment.
- */
- public function __construct($deploymentSid = Values::NONE) {
- $this->options['deploymentSid'] = $deploymentSid;
- }
-
- /**
- * Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with.
- *
- * @param string $deploymentSid Find all Devices grouped under the specified
- * Deployment.
- * @return $this Fluent Builder
- */
- public function setDeploymentSid($deploymentSid) {
- $this->options['deploymentSid'] = $deploymentSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.ReadDeviceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateDeviceOptions extends Options {
- /**
- * @param string $friendlyName A human readable description for this Device.
- * @param string $identity An identifier of the Device user.
- * @param string $deploymentSid The unique SID of the Deployment group.
- * @param boolean $enabled The enabled
- */
- public function __construct($friendlyName = Values::NONE, $identity = Values::NONE, $deploymentSid = Values::NONE, $enabled = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['identity'] = $identity;
- $this->options['deploymentSid'] = $deploymentSid;
- $this->options['enabled'] = $enabled;
- }
-
- /**
- * Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long.
- *
- * @param string $friendlyName A human readable description for this Device.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long.
- *
- * @param string $identity An identifier of the Device user.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Specifies the unique string identifier of the Deployment group that this Device is going to be associated with.
- *
- * @param string $deploymentSid The unique SID of the Deployment group.
- * @return $this Fluent Builder
- */
- public function setDeploymentSid($deploymentSid) {
- $this->options['deploymentSid'] = $deploymentSid;
- return $this;
- }
-
- /**
- * The enabled
- *
- * @param boolean $enabled The enabled
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.UpdateDeviceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DevicePage.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DevicePage.php
deleted file mode 100644
index b2db5e0..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/DevicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DeviceInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.DevicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyContext.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyContext.php
deleted file mode 100644
index 61e7d7a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyContext.php
+++ /dev/null
@@ -1,113 +0,0 @@
-solution = array('fleetSid' => $fleetSid, 'sid' => $sid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Keys/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a KeyInstance
- *
- * @return KeyInstance Fetched KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new KeyInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the KeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the KeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return KeyInstance Updated KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DeviceSid' => $options['deviceSid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new KeyInstance(
- $this->version,
- $payload,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.KeyContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyInstance.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyInstance.php
deleted file mode 100644
index ae48c3b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyInstance.php
+++ /dev/null
@@ -1,144 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'fleetSid' => Values::array_get($payload, 'fleet_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'deviceSid' => Values::array_get($payload, 'device_sid'),
- 'secret' => Values::array_get($payload, 'secret'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('fleetSid' => $fleetSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\KeyContext Context for
- * this
- * KeyInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new KeyContext(
- $this->version,
- $this->solution['fleetSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a KeyInstance
- *
- * @return KeyInstance Fetched KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the KeyInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the KeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return KeyInstance Updated KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.KeyInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyList.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyList.php
deleted file mode 100644
index 34545bf..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyList.php
+++ /dev/null
@@ -1,171 +0,0 @@
-solution = array('fleetSid' => $fleetSid, );
-
- $this->uri = '/Fleets/' . rawurlencode($fleetSid) . '/Keys';
- }
-
- /**
- * Create a new KeyInstance
- *
- * @param array|Options $options Optional Arguments
- * @return KeyInstance Newly created KeyInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DeviceSid' => $options['deviceSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new KeyInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Streams KeyInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads KeyInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return KeyInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of KeyInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of KeyInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DeviceSid' => $options['deviceSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new KeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of KeyInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of KeyInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new KeyPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a KeyContext
- *
- * @param string $sid A string that uniquely identifies the Key.
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\KeyContext
- */
- public function getContext($sid) {
- return new KeyContext($this->version, $this->solution['fleetSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.KeyList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.php
deleted file mode 100644
index 179568a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.php
+++ /dev/null
@@ -1,175 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['deviceSid'] = $deviceSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Key credential, up to 256 characters long.
- *
- * @param string $friendlyName The human readable description for this Key.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides the unique string identifier of an existing Device to become authenticated with this Key credential.
- *
- * @param string $deviceSid The unique identifier of a Key to be authenticated.
- * @return $this Fluent Builder
- */
- public function setDeviceSid($deviceSid) {
- $this->options['deviceSid'] = $deviceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.CreateKeyOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadKeyOptions extends Options {
- /**
- * @param string $deviceSid Find all Keys authenticating specified Device.
- */
- public function __construct($deviceSid = Values::NONE) {
- $this->options['deviceSid'] = $deviceSid;
- }
-
- /**
- * Filters the resulting list of Keys by a unique string identifier of an authenticated Device.
- *
- * @param string $deviceSid Find all Keys authenticating specified Device.
- * @return $this Fluent Builder
- */
- public function setDeviceSid($deviceSid) {
- $this->options['deviceSid'] = $deviceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.ReadKeyOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateKeyOptions extends Options {
- /**
- * @param string $friendlyName The human readable description for this Key.
- * @param string $deviceSid The unique identifier of a Key to be authenticated.
- */
- public function __construct($friendlyName = Values::NONE, $deviceSid = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['deviceSid'] = $deviceSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Key credential, up to 256 characters long.
- *
- * @param string $friendlyName The human readable description for this Key.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides the unique string identifier of an existing Device to become authenticated with this Key credential.
- *
- * @param string $deviceSid The unique identifier of a Key to be authenticated.
- * @return $this Fluent Builder
- */
- public function setDeviceSid($deviceSid) {
- $this->options['deviceSid'] = $deviceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.UpdateKeyOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyPage.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyPage.php
deleted file mode 100644
index c134f6c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new KeyInstance($this->version, $payload, $this->solution['fleetSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.KeyPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetContext.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetContext.php
deleted file mode 100644
index fe039cb..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetContext.php
+++ /dev/null
@@ -1,206 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Fleets/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FleetInstance
- *
- * @return FleetInstance Fetched FleetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FleetInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the FleetInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the FleetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FleetInstance Updated FleetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DefaultDeploymentSid' => $options['defaultDeploymentSid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FleetInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the devices
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeviceList
- */
- protected function getDevices() {
- if (!$this->_devices) {
- $this->_devices = new DeviceList($this->version, $this->solution['sid']);
- }
-
- return $this->_devices;
- }
-
- /**
- * Access the deployments
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeploymentList
- */
- protected function getDeployments() {
- if (!$this->_deployments) {
- $this->_deployments = new DeploymentList($this->version, $this->solution['sid']);
- }
-
- return $this->_deployments;
- }
-
- /**
- * Access the certificates
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\CertificateList
- */
- protected function getCertificates() {
- if (!$this->_certificates) {
- $this->_certificates = new CertificateList($this->version, $this->solution['sid']);
- }
-
- return $this->_certificates;
- }
-
- /**
- * Access the keys
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\KeyList
- */
- protected function getKeys() {
- if (!$this->_keys) {
- $this->_keys = new KeyList($this->version, $this->solution['sid']);
- }
-
- return $this->_keys;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.FleetContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetInstance.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetInstance.php
deleted file mode 100644
index 4a84a6f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetInstance.php
+++ /dev/null
@@ -1,179 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'defaultDeploymentSid' => Values::array_get($payload, 'default_deployment_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetContext Context for this
- * FleetInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FleetContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FleetInstance
- *
- * @return FleetInstance Fetched FleetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FleetInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the FleetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FleetInstance Updated FleetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the devices
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeviceList
- */
- protected function getDevices() {
- return $this->proxy()->devices;
- }
-
- /**
- * Access the deployments
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeploymentList
- */
- protected function getDeployments() {
- return $this->proxy()->deployments;
- }
-
- /**
- * Access the certificates
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\CertificateList
- */
- protected function getCertificates() {
- return $this->proxy()->certificates;
- }
-
- /**
- * Access the keys
- *
- * @return \Twilio\Rest\Preview\DeployedDevices\Fleet\KeyList
- */
- protected function getKeys() {
- return $this->proxy()->keys;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.DeployedDevices.FleetInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetList.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetList.php
deleted file mode 100644
index 437a659..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetList.php
+++ /dev/null
@@ -1,162 +0,0 @@
-solution = array();
-
- $this->uri = '/Fleets';
- }
-
- /**
- * Create a new FleetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FleetInstance Newly created FleetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FleetInstance($this->version, $payload);
- }
-
- /**
- * Streams FleetInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FleetInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FleetInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FleetInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FleetInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FleetPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FleetInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FleetInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FleetPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a FleetContext
- *
- * @param string $sid A string that uniquely identifies the Fleet.
- * @return \Twilio\Rest\Preview\DeployedDevices\FleetContext
- */
- public function getContext($sid) {
- return new FleetContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.FleetList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetOptions.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetOptions.php
deleted file mode 100644
index 1e6345d..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetOptions.php
+++ /dev/null
@@ -1,118 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * Provides a human readable descriptive text for this Fleet, up to 256 characters long.
- *
- * @param string $friendlyName A human readable description for this Fleet.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.CreateFleetOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateFleetOptions extends Options {
- /**
- * @param string $friendlyName A human readable description for this Fleet.
- * @param string $defaultDeploymentSid A default Deployment SID.
- */
- public function __construct($friendlyName = Values::NONE, $defaultDeploymentSid = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['defaultDeploymentSid'] = $defaultDeploymentSid;
- }
-
- /**
- * Provides a human readable descriptive text for this Fleet, up to 256 characters long.
- *
- * @param string $friendlyName A human readable description for this Fleet.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet.
- *
- * @param string $defaultDeploymentSid A default Deployment SID.
- * @return $this Fluent Builder
- */
- public function setDefaultDeploymentSid($defaultDeploymentSid) {
- $this->options['defaultDeploymentSid'] = $defaultDeploymentSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.DeployedDevices.UpdateFleetOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetPage.php b/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetPage.php
deleted file mode 100644
index 0408a8c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/DeployedDevices/FleetPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FleetInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.DeployedDevices.FleetPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers.php
deleted file mode 100644
index 6e34330..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'HostedNumbers';
- }
-
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentList
- */
- protected function getAuthorizationDocuments() {
- if (!$this->_authorizationDocuments) {
- $this->_authorizationDocuments = new AuthorizationDocumentList($this);
- }
- return $this->_authorizationDocuments;
- }
-
- /**
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderList
- */
- protected function getHostedNumberOrders() {
- if (!$this->_hostedNumberOrders) {
- $this->_hostedNumberOrders = new HostedNumberOrderList($this);
- }
- return $this->_hostedNumberOrders;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderInstance.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderInstance.php
deleted file mode 100644
index 1ce871b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderInstance.php
+++ /dev/null
@@ -1,113 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'incomingPhoneNumberSid' => Values::array_get($payload, 'incoming_phone_number_sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'signingDocumentSid' => Values::array_get($payload, 'signing_document_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'status' => Values::array_get($payload, 'status'),
- 'failureReason' => Values::array_get($payload, 'failure_reason'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'verificationAttempts' => Values::array_get($payload, 'verification_attempts'),
- 'email' => Values::array_get($payload, 'email'),
- 'ccEmails' => Values::array_get($payload, 'cc_emails'),
- 'verificationType' => Values::array_get($payload, 'verification_type'),
- 'verificationDocumentSid' => Values::array_get($payload, 'verification_document_sid'),
- 'extension' => Values::array_get($payload, 'extension'),
- 'callDelay' => Values::array_get($payload, 'call_delay'),
- 'verificationCode' => Values::array_get($payload, 'verification_code'),
- 'verificationCallSids' => Values::array_get($payload, 'verification_call_sids'),
- );
-
- $this->solution = array('signingDocumentSid' => $signingDocumentSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.DependentHostedNumberOrderInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderList.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderList.php
deleted file mode 100644
index 4829332..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('signingDocumentSid' => $signingDocumentSid, );
-
- $this->uri = '/AuthorizationDocuments/' . rawurlencode($signingDocumentSid) . '/DependentHostedNumberOrders';
- }
-
- /**
- * Streams DependentHostedNumberOrderInstance records from the API as a
- * generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DependentHostedNumberOrderInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DependentHostedNumberOrderInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DependentHostedNumberOrderInstance records from
- * the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DependentHostedNumberOrderInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'IncomingPhoneNumberSid' => $options['incomingPhoneNumberSid'],
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DependentHostedNumberOrderPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DependentHostedNumberOrderInstance records from
- * the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DependentHostedNumberOrderInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DependentHostedNumberOrderPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.DependentHostedNumberOrderList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.php
deleted file mode 100644
index 021c671..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.php
+++ /dev/null
@@ -1,120 +0,0 @@
-options['status'] = $status;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['incomingPhoneNumberSid'] = $incomingPhoneNumberSid;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses.
- *
- * @param string $status The Status of this HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * An E164 formatted phone number hosted by this HostedNumberOrder.
- *
- * @param string $phoneNumber An E164 formatted phone number.
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
- *
- * @param string $incomingPhoneNumberSid IncomingPhoneNumber sid.
- * @return $this Fluent Builder
- */
- public function setIncomingPhoneNumberSid($incomingPhoneNumberSid) {
- $this->options['incomingPhoneNumberSid'] = $incomingPhoneNumberSid;
- return $this;
- }
-
- /**
- * A human readable description of this resource, up to 64 characters.
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID.
- *
- * @param string $uniqueName A unique, developer assigned name of this
- * HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.ReadDependentHostedNumberOrderOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderPage.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderPage.php
deleted file mode 100644
index 3beb960..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderPage.php
+++ /dev/null
@@ -1,41 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DependentHostedNumberOrderInstance(
- $this->version,
- $payload,
- $this->solution['signingDocumentSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.DependentHostedNumberOrderPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentContext.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentContext.php
deleted file mode 100644
index b8779c6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentContext.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/AuthorizationDocuments/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AuthorizationDocumentInstance
- *
- * @return AuthorizationDocumentInstance Fetched AuthorizationDocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthorizationDocumentInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the AuthorizationDocumentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AuthorizationDocumentInstance Updated AuthorizationDocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'HostedNumberOrderSids' => Serialize::map($options['hostedNumberOrderSids'], function($e) { return $e; }),
- 'AddressSid' => $options['addressSid'],
- 'Email' => $options['email'],
- 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }),
- 'Status' => $options['status'],
- 'ContactTitle' => $options['contactTitle'],
- 'ContactPhoneNumber' => $options['contactPhoneNumber'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AuthorizationDocumentInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the dependentHostedNumberOrders
- *
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocument\DependentHostedNumberOrderList
- */
- protected function getDependentHostedNumberOrders() {
- if (!$this->_dependentHostedNumberOrders) {
- $this->_dependentHostedNumberOrders = new DependentHostedNumberOrderList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_dependentHostedNumberOrders;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.HostedNumbers.AuthorizationDocumentContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php
deleted file mode 100644
index 3dc9732..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php
+++ /dev/null
@@ -1,138 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'email' => Values::array_get($payload, 'email'),
- 'ccEmails' => Values::array_get($payload, 'cc_emails'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentContext Context for this AuthorizationDocumentInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AuthorizationDocumentContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AuthorizationDocumentInstance
- *
- * @return AuthorizationDocumentInstance Fetched AuthorizationDocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AuthorizationDocumentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AuthorizationDocumentInstance Updated AuthorizationDocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the dependentHostedNumberOrders
- *
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocument\DependentHostedNumberOrderList
- */
- protected function getDependentHostedNumberOrders() {
- return $this->proxy()->dependentHostedNumberOrders;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.HostedNumbers.AuthorizationDocumentInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
deleted file mode 100644
index e712816..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
+++ /dev/null
@@ -1,185 +0,0 @@
-solution = array();
-
- $this->uri = '/AuthorizationDocuments';
- }
-
- /**
- * Streams AuthorizationDocumentInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AuthorizationDocumentInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AuthorizationDocumentInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AuthorizationDocumentInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AuthorizationDocumentInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Email' => $options['email'],
- 'Status' => $options['status'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AuthorizationDocumentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AuthorizationDocumentInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AuthorizationDocumentInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AuthorizationDocumentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new AuthorizationDocumentInstance
- *
- * @param string $hostedNumberOrderSids A list of HostedNumberOrder sids.
- * @param string $addressSid Address sid.
- * @param string $email Email.
- * @param string $contactTitle Title of signee of this Authorization Document.
- * @param string $contactPhoneNumber Authorization Document's signee's phone
- * number.
- * @param array|Options $options Optional Arguments
- * @return AuthorizationDocumentInstance Newly created
- * AuthorizationDocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($hostedNumberOrderSids, $addressSid, $email, $contactTitle, $contactPhoneNumber, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'HostedNumberOrderSids' => Serialize::map($hostedNumberOrderSids, function($e) { return $e; }),
- 'AddressSid' => $addressSid,
- 'Email' => $email,
- 'ContactTitle' => $contactTitle,
- 'ContactPhoneNumber' => $contactPhoneNumber,
- 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AuthorizationDocumentInstance($this->version, $payload);
- }
-
- /**
- * Constructs a AuthorizationDocumentContext
- *
- * @param string $sid AuthorizationDocument sid.
- * @return \Twilio\Rest\Preview\HostedNumbers\AuthorizationDocumentContext
- */
- public function getContext($sid) {
- return new AuthorizationDocumentContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.AuthorizationDocumentList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
deleted file mode 100644
index 24bb9c8..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.php
+++ /dev/null
@@ -1,248 +0,0 @@
-options['hostedNumberOrderSids'] = $hostedNumberOrderSids;
- $this->options['addressSid'] = $addressSid;
- $this->options['email'] = $email;
- $this->options['ccEmails'] = $ccEmails;
- $this->options['status'] = $status;
- $this->options['contactTitle'] = $contactTitle;
- $this->options['contactPhoneNumber'] = $contactPhoneNumber;
- }
-
- /**
- * A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform.
- *
- * @param string $hostedNumberOrderSids A list of HostedNumberOrder sids.
- * @return $this Fluent Builder
- */
- public function setHostedNumberOrderSids($hostedNumberOrderSids) {
- $this->options['hostedNumberOrderSids'] = $hostedNumberOrderSids;
- return $this;
- }
-
- /**
- * A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument.
- *
- * @param string $addressSid Address sid.
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * Email that this AuthorizationDocument will be sent to for signing.
- *
- * @param string $email Email.
- * @return $this Fluent Builder
- */
- public function setEmail($email) {
- $this->options['email'] = $email;
- return $this;
- }
-
- /**
- * Email recipients who will be informed when an Authorization Document has been sent and signed
- *
- * @param string $ccEmails A list of emails.
- * @return $this Fluent Builder
- */
- public function setCcEmails($ccEmails) {
- $this->options['ccEmails'] = $ccEmails;
- return $this;
- }
-
- /**
- * Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses.
- *
- * @param string $status The Status of this AuthorizationDocument.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The title of the person authorized to sign the Authorization Document for this phone number.
- *
- * @param string $contactTitle Title of signee of this Authorization Document.
- * @return $this Fluent Builder
- */
- public function setContactTitle($contactTitle) {
- $this->options['contactTitle'] = $contactTitle;
- return $this;
- }
-
- /**
- * The contact phone number of the person authorized to sign the Authorization Document.
- *
- * @param string $contactPhoneNumber Authorization Document's signee's phone
- * number.
- * @return $this Fluent Builder
- */
- public function setContactPhoneNumber($contactPhoneNumber) {
- $this->options['contactPhoneNumber'] = $contactPhoneNumber;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.UpdateAuthorizationDocumentOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadAuthorizationDocumentOptions extends Options {
- /**
- * @param string $email Email.
- * @param string $status The Status of this AuthorizationDocument.
- */
- public function __construct($email = Values::NONE, $status = Values::NONE) {
- $this->options['email'] = $email;
- $this->options['status'] = $status;
- }
-
- /**
- * Email that this AuthorizationDocument will be sent to for signing.
- *
- * @param string $email Email.
- * @return $this Fluent Builder
- */
- public function setEmail($email) {
- $this->options['email'] = $email;
- return $this;
- }
-
- /**
- * Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses.
- *
- * @param string $status The Status of this AuthorizationDocument.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.ReadAuthorizationDocumentOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateAuthorizationDocumentOptions extends Options {
- /**
- * @param string $ccEmails A list of emails.
- */
- public function __construct($ccEmails = Values::NONE) {
- $this->options['ccEmails'] = $ccEmails;
- }
-
- /**
- * Email recipients who will be informed when an Authorization Document has been sent and signed.
- *
- * @param string $ccEmails A list of emails.
- * @return $this Fluent Builder
- */
- public function setCcEmails($ccEmails) {
- $this->options['ccEmails'] = $ccEmails;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.CreateAuthorizationDocumentOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentPage.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentPage.php
deleted file mode 100644
index bc15860..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AuthorizationDocumentInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.AuthorizationDocumentPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderContext.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderContext.php
deleted file mode 100644
index ad27f7c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/HostedNumberOrders/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a HostedNumberOrderInstance
- *
- * @return HostedNumberOrderInstance Fetched HostedNumberOrderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new HostedNumberOrderInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the HostedNumberOrderInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the HostedNumberOrderInstance
- *
- * @param array|Options $options Optional Arguments
- * @return HostedNumberOrderInstance Updated HostedNumberOrderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Email' => $options['email'],
- 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }),
- 'Status' => $options['status'],
- 'VerificationCode' => $options['verificationCode'],
- 'VerificationType' => $options['verificationType'],
- 'VerificationDocumentSid' => $options['verificationDocumentSid'],
- 'Extension' => $options['extension'],
- 'CallDelay' => $options['callDelay'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new HostedNumberOrderInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.HostedNumbers.HostedNumberOrderContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderInstance.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderInstance.php
deleted file mode 100644
index 0e34b21..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderInstance.php
+++ /dev/null
@@ -1,167 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'incomingPhoneNumberSid' => Values::array_get($payload, 'incoming_phone_number_sid'),
- 'addressSid' => Values::array_get($payload, 'address_sid'),
- 'signingDocumentSid' => Values::array_get($payload, 'signing_document_sid'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'status' => Values::array_get($payload, 'status'),
- 'failureReason' => Values::array_get($payload, 'failure_reason'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'verificationAttempts' => Values::array_get($payload, 'verification_attempts'),
- 'email' => Values::array_get($payload, 'email'),
- 'ccEmails' => Values::array_get($payload, 'cc_emails'),
- 'url' => Values::array_get($payload, 'url'),
- 'verificationType' => Values::array_get($payload, 'verification_type'),
- 'verificationDocumentSid' => Values::array_get($payload, 'verification_document_sid'),
- 'extension' => Values::array_get($payload, 'extension'),
- 'callDelay' => Values::array_get($payload, 'call_delay'),
- 'verificationCode' => Values::array_get($payload, 'verification_code'),
- 'verificationCallSids' => Values::array_get($payload, 'verification_call_sids'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderContext Context
- * for this
- * HostedNumberOrderInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new HostedNumberOrderContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a HostedNumberOrderInstance
- *
- * @return HostedNumberOrderInstance Fetched HostedNumberOrderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the HostedNumberOrderInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the HostedNumberOrderInstance
- *
- * @param array|Options $options Optional Arguments
- * @return HostedNumberOrderInstance Updated HostedNumberOrderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.HostedNumbers.HostedNumberOrderInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php
deleted file mode 100644
index ae22137..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php
+++ /dev/null
@@ -1,192 +0,0 @@
-solution = array();
-
- $this->uri = '/HostedNumberOrders';
- }
-
- /**
- * Streams HostedNumberOrderInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads HostedNumberOrderInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return HostedNumberOrderInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of HostedNumberOrderInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of HostedNumberOrderInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'IncomingPhoneNumberSid' => $options['incomingPhoneNumberSid'],
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new HostedNumberOrderPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of HostedNumberOrderInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of HostedNumberOrderInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new HostedNumberOrderPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new HostedNumberOrderInstance
- *
- * @param string $phoneNumber An E164 formatted phone number.
- * @param boolean $smsCapability Specify SMS capability to host.
- * @param array|Options $options Optional Arguments
- * @return HostedNumberOrderInstance Newly created HostedNumberOrderInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumber, $smsCapability, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'PhoneNumber' => $phoneNumber,
- 'SmsCapability' => Serialize::booleanToString($smsCapability),
- 'AccountSid' => $options['accountSid'],
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }),
- 'SmsUrl' => $options['smsUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'StatusCallbackUrl' => $options['statusCallbackUrl'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'SmsApplicationSid' => $options['smsApplicationSid'],
- 'AddressSid' => $options['addressSid'],
- 'Email' => $options['email'],
- 'VerificationType' => $options['verificationType'],
- 'VerificationDocumentSid' => $options['verificationDocumentSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new HostedNumberOrderInstance($this->version, $payload);
- }
-
- /**
- * Constructs a HostedNumberOrderContext
- *
- * @param string $sid HostedNumberOrder sid.
- * @return \Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderContext
- */
- public function getContext($sid) {
- return new HostedNumberOrderContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.HostedNumberOrderList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
deleted file mode 100644
index abf6c7a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.php
+++ /dev/null
@@ -1,540 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['email'] = $email;
- $this->options['ccEmails'] = $ccEmails;
- $this->options['status'] = $status;
- $this->options['verificationCode'] = $verificationCode;
- $this->options['verificationType'] = $verificationType;
- $this->options['verificationDocumentSid'] = $verificationDocumentSid;
- $this->options['extension'] = $extension;
- $this->options['callDelay'] = $callDelay;
- }
-
- /**
- * A 64 character string that is a human readable text that describes this resource.
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID.
- *
- * @param string $uniqueName A unique, developer assigned name of this
- * HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Email of the owner of this phone number that is being hosted.
- *
- * @param string $email Email.
- * @return $this Fluent Builder
- */
- public function setEmail($email) {
- $this->options['email'] = $email;
- return $this;
- }
-
- /**
- * Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to.
- *
- * @param string $ccEmails A list of emails.
- * @return $this Fluent Builder
- */
- public function setCcEmails($ccEmails) {
- $this->options['ccEmails'] = $ccEmails;
- return $this;
- }
-
- /**
- * User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill.
- *
- * @param string $status The Status of this HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * A verification code that is given to the user via a phone call to the phone number that is being hosted.
- *
- * @param string $verificationCode A verification code.
- * @return $this Fluent Builder
- */
- public function setVerificationCode($verificationCode) {
- $this->options['verificationCode'] = $verificationCode;
- return $this;
- }
-
- /**
- * Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill.
- *
- * @param string $verificationType Verification Type.
- * @return $this Fluent Builder
- */
- public function setVerificationType($verificationType) {
- $this->options['verificationType'] = $verificationType;
- return $this;
- }
-
- /**
- * Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill.
- *
- * @param string $verificationDocumentSid Verification Document Sid
- * @return $this Fluent Builder
- */
- public function setVerificationDocumentSid($verificationDocumentSid) {
- $this->options['verificationDocumentSid'] = $verificationDocumentSid;
- return $this;
- }
-
- /**
- * Digits to dial after connecting the verification call.
- *
- * @param string $extension Digits to dial after connecting the verification
- * call.
- * @return $this Fluent Builder
- */
- public function setExtension($extension) {
- $this->options['extension'] = $extension;
- return $this;
- }
-
- /**
- * The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0.
- *
- * @param integer $callDelay The number of seconds, between 0 and 60, to delay
- * before initiating the verification call.
- * @return $this Fluent Builder
- */
- public function setCallDelay($callDelay) {
- $this->options['callDelay'] = $callDelay;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.UpdateHostedNumberOrderOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadHostedNumberOrderOptions extends Options {
- /**
- * @param string $status The Status of this HostedNumberOrder.
- * @param string $phoneNumber An E164 formatted phone number.
- * @param string $incomingPhoneNumberSid IncomingPhoneNumber sid.
- * @param string $friendlyName A human readable description of this resource.
- * @param string $uniqueName A unique, developer assigned name of this
- * HostedNumberOrder.
- */
- public function __construct($status = Values::NONE, $phoneNumber = Values::NONE, $incomingPhoneNumberSid = Values::NONE, $friendlyName = Values::NONE, $uniqueName = Values::NONE) {
- $this->options['status'] = $status;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['incomingPhoneNumberSid'] = $incomingPhoneNumberSid;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * The Status of this HostedNumberOrder. One of `received`, `pending-verification`, `verified`, `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or `action-required`.
- *
- * @param string $status The Status of this HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * An E164 formatted phone number hosted by this HostedNumberOrder.
- *
- * @param string $phoneNumber An E164 formatted phone number.
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
- *
- * @param string $incomingPhoneNumberSid IncomingPhoneNumber sid.
- * @return $this Fluent Builder
- */
- public function setIncomingPhoneNumberSid($incomingPhoneNumberSid) {
- $this->options['incomingPhoneNumberSid'] = $incomingPhoneNumberSid;
- return $this;
- }
-
- /**
- * A human readable description of this resource, up to 64 characters.
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID.
- *
- * @param string $uniqueName A unique, developer assigned name of this
- * HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.ReadHostedNumberOrderOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateHostedNumberOrderOptions extends Options {
- /**
- * @param string $accountSid Account Sid.
- * @param string $friendlyName A human readable description of this resource.
- * @param string $uniqueName A unique, developer assigned name of this
- * HostedNumberOrder.
- * @param string $ccEmails A list of emails.
- * @param string $smsUrl SMS URL.
- * @param string $smsMethod SMS Method.
- * @param string $smsFallbackUrl SMS Fallback URL.
- * @param string $smsFallbackMethod SMS Fallback Method.
- * @param string $statusCallbackUrl Status Callback URL.
- * @param string $statusCallbackMethod Status Callback Method.
- * @param string $smsApplicationSid SMS Application Sid.
- * @param string $addressSid Address sid.
- * @param string $email Email.
- * @param string $verificationType Verification Type.
- * @param string $verificationDocumentSid Verification Document Sid
- */
- public function __construct($accountSid = Values::NONE, $friendlyName = Values::NONE, $uniqueName = Values::NONE, $ccEmails = Values::NONE, $smsUrl = Values::NONE, $smsMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsFallbackMethod = Values::NONE, $statusCallbackUrl = Values::NONE, $statusCallbackMethod = Values::NONE, $smsApplicationSid = Values::NONE, $addressSid = Values::NONE, $email = Values::NONE, $verificationType = Values::NONE, $verificationDocumentSid = Values::NONE) {
- $this->options['accountSid'] = $accountSid;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['ccEmails'] = $ccEmails;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['statusCallbackUrl'] = $statusCallbackUrl;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- $this->options['addressSid'] = $addressSid;
- $this->options['email'] = $email;
- $this->options['verificationType'] = $verificationType;
- $this->options['verificationDocumentSid'] = $verificationDocumentSid;
- }
-
- /**
- * This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to.
- *
- * @param string $accountSid Account Sid.
- * @return $this Fluent Builder
- */
- public function setAccountSid($accountSid) {
- $this->options['accountSid'] = $accountSid;
- return $this;
- }
-
- /**
- * A 64 character string that is a human readable text that describes this resource.
- *
- * @param string $friendlyName A human readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID.
- *
- * @param string $uniqueName A unique, developer assigned name of this
- * HostedNumberOrder.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to.
- *
- * @param string $ccEmails A list of emails.
- * @return $this Fluent Builder
- */
- public function setCcEmails($ccEmails) {
- $this->options['ccEmails'] = $ccEmails;
- return $this;
- }
-
- /**
- * The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource.
- *
- * @param string $smsUrl SMS URL.
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource.
- *
- * @param string $smsMethod SMS Method.
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource.
- *
- * @param string $smsFallbackUrl SMS Fallback URL.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource.
- *
- * @param string $smsFallbackMethod SMS Fallback Method.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * Optional. The Status Callback URL attached to the IncomingPhoneNumber resource.
- *
- * @param string $statusCallbackUrl Status Callback URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackUrl($statusCallbackUrl) {
- $this->options['statusCallbackUrl'] = $statusCallbackUrl;
- return $this;
- }
-
- /**
- * Optional. The Status Callback Method attached to the IncomingPhoneNumber resource.
- *
- * @param string $statusCallbackMethod Status Callback Method.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application.
- *
- * @param string $smsApplicationSid SMS Application Sid.
- * @return $this Fluent Builder
- */
- public function setSmsApplicationSid($smsApplicationSid) {
- $this->options['smsApplicationSid'] = $smsApplicationSid;
- return $this;
- }
-
- /**
- * Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number.
- *
- * @param string $addressSid Address sid.
- * @return $this Fluent Builder
- */
- public function setAddressSid($addressSid) {
- $this->options['addressSid'] = $addressSid;
- return $this;
- }
-
- /**
- * Optional. Email of the owner of this phone number that is being hosted.
- *
- * @param string $email Email.
- * @return $this Fluent Builder
- */
- public function setEmail($email) {
- $this->options['email'] = $email;
- return $this;
- }
-
- /**
- * Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill.
- *
- * @param string $verificationType Verification Type.
- * @return $this Fluent Builder
- */
- public function setVerificationType($verificationType) {
- $this->options['verificationType'] = $verificationType;
- return $this;
- }
-
- /**
- * Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill.
- *
- * @param string $verificationDocumentSid Verification Document Sid
- * @return $this Fluent Builder
- */
- public function setVerificationDocumentSid($verificationDocumentSid) {
- $this->options['verificationDocumentSid'] = $verificationDocumentSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.HostedNumbers.CreateHostedNumberOrderOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderPage.php b/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderPage.php
deleted file mode 100644
index ae494c6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new HostedNumberOrderInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.HostedNumbers.HostedNumberOrderPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace.php
deleted file mode 100644
index 2cab351..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace.php
+++ /dev/null
@@ -1,100 +0,0 @@
-version = 'marketplace';
- }
-
- /**
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnList
- */
- protected function getAvailableAddOns() {
- if (!$this->_availableAddOns) {
- $this->_availableAddOns = new AvailableAddOnList($this);
- }
- return $this->_availableAddOns;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnList
- */
- protected function getInstalledAddOns() {
- if (!$this->_installedAddOns) {
- $this->_installedAddOns = new InstalledAddOnList($this);
- }
- return $this->_installedAddOns;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionContext.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionContext.php
deleted file mode 100644
index 01bc69b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionContext.php
+++ /dev/null
@@ -1,73 +0,0 @@
-solution = array('availableAddOnSid' => $availableAddOnSid, 'sid' => $sid, );
-
- $this->uri = '/AvailableAddOns/' . rawurlencode($availableAddOnSid) . '/Extensions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AvailableAddOnExtensionInstance
- *
- * @return AvailableAddOnExtensionInstance Fetched
- * AvailableAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AvailableAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['availableAddOnSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.AvailableAddOnExtensionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php
deleted file mode 100644
index 33051dd..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php
+++ /dev/null
@@ -1,118 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'availableAddOnSid' => Values::array_get($payload, 'available_add_on_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'productName' => Values::array_get($payload, 'product_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'availableAddOnSid' => $availableAddOnSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOn\AvailableAddOnExtensionContext Context for this
- * AvailableAddOnExtensionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AvailableAddOnExtensionContext(
- $this->version,
- $this->solution['availableAddOnSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AvailableAddOnExtensionInstance
- *
- * @return AvailableAddOnExtensionInstance Fetched
- * AvailableAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.AvailableAddOnExtensionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionList.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionList.php
deleted file mode 100644
index b8171bc..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionList.php
+++ /dev/null
@@ -1,147 +0,0 @@
-solution = array('availableAddOnSid' => $availableAddOnSid, );
-
- $this->uri = '/AvailableAddOns/' . rawurlencode($availableAddOnSid) . '/Extensions';
- }
-
- /**
- * Streams AvailableAddOnExtensionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AvailableAddOnExtensionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AvailableAddOnExtensionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AvailableAddOnExtensionInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AvailableAddOnExtensionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AvailableAddOnExtensionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AvailableAddOnExtensionInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AvailableAddOnExtensionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AvailableAddOnExtensionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AvailableAddOnExtensionContext
- *
- * @param string $sid The unique Extension Sid
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOn\AvailableAddOnExtensionContext
- */
- public function getContext($sid) {
- return new AvailableAddOnExtensionContext(
- $this->version,
- $this->solution['availableAddOnSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.AvailableAddOnExtensionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionPage.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionPage.php
deleted file mode 100644
index 81d2f7e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionPage.php
+++ /dev/null
@@ -1,41 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AvailableAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['availableAddOnSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.AvailableAddOnExtensionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php
deleted file mode 100644
index 2e597bd..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php
+++ /dev/null
@@ -1,119 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/AvailableAddOns/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AvailableAddOnInstance
- *
- * @return AvailableAddOnInstance Fetched AvailableAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AvailableAddOnInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the extensions
- *
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOn\AvailableAddOnExtensionList
- */
- protected function getExtensions() {
- if (!$this->_extensions) {
- $this->_extensions = new AvailableAddOnExtensionList($this->version, $this->solution['sid']);
- }
-
- return $this->_extensions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.AvailableAddOnContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnInstance.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnInstance.php
deleted file mode 100644
index 9dbd7e8..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnInstance.php
+++ /dev/null
@@ -1,123 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'description' => Values::array_get($payload, 'description'),
- 'pricingType' => Values::array_get($payload, 'pricing_type'),
- 'configurationSchema' => Values::array_get($payload, 'configuration_schema'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnContext Context for
- * this
- * AvailableAddOnInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AvailableAddOnContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AvailableAddOnInstance
- *
- * @return AvailableAddOnInstance Fetched AvailableAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the extensions
- *
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOn\AvailableAddOnExtensionList
- */
- protected function getExtensions() {
- return $this->proxy()->extensions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.AvailableAddOnInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnList.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnList.php
deleted file mode 100644
index 79ab3ee..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnList.php
+++ /dev/null
@@ -1,139 +0,0 @@
-solution = array();
-
- $this->uri = '/AvailableAddOns';
- }
-
- /**
- * Streams AvailableAddOnInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AvailableAddOnInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AvailableAddOnInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AvailableAddOnInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AvailableAddOnInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AvailableAddOnPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AvailableAddOnInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AvailableAddOnInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AvailableAddOnPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a AvailableAddOnContext
- *
- * @param string $sid The unique Available Add-on Sid
- * @return \Twilio\Rest\Preview\Marketplace\AvailableAddOnContext
- */
- public function getContext($sid) {
- return new AvailableAddOnContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.AvailableAddOnList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnPage.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnPage.php
deleted file mode 100644
index 9d35366..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/AvailableAddOnPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AvailableAddOnInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.AvailableAddOnPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php
deleted file mode 100644
index 6291b48..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php
+++ /dev/null
@@ -1,100 +0,0 @@
-solution = array('installedAddOnSid' => $installedAddOnSid, 'sid' => $sid, );
-
- $this->uri = '/InstalledAddOns/' . rawurlencode($installedAddOnSid) . '/Extensions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a InstalledAddOnExtensionInstance
- *
- * @return InstalledAddOnExtensionInstance Fetched
- * InstalledAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InstalledAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['installedAddOnSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the InstalledAddOnExtensionInstance
- *
- * @param boolean $enabled A Boolean indicating if the Extension will be invoked
- * @return InstalledAddOnExtensionInstance Updated
- * InstalledAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($enabled) {
- $data = Values::of(array('Enabled' => Serialize::booleanToString($enabled), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InstalledAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['installedAddOnSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.InstalledAddOnExtensionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php
deleted file mode 100644
index 62cd3be..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php
+++ /dev/null
@@ -1,132 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'installedAddOnSid' => Values::array_get($payload, 'installed_add_on_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'productName' => Values::array_get($payload, 'product_name'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'installedAddOnSid' => $installedAddOnSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOn\InstalledAddOnExtensionContext Context for this
- * InstalledAddOnExtensionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InstalledAddOnExtensionContext(
- $this->version,
- $this->solution['installedAddOnSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a InstalledAddOnExtensionInstance
- *
- * @return InstalledAddOnExtensionInstance Fetched
- * InstalledAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the InstalledAddOnExtensionInstance
- *
- * @param boolean $enabled A Boolean indicating if the Extension will be invoked
- * @return InstalledAddOnExtensionInstance Updated
- * InstalledAddOnExtensionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($enabled) {
- return $this->proxy()->update($enabled);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.InstalledAddOnExtensionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionList.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionList.php
deleted file mode 100644
index addcc7c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionList.php
+++ /dev/null
@@ -1,147 +0,0 @@
-solution = array('installedAddOnSid' => $installedAddOnSid, );
-
- $this->uri = '/InstalledAddOns/' . rawurlencode($installedAddOnSid) . '/Extensions';
- }
-
- /**
- * Streams InstalledAddOnExtensionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InstalledAddOnExtensionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InstalledAddOnExtensionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InstalledAddOnExtensionInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InstalledAddOnExtensionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InstalledAddOnExtensionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InstalledAddOnExtensionInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InstalledAddOnExtensionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InstalledAddOnExtensionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InstalledAddOnExtensionContext
- *
- * @param string $sid The unique Extension Sid
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOn\InstalledAddOnExtensionContext
- */
- public function getContext($sid) {
- return new InstalledAddOnExtensionContext(
- $this->version,
- $this->solution['installedAddOnSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.InstalledAddOnExtensionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionPage.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionPage.php
deleted file mode 100644
index deb5e1e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionPage.php
+++ /dev/null
@@ -1,41 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InstalledAddOnExtensionInstance(
- $this->version,
- $payload,
- $this->solution['installedAddOnSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.InstalledAddOnExtensionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php
deleted file mode 100644
index 8a05fb9..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php
+++ /dev/null
@@ -1,156 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/InstalledAddOns/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the InstalledAddOnInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a InstalledAddOnInstance
- *
- * @return InstalledAddOnInstance Fetched InstalledAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InstalledAddOnInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the InstalledAddOnInstance
- *
- * @param array|Options $options Optional Arguments
- * @return InstalledAddOnInstance Updated InstalledAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Configuration' => Serialize::jsonObject($options['configuration']),
- 'UniqueName' => $options['uniqueName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InstalledAddOnInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the extensions
- *
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOn\InstalledAddOnExtensionList
- */
- protected function getExtensions() {
- if (!$this->_extensions) {
- $this->_extensions = new InstalledAddOnExtensionList($this->version, $this->solution['sid']);
- }
-
- return $this->_extensions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.InstalledAddOnContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php
deleted file mode 100644
index 83f647f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'description' => Values::array_get($payload, 'description'),
- 'configuration' => Values::array_get($payload, 'configuration'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnContext Context for
- * this
- * InstalledAddOnInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InstalledAddOnContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the InstalledAddOnInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a InstalledAddOnInstance
- *
- * @return InstalledAddOnInstance Fetched InstalledAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the InstalledAddOnInstance
- *
- * @param array|Options $options Optional Arguments
- * @return InstalledAddOnInstance Updated InstalledAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the extensions
- *
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOn\InstalledAddOnExtensionList
- */
- protected function getExtensions() {
- return $this->proxy()->extensions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Marketplace.InstalledAddOnInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnList.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnList.php
deleted file mode 100644
index cce4b98..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array();
-
- $this->uri = '/InstalledAddOns';
- }
-
- /**
- * Create a new InstalledAddOnInstance
- *
- * @param string $availableAddOnSid A string that uniquely identifies the
- * Add-on to install
- * @param boolean $acceptTermsOfService A boolean reflecting your acceptance of
- * the Terms of Service
- * @param array|Options $options Optional Arguments
- * @return InstalledAddOnInstance Newly created InstalledAddOnInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($availableAddOnSid, $acceptTermsOfService, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'AvailableAddOnSid' => $availableAddOnSid,
- 'AcceptTermsOfService' => Serialize::booleanToString($acceptTermsOfService),
- 'Configuration' => Serialize::jsonObject($options['configuration']),
- 'UniqueName' => $options['uniqueName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new InstalledAddOnInstance($this->version, $payload);
- }
-
- /**
- * Streams InstalledAddOnInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InstalledAddOnInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InstalledAddOnInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InstalledAddOnInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InstalledAddOnInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InstalledAddOnPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InstalledAddOnInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InstalledAddOnInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InstalledAddOnPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InstalledAddOnContext
- *
- * @param string $sid The unique Installed Add-on Sid
- * @return \Twilio\Rest\Preview\Marketplace\InstalledAddOnContext
- */
- public function getContext($sid) {
- return new InstalledAddOnContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.InstalledAddOnList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
deleted file mode 100644
index e1e40ad..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.php
+++ /dev/null
@@ -1,138 +0,0 @@
-options['configuration'] = $configuration;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * The JSON object representing the configuration of the new Add-on installation.
- *
- * @param array $configuration The JSON object representing the configuration
- * @return $this Fluent Builder
- */
- public function setConfiguration($configuration) {
- $this->options['configuration'] = $configuration;
- return $this;
- }
-
- /**
- * The human-readable string that uniquely identifies this Add-on installation for an Account.
- *
- * @param string $uniqueName The string that uniquely identifies this Add-on
- * installation
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Marketplace.CreateInstalledAddOnOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateInstalledAddOnOptions extends Options {
- /**
- * @param array $configuration The JSON object representing the configuration
- * @param string $uniqueName The string that uniquely identifies this Add-on
- * installation
- */
- public function __construct($configuration = Values::NONE, $uniqueName = Values::NONE) {
- $this->options['configuration'] = $configuration;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * Valid JSON object that conform to the configuration schema exposed by the associated Available Add-on resource. This is only required by Add-ons that need to be configured
- *
- * @param array $configuration The JSON object representing the configuration
- * @return $this Fluent Builder
- */
- public function setConfiguration($configuration) {
- $this->options['configuration'] = $configuration;
- return $this;
- }
-
- /**
- * The human-readable string that uniquely identifies this Add-on installation for an Account.
- *
- * @param string $uniqueName The string that uniquely identifies this Add-on
- * installation
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Marketplace.UpdateInstalledAddOnOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnPage.php b/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnPage.php
deleted file mode 100644
index 12a2ce9..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Marketplace/InstalledAddOnPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InstalledAddOnInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Marketplace.InstalledAddOnPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync.php b/public/twilio-php/Twilio/Rest/Preview/Sync.php
deleted file mode 100644
index 23ce91f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'Sync';
- }
-
- /**
- * @return \Twilio\Rest\Preview\Sync\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionContext.php
deleted file mode 100644
index e05b684..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionContext.php
+++ /dev/null
@@ -1,122 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'documentSid' => $documentSid,
- 'identity' => $identity,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($documentSid) . '/Permissions/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a DocumentPermissionInstance
- *
- * @return DocumentPermissionInstance Fetched DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Deletes the DocumentPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the DocumentPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return DocumentPermissionInstance Updated DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- $data = Values::of(array(
- 'Read' => Serialize::booleanToString($read),
- 'Write' => Serialize::booleanToString($write),
- 'Manage' => Serialize::booleanToString($manage),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DocumentPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.DocumentPermissionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php
deleted file mode 100644
index 095fd74..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'documentSid' => Values::array_get($payload, 'document_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'read' => Values::array_get($payload, 'read'),
- 'write' => Values::array_get($payload, 'write'),
- 'manage' => Values::array_get($payload, 'manage'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'documentSid' => $documentSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\Document\DocumentPermissionContext Context for this DocumentPermissionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DocumentPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DocumentPermissionInstance
- *
- * @return DocumentPermissionInstance Fetched DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the DocumentPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the DocumentPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return DocumentPermissionInstance Updated DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- return $this->proxy()->update($read, $write, $manage);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.DocumentPermissionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionList.php
deleted file mode 100644
index ffbcfac..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'documentSid' => $documentSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($documentSid) . '/Permissions';
- }
-
- /**
- * Streams DocumentPermissionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DocumentPermissionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DocumentPermissionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DocumentPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DocumentPermissionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DocumentPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DocumentPermissionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DocumentPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a DocumentPermissionContext
- *
- * @param string $identity Identity of the user to whom the Sync Document
- * Permission applies.
- * @return \Twilio\Rest\Preview\Sync\Service\Document\DocumentPermissionContext
- */
- public function getContext($identity) {
- return new DocumentPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $identity
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.DocumentPermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionPage.php
deleted file mode 100644
index b9ce1b1..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DocumentPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['documentSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.DocumentPermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentContext.php
deleted file mode 100644
index 6d3f255..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentContext.php
+++ /dev/null
@@ -1,165 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a DocumentInstance
- *
- * @return DocumentInstance Fetched DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the DocumentInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the DocumentInstance
- *
- * @param array $data The data
- * @return DocumentInstance Updated DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($data) {
- $data = Values::of(array('Data' => Serialize::jsonObject($data), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DocumentInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the documentPermissions
- *
- * @return \Twilio\Rest\Preview\Sync\Service\Document\DocumentPermissionList
- */
- protected function getDocumentPermissions() {
- if (!$this->_documentPermissions) {
- $this->_documentPermissions = new DocumentPermissionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_documentPermissions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.DocumentContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentInstance.php
deleted file mode 100644
index 0b78e88..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentInstance.php
+++ /dev/null
@@ -1,157 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'data' => Values::array_get($payload, 'data'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\DocumentContext Context for this
- * DocumentInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DocumentContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DocumentInstance
- *
- * @return DocumentInstance Fetched DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the DocumentInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the DocumentInstance
- *
- * @param array $data The data
- * @return DocumentInstance Updated DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($data) {
- return $this->proxy()->update($data);
- }
-
- /**
- * Access the documentPermissions
- *
- * @return \Twilio\Rest\Preview\Sync\Service\Document\DocumentPermissionList
- */
- protected function getDocumentPermissions() {
- return $this->proxy()->documentPermissions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.DocumentInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentList.php
deleted file mode 100644
index 58d0d64..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentList.php
+++ /dev/null
@@ -1,167 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents';
- }
-
- /**
- * Create a new DocumentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DocumentInstance Newly created DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'Data' => Serialize::jsonObject($options['data']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DocumentInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams DocumentInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DocumentInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DocumentInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DocumentInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DocumentInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DocumentInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DocumentInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DocumentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a DocumentContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Sync\Service\DocumentContext
- */
- public function getContext($sid) {
- return new DocumentContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.DocumentList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentOptions.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentOptions.php
deleted file mode 100644
index d267ed2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['data'] = $data;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The data
- *
- * @param array $data The data
- * @return $this Fluent Builder
- */
- public function setData($data) {
- $this->options['data'] = $data;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.CreateDocumentOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentPage.php
deleted file mode 100644
index 21e0274..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/DocumentPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DocumentInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.DocumentPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemContext.php
deleted file mode 100644
index 2c40cd7..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'listSid' => $listSid, 'index' => $index, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Items/' . rawurlencode($index) . '';
- }
-
- /**
- * Fetch a SyncListItemInstance
- *
- * @return SyncListItemInstance Fetched SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['index']
- );
- }
-
- /**
- * Deletes the SyncListItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncListItemInstance
- *
- * @param array $data The data
- * @return SyncListItemInstance Updated SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($data) {
- $data = Values::of(array('Data' => Serialize::jsonObject($data), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['index']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncListItemContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemInstance.php
deleted file mode 100644
index 9a3dc21..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemInstance.php
+++ /dev/null
@@ -1,149 +0,0 @@
-properties = array(
- 'index' => Values::array_get($payload, 'index'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'listSid' => Values::array_get($payload, 'list_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'data' => Values::array_get($payload, 'data'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'listSid' => $listSid,
- 'index' => $index ?: $this->properties['index'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListItemContext Context for this SyncListItemInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncListItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['index']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncListItemInstance
- *
- * @return SyncListItemInstance Fetched SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncListItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncListItemInstance
- *
- * @param array $data The data
- * @return SyncListItemInstance Updated SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($data) {
- return $this->proxy()->update($data);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncListItemInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemList.php
deleted file mode 100644
index 5dd80d9..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'listSid' => $listSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Items';
- }
-
- /**
- * Create a new SyncListItemInstance
- *
- * @param array $data The data
- * @return SyncListItemInstance Newly created SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($data) {
- $data = Values::of(array('Data' => Serialize::jsonObject($data), ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid']
- );
- }
-
- /**
- * Streams SyncListItemInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncListItemInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncListItemInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncListItemInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncListItemInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'From' => $options['from'],
- 'Bounds' => $options['bounds'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncListItemInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncListItemInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncListItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncListItemContext
- *
- * @param integer $index The index
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListItemContext
- */
- public function getContext($index) {
- return new SyncListItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $index
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncListItemList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.php
deleted file mode 100644
index 39a90a1..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.php
+++ /dev/null
@@ -1,89 +0,0 @@
-options['order'] = $order;
- $this->options['from'] = $from;
- $this->options['bounds'] = $bounds;
- }
-
- /**
- * The order
- *
- * @param string $order The order
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * The from
- *
- * @param string $from The from
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The bounds
- *
- * @param string $bounds The bounds
- * @return $this Fluent Builder
- */
- public function setBounds($bounds) {
- $this->options['bounds'] = $bounds;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.ReadSyncListItemOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemPage.php
deleted file mode 100644
index 4b24bc2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncListItemPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionContext.php
deleted file mode 100644
index 0a90e96..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionContext.php
+++ /dev/null
@@ -1,122 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'listSid' => $listSid,
- 'identity' => $identity,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Permissions/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a SyncListPermissionInstance
- *
- * @return SyncListPermissionInstance Fetched SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Deletes the SyncListPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncListPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncListPermissionInstance Updated SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- $data = Values::of(array(
- 'Read' => Serialize::booleanToString($read),
- 'Write' => Serialize::booleanToString($write),
- 'Manage' => Serialize::booleanToString($manage),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncListPermissionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionInstance.php
deleted file mode 100644
index d5e813c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'listSid' => Values::array_get($payload, 'list_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'read' => Values::array_get($payload, 'read'),
- 'write' => Values::array_get($payload, 'write'),
- 'manage' => Values::array_get($payload, 'manage'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'listSid' => $listSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListPermissionContext Context for this SyncListPermissionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncListPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncListPermissionInstance
- *
- * @return SyncListPermissionInstance Fetched SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncListPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncListPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncListPermissionInstance Updated SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- return $this->proxy()->update($read, $write, $manage);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncListPermissionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php
deleted file mode 100644
index b6d42f3..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'listSid' => $listSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Permissions';
- }
-
- /**
- * Streams SyncListPermissionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncListPermissionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncListPermissionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncListPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncListPermissionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncListPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncListPermissionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncListPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncListPermissionContext
- *
- * @param string $identity Identity of the user to whom the Sync List
- * Permission applies.
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListPermissionContext
- */
- public function getContext($identity) {
- return new SyncListPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $identity
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncListPermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionPage.php
deleted file mode 100644
index fb1465e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncListPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncListPermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListContext.php
deleted file mode 100644
index badf84e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListContext.php
+++ /dev/null
@@ -1,160 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SyncListInstance
- *
- * @return SyncListInstance Fetched SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SyncListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the syncListItems
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListItemList
- */
- protected function getSyncListItems() {
- if (!$this->_syncListItems) {
- $this->_syncListItems = new SyncListItemList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncListItems;
- }
-
- /**
- * Access the syncListPermissions
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListPermissionList
- */
- protected function getSyncListPermissions() {
- if (!$this->_syncListPermissions) {
- $this->_syncListPermissions = new SyncListPermissionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncListPermissions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncListContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListInstance.php
deleted file mode 100644
index 1c421db..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncListContext Context for this
- * SyncListInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncListContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncListInstance
- *
- * @return SyncListInstance Fetched SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the syncListItems
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListItemList
- */
- protected function getSyncListItems() {
- return $this->proxy()->syncListItems;
- }
-
- /**
- * Access the syncListPermissions
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListPermissionList
- */
- protected function getSyncListPermissions() {
- return $this->proxy()->syncListPermissions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncListInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListList.php
deleted file mode 100644
index 40898bc..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListList.php
+++ /dev/null
@@ -1,163 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists';
- }
-
- /**
- * Create a new SyncListInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncListInstance Newly created SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams SyncListInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncListInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncListInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncListInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncListInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncListInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncListInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncListContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Sync\Service\SyncListContext
- */
- public function getContext($sid) {
- return new SyncListContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncListList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListOptions.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListOptions.php
deleted file mode 100644
index fbac393..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['uniqueName'] = $uniqueName;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.CreateSyncListOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListPage.php
deleted file mode 100644
index 5f9b99e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncListPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncListInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncListPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemContext.php
deleted file mode 100644
index 57a6995..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, 'key' => $key, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Items/' . rawurlencode($key) . '';
- }
-
- /**
- * Fetch a SyncMapItemInstance
- *
- * @return SyncMapItemInstance Fetched SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['key']
- );
- }
-
- /**
- * Deletes the SyncMapItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncMapItemInstance
- *
- * @param array $data The data
- * @return SyncMapItemInstance Updated SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($data) {
- $data = Values::of(array('Data' => Serialize::jsonObject($data), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['key']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncMapItemContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemInstance.php
deleted file mode 100644
index f7c01a3..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'key' => Values::array_get($payload, 'key'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'mapSid' => Values::array_get($payload, 'map_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'data' => Values::array_get($payload, 'data'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'mapSid' => $mapSid,
- 'key' => $key ?: $this->properties['key'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemContext Context
- * for
- * this
- * SyncMapItemInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncMapItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['key']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncMapItemInstance
- *
- * @return SyncMapItemInstance Fetched SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncMapItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncMapItemInstance
- *
- * @param array $data The data
- * @return SyncMapItemInstance Updated SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($data) {
- return $this->proxy()->update($data);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncMapItemInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php
deleted file mode 100644
index a589d05..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Items';
- }
-
- /**
- * Create a new SyncMapItemInstance
- *
- * @param string $key The key
- * @param array $data The data
- * @return SyncMapItemInstance Newly created SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($key, $data) {
- $data = Values::of(array('Key' => $key, 'Data' => Serialize::jsonObject($data), ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid']
- );
- }
-
- /**
- * Streams SyncMapItemInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncMapItemInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncMapItemInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncMapItemInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncMapItemInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'From' => $options['from'],
- 'Bounds' => $options['bounds'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncMapItemInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncMapItemInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncMapItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncMapItemContext
- *
- * @param string $key The key
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemContext
- */
- public function getContext($key) {
- return new SyncMapItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $key
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncMapItemList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.php
deleted file mode 100644
index d47d6e5..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.php
+++ /dev/null
@@ -1,89 +0,0 @@
-options['order'] = $order;
- $this->options['from'] = $from;
- $this->options['bounds'] = $bounds;
- }
-
- /**
- * The order
- *
- * @param string $order The order
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * The from
- *
- * @param string $from The from
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The bounds
- *
- * @param string $bounds The bounds
- * @return $this Fluent Builder
- */
- public function setBounds($bounds) {
- $this->options['bounds'] = $bounds;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.ReadSyncMapItemOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemPage.php
deleted file mode 100644
index 64416b2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncMapItemPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionContext.php
deleted file mode 100644
index 8b0e4d2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, 'identity' => $identity, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Permissions/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a SyncMapPermissionInstance
- *
- * @return SyncMapPermissionInstance Fetched SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Deletes the SyncMapPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncMapPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncMapPermissionInstance Updated SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- $data = Values::of(array(
- 'Read' => Serialize::booleanToString($read),
- 'Write' => Serialize::booleanToString($write),
- 'Manage' => Serialize::booleanToString($manage),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncMapPermissionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php
deleted file mode 100644
index abaa24c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'mapSid' => Values::array_get($payload, 'map_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'read' => Values::array_get($payload, 'read'),
- 'write' => Values::array_get($payload, 'write'),
- 'manage' => Values::array_get($payload, 'manage'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'mapSid' => $mapSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionContext Context for this SyncMapPermissionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncMapPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncMapPermissionInstance
- *
- * @return SyncMapPermissionInstance Fetched SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncMapPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncMapPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncMapPermissionInstance Updated SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- return $this->proxy()->update($read, $write, $manage);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncMapPermissionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionList.php
deleted file mode 100644
index 1f9457e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionList.php
+++ /dev/null
@@ -1,147 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Permissions';
- }
-
- /**
- * Streams SyncMapPermissionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncMapPermissionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncMapPermissionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncMapPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncMapPermissionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncMapPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncMapPermissionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncMapPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncMapPermissionContext
- *
- * @param string $identity Identity of the user to whom the Sync Map Permission
- * applies.
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionContext
- */
- public function getContext($identity) {
- return new SyncMapPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $identity
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncMapPermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionPage.php
deleted file mode 100644
index 4894dc3..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncMapPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncMapPermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
deleted file mode 100644
index 32f25c4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
+++ /dev/null
@@ -1,160 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SyncMapInstance
- *
- * @return SyncMapInstance Fetched SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SyncMapInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the syncMapItems
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemList
- */
- protected function getSyncMapItems() {
- if (!$this->_syncMapItems) {
- $this->_syncMapItems = new SyncMapItemList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncMapItems;
- }
-
- /**
- * Access the syncMapPermissions
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionList
- */
- protected function getSyncMapPermissions() {
- if (!$this->_syncMapPermissions) {
- $this->_syncMapPermissions = new SyncMapPermissionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncMapPermissions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncMapContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapInstance.php
deleted file mode 100644
index 862f0bf..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMapContext Context for this
- * SyncMapInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncMapContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncMapInstance
- *
- * @return SyncMapInstance Fetched SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncMapInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the syncMapItems
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemList
- */
- protected function getSyncMapItems() {
- return $this->proxy()->syncMapItems;
- }
-
- /**
- * Access the syncMapPermissions
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionList
- */
- protected function getSyncMapPermissions() {
- return $this->proxy()->syncMapPermissions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.SyncMapInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapList.php
deleted file mode 100644
index 8f27f74..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapList.php
+++ /dev/null
@@ -1,163 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps';
- }
-
- /**
- * Create a new SyncMapInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncMapInstance Newly created SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams SyncMapInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncMapInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncMapInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncMapInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncMapInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncMapInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncMapInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncMapPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncMapContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMapContext
- */
- public function getContext($sid) {
- return new SyncMapContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncMapList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.php
deleted file mode 100644
index 45df7fe..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['uniqueName'] = $uniqueName;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.CreateSyncMapOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapPage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapPage.php
deleted file mode 100644
index c98be04..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/Service/SyncMapPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncMapInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.SyncMapPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceContext.php b/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceContext.php
deleted file mode 100644
index 0f603a6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceContext.php
+++ /dev/null
@@ -1,192 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'WebhookUrl' => $options['webhookUrl'],
- 'FriendlyName' => $options['friendlyName'],
- 'ReachabilityWebhooksEnabled' => Serialize::booleanToString($options['reachabilityWebhooksEnabled']),
- 'AclEnabled' => Serialize::booleanToString($options['aclEnabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the documents
- *
- * @return \Twilio\Rest\Preview\Sync\Service\DocumentList
- */
- protected function getDocuments() {
- if (!$this->_documents) {
- $this->_documents = new DocumentList($this->version, $this->solution['sid']);
- }
-
- return $this->_documents;
- }
-
- /**
- * Access the syncLists
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncListList
- */
- protected function getSyncLists() {
- if (!$this->_syncLists) {
- $this->_syncLists = new SyncListList($this->version, $this->solution['sid']);
- }
-
- return $this->_syncLists;
- }
-
- /**
- * Access the syncMaps
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMapList
- */
- protected function getSyncMaps() {
- if (!$this->_syncMaps) {
- $this->_syncMaps = new SyncMapList($this->version, $this->solution['sid']);
- }
-
- return $this->_syncMaps;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceInstance.php
deleted file mode 100644
index ebd9dd7..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceInstance.php
+++ /dev/null
@@ -1,171 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'webhookUrl' => Values::array_get($payload, 'webhook_url'),
- 'reachabilityWebhooksEnabled' => Values::array_get($payload, 'reachability_webhooks_enabled'),
- 'aclEnabled' => Values::array_get($payload, 'acl_enabled'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Sync\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the documents
- *
- * @return \Twilio\Rest\Preview\Sync\Service\DocumentList
- */
- protected function getDocuments() {
- return $this->proxy()->documents;
- }
-
- /**
- * Access the syncLists
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncListList
- */
- protected function getSyncLists() {
- return $this->proxy()->syncLists;
- }
-
- /**
- * Access the syncMaps
- *
- * @return \Twilio\Rest\Preview\Sync\Service\SyncMapList
- */
- protected function getSyncMaps() {
- return $this->proxy()->syncMaps;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Sync.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceList.php b/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceList.php
deleted file mode 100644
index ebcb127..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'WebhookUrl' => $options['webhookUrl'],
- 'ReachabilityWebhooksEnabled' => Serialize::booleanToString($options['reachabilityWebhooksEnabled']),
- 'AclEnabled' => Serialize::booleanToString($options['aclEnabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Sync\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceOptions.php
deleted file mode 100644
index f34a966..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/ServiceOptions.php
+++ /dev/null
@@ -1,188 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['webhookUrl'] = $webhookUrl;
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- $this->options['aclEnabled'] = $aclEnabled;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The webhook_url
- *
- * @param string $webhookUrl The webhook_url
- * @return $this Fluent Builder
- */
- public function setWebhookUrl($webhookUrl) {
- $this->options['webhookUrl'] = $webhookUrl;
- return $this;
- }
-
- /**
- * The reachability_webhooks_enabled
- *
- * @param boolean $reachabilityWebhooksEnabled The reachability_webhooks_enabled
- * @return $this Fluent Builder
- */
- public function setReachabilityWebhooksEnabled($reachabilityWebhooksEnabled) {
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- return $this;
- }
-
- /**
- * The acl_enabled
- *
- * @param boolean $aclEnabled The acl_enabled
- * @return $this Fluent Builder
- */
- public function setAclEnabled($aclEnabled) {
- $this->options['aclEnabled'] = $aclEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $webhookUrl The webhook_url
- * @param string $friendlyName The friendly_name
- * @param boolean $reachabilityWebhooksEnabled The reachability_webhooks_enabled
- * @param boolean $aclEnabled The acl_enabled
- */
- public function __construct($webhookUrl = Values::NONE, $friendlyName = Values::NONE, $reachabilityWebhooksEnabled = Values::NONE, $aclEnabled = Values::NONE) {
- $this->options['webhookUrl'] = $webhookUrl;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- $this->options['aclEnabled'] = $aclEnabled;
- }
-
- /**
- * The webhook_url
- *
- * @param string $webhookUrl The webhook_url
- * @return $this Fluent Builder
- */
- public function setWebhookUrl($webhookUrl) {
- $this->options['webhookUrl'] = $webhookUrl;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The reachability_webhooks_enabled
- *
- * @param boolean $reachabilityWebhooksEnabled The reachability_webhooks_enabled
- * @return $this Fluent Builder
- */
- public function setReachabilityWebhooksEnabled($reachabilityWebhooksEnabled) {
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- return $this;
- }
-
- /**
- * The acl_enabled
- *
- * @param boolean $aclEnabled The acl_enabled
- * @return $this Fluent Builder
- */
- public function setAclEnabled($aclEnabled) {
- $this->options['aclEnabled'] = $aclEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Sync.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Sync/ServicePage.php b/public/twilio-php/Twilio/Rest/Preview/Sync/ServicePage.php
deleted file mode 100644
index 18bb03d..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Sync/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Sync.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand.php b/public/twilio-php/Twilio/Rest/Preview/Understand.php
deleted file mode 100644
index a11b814..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'understand';
- }
-
- /**
- * @return \Twilio\Rest\Preview\Understand\AssistantList
- */
- protected function getAssistants() {
- if (!$this->_assistants) {
- $this->_assistants = new AssistantList($this);
- }
- return $this->_assistants;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsContext.php
deleted file mode 100644
index dd59c17..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsContext.php
+++ /dev/null
@@ -1,100 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FallbackActions';
- }
-
- /**
- * Fetch a AssistantFallbackActionsInstance
- *
- * @return AssistantFallbackActionsInstance Fetched
- * AssistantFallbackActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssistantFallbackActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid']
- );
- }
-
- /**
- * Update the AssistantFallbackActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantFallbackActionsInstance Updated
- * AssistantFallbackActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FallbackActions' => Serialize::jsonObject($options['fallbackActions']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssistantFallbackActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.AssistantFallbackActionsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsInstance.php
deleted file mode 100644
index 39b5775..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsInstance.php
+++ /dev/null
@@ -1,122 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantFallbackActionsContext Context for this
- * AssistantFallbackActionsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AssistantFallbackActionsContext(
- $this->version,
- $this->solution['assistantSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AssistantFallbackActionsInstance
- *
- * @return AssistantFallbackActionsInstance Fetched
- * AssistantFallbackActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AssistantFallbackActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantFallbackActionsInstance Updated
- * AssistantFallbackActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.AssistantFallbackActionsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsList.php
deleted file mode 100644
index dfe15cd..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a AssistantFallbackActionsContext
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantFallbackActionsContext
- */
- public function getContext() {
- return new AssistantFallbackActionsContext($this->version, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.AssistantFallbackActionsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.php
deleted file mode 100644
index 2bbb983..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['fallbackActions'] = $fallbackActions;
- }
-
- /**
- * The fallback_actions
- *
- * @param array $fallbackActions The fallback_actions
- * @return $this Fluent Builder
- */
- public function setFallbackActions($fallbackActions) {
- $this->options['fallbackActions'] = $fallbackActions;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateAssistantFallbackActionsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsPage.php
deleted file mode 100644
index ba0ac64..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsPage.php
+++ /dev/null
@@ -1,41 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AssistantFallbackActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.AssistantFallbackActionsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsContext.php
deleted file mode 100644
index 80e3a1f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsContext.php
+++ /dev/null
@@ -1,102 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/InitiationActions';
- }
-
- /**
- * Fetch a AssistantInitiationActionsInstance
- *
- * @return AssistantInitiationActionsInstance Fetched
- * AssistantInitiationActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssistantInitiationActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid']
- );
- }
-
- /**
- * Update the AssistantInitiationActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInitiationActionsInstance Updated
- * AssistantInitiationActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'InitiationActions' => Serialize::jsonObject($options['initiationActions']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssistantInitiationActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.AssistantInitiationActionsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsInstance.php
deleted file mode 100644
index 6ea1970..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsInstance.php
+++ /dev/null
@@ -1,122 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantInitiationActionsContext Context for this
- * AssistantInitiationActionsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AssistantInitiationActionsContext(
- $this->version,
- $this->solution['assistantSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AssistantInitiationActionsInstance
- *
- * @return AssistantInitiationActionsInstance Fetched
- * AssistantInitiationActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AssistantInitiationActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInitiationActionsInstance Updated
- * AssistantInitiationActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.AssistantInitiationActionsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsList.php
deleted file mode 100644
index 54f7bd5..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a AssistantInitiationActionsContext
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantInitiationActionsContext
- */
- public function getContext() {
- return new AssistantInitiationActionsContext($this->version, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.AssistantInitiationActionsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.php
deleted file mode 100644
index b95fa84..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['initiationActions'] = $initiationActions;
- }
-
- /**
- * The initiation_actions
- *
- * @param array $initiationActions The initiation_actions
- * @return $this Fluent Builder
- */
- public function setInitiationActions($initiationActions) {
- $this->options['initiationActions'] = $initiationActions;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateAssistantInitiationActionsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsPage.php
deleted file mode 100644
index d6d4d93..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsPage.php
+++ /dev/null
@@ -1,41 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AssistantInitiationActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.AssistantInitiationActionsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueContext.php
deleted file mode 100644
index 4de6447..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Dialogues/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a DialogueInstance
- *
- * @return DialogueInstance Fetched DialogueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DialogueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.DialogueContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueInstance.php
deleted file mode 100644
index 66120be..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueInstance.php
+++ /dev/null
@@ -1,113 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'data' => Values::array_get($payload, 'data'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\DialogueContext Context
- * for this
- * DialogueInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DialogueContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DialogueInstance
- *
- * @return DialogueInstance Fetched DialogueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.DialogueInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueList.php
deleted file mode 100644
index 0e265d1..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialogueList.php
+++ /dev/null
@@ -1,51 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a DialogueContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Understand\Assistant\DialogueContext
- */
- public function getContext($sid) {
- return new DialogueContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.DialogueList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialoguePage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialoguePage.php
deleted file mode 100644
index cc18dbf..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/DialoguePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DialogueInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.DialoguePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueContext.php
deleted file mode 100644
index 46ea075..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueContext.php
+++ /dev/null
@@ -1,88 +0,0 @@
-solution = array(
- 'assistantSid' => $assistantSid,
- 'fieldTypeSid' => $fieldTypeSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes/' . rawurlencode($fieldTypeSid) . '/FieldValues/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FieldValueInstance
- *
- * @return FieldValueInstance Fetched FieldValueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldValueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FieldValueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.FieldValueContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueInstance.php
deleted file mode 100644
index aa2c4fd..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'fieldTypeSid' => Values::array_get($payload, 'field_type_sid'),
- 'language' => Values::array_get($payload, 'language'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'value' => Values::array_get($payload, 'value'),
- 'url' => Values::array_get($payload, 'url'),
- 'synonymOf' => Values::array_get($payload, 'synonym_of'),
- );
-
- $this->solution = array(
- 'assistantSid' => $assistantSid,
- 'fieldTypeSid' => $fieldTypeSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldType\FieldValueContext Context for this
- * FieldValueInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FieldValueContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FieldValueInstance
- *
- * @return FieldValueInstance Fetched FieldValueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FieldValueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.FieldValueInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueList.php
deleted file mode 100644
index 0f956d2..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueList.php
+++ /dev/null
@@ -1,188 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'fieldTypeSid' => $fieldTypeSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes/' . rawurlencode($fieldTypeSid) . '/FieldValues';
- }
-
- /**
- * Streams FieldValueInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FieldValueInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FieldValueInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FieldValueInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FieldValueInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Language' => $options['language'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldValuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FieldValueInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FieldValueInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FieldValuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FieldValueInstance
- *
- * @param string $language An ISO language-country string of the value.
- * @param string $value A user-provided string that uniquely identifies this
- * resource as an alternative to the sid. Unique up to 64
- * characters long.
- * @param array|Options $options Optional Arguments
- * @return FieldValueInstance Newly created FieldValueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($language, $value, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $language,
- 'Value' => $value,
- 'SynonymOf' => $options['synonymOf'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldValueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid']
- );
- }
-
- /**
- * Constructs a FieldValueContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldType\FieldValueContext
- */
- public function getContext($sid) {
- return new FieldValueContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.FieldValueList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.php
deleted file mode 100644
index c4e09f4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.php
+++ /dev/null
@@ -1,110 +0,0 @@
-options['language'] = $language;
- }
-
- /**
- * An ISO language-country string of the value. For example: *en-US*
- *
- * @param string $language An ISO language-country string of the value. For
- * example: en-US
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.ReadFieldValueOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateFieldValueOptions extends Options {
- /**
- * @param string $synonymOf A value that indicates this field value is a
- * synonym of. Empty if the value is not a synonym.
- */
- public function __construct($synonymOf = Values::NONE) {
- $this->options['synonymOf'] = $synonymOf;
- }
-
- /**
- * A value that indicates this field value is a synonym of. Empty if the value is not a synonym.
- *
- * @param string $synonymOf A value that indicates this field value is a
- * synonym of. Empty if the value is not a synonym.
- * @return $this Fluent Builder
- */
- public function setSynonymOf($synonymOf) {
- $this->options['synonymOf'] = $synonymOf;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateFieldValueOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValuePage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValuePage.php
deleted file mode 100644
index 0671ef6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValuePage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FieldValueInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['fieldTypeSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.FieldValuePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeContext.php
deleted file mode 100644
index 0627131..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeContext.php
+++ /dev/null
@@ -1,170 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FieldTypeInstance
- *
- * @return FieldTypeInstance Fetched FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldTypeInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the FieldTypeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FieldTypeInstance Updated FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldTypeInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FieldTypeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the fieldValues
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldType\FieldValueList
- */
- protected function getFieldValues() {
- if (!$this->_fieldValues) {
- $this->_fieldValues = new FieldValueList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_fieldValues;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.FieldTypeContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeInstance.php
deleted file mode 100644
index 8bad37f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeInstance.php
+++ /dev/null
@@ -1,155 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'links' => Values::array_get($payload, 'links'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldTypeContext Context
- * for this
- * FieldTypeInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FieldTypeContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FieldTypeInstance
- *
- * @return FieldTypeInstance Fetched FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the FieldTypeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return FieldTypeInstance Updated FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the FieldTypeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the fieldValues
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldType\FieldValueList
- */
- protected function getFieldValues() {
- return $this->proxy()->fieldValues;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.FieldTypeInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeList.php
deleted file mode 100644
index b31022e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeList.php
+++ /dev/null
@@ -1,166 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/FieldTypes';
- }
-
- /**
- * Streams FieldTypeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FieldTypeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FieldTypeInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FieldTypeInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FieldTypeInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldTypePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FieldTypeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FieldTypeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FieldTypePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FieldTypeInstance
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param array|Options $options Optional Arguments
- * @return FieldTypeInstance Newly created FieldTypeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($uniqueName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $uniqueName, 'FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldTypeInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a FieldTypeContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldTypeContext
- */
- public function getContext($sid) {
- return new FieldTypeContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.FieldTypeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.php
deleted file mode 100644
index 026810f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.php
+++ /dev/null
@@ -1,136 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateFieldTypeOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateFieldTypeOptions extends Options {
- /**
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can up to 255
- * characters long.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateFieldTypeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypePage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypePage.php
deleted file mode 100644
index 7539cd5..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/FieldTypePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FieldTypeInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.FieldTypePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildContext.php
deleted file mode 100644
index a57c154..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildContext.php
+++ /dev/null
@@ -1,110 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/ModelBuilds/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ModelBuildInstance
- *
- * @return ModelBuildInstance Fetched ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ModelBuildInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ModelBuildInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ModelBuildInstance Updated ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ModelBuildInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ModelBuildInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.ModelBuildContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildInstance.php
deleted file mode 100644
index 04805b4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildInstance.php
+++ /dev/null
@@ -1,146 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- 'buildDuration' => Values::array_get($payload, 'build_duration'),
- 'errorCode' => Values::array_get($payload, 'error_code'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\ModelBuildContext Context
- * for this
- * ModelBuildInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ModelBuildContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ModelBuildInstance
- *
- * @return ModelBuildInstance Fetched ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ModelBuildInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ModelBuildInstance Updated ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the ModelBuildInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.ModelBuildInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildList.php
deleted file mode 100644
index 6e91cad..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildList.php
+++ /dev/null
@@ -1,166 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/ModelBuilds';
- }
-
- /**
- * Streams ModelBuildInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ModelBuildInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ModelBuildInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ModelBuildInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ModelBuildInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ModelBuildPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ModelBuildInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ModelBuildInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ModelBuildPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new ModelBuildInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ModelBuildInstance Newly created ModelBuildInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'StatusCallback' => $options['statusCallback'],
- 'UniqueName' => $options['uniqueName'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ModelBuildInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a ModelBuildContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Understand\Assistant\ModelBuildContext
- */
- public function getContext($sid) {
- return new ModelBuildContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.ModelBuildList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.php
deleted file mode 100644
index a31e4ee..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.php
+++ /dev/null
@@ -1,130 +0,0 @@
-options['statusCallback'] = $statusCallback;
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * The status_callback
- *
- * @param string $statusCallback The status_callback
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long. For example: v0.1
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateModelBuildOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateModelBuildOptions extends Options {
- /**
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long. For example: v0.1
- */
- public function __construct($uniqueName = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long. For example: v0.1
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateModelBuildOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildPage.php
deleted file mode 100644
index e5f5b40..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/ModelBuildPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ModelBuildInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.ModelBuildPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryContext.php
deleted file mode 100644
index 8173de7..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Queries/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a QueryInstance
- *
- * @return QueryInstance Fetched QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new QueryInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the QueryInstance
- *
- * @param array|Options $options Optional Arguments
- * @return QueryInstance Updated QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('SampleSid' => $options['sampleSid'], 'Status' => $options['status'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new QueryInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the QueryInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.QueryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryInstance.php
deleted file mode 100644
index c745019..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryInstance.php
+++ /dev/null
@@ -1,153 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'results' => Values::array_get($payload, 'results'),
- 'language' => Values::array_get($payload, 'language'),
- 'modelBuildSid' => Values::array_get($payload, 'model_build_sid'),
- 'query' => Values::array_get($payload, 'query'),
- 'sampleSid' => Values::array_get($payload, 'sample_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'url' => Values::array_get($payload, 'url'),
- 'sourceChannel' => Values::array_get($payload, 'source_channel'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\QueryContext Context for
- * this
- * QueryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new QueryContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a QueryInstance
- *
- * @return QueryInstance Fetched QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the QueryInstance
- *
- * @param array|Options $options Optional Arguments
- * @return QueryInstance Updated QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the QueryInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.QueryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryList.php
deleted file mode 100644
index 7ac2e83..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryList.php
+++ /dev/null
@@ -1,181 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Queries';
- }
-
- /**
- * Streams QueryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads QueryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return QueryInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of QueryInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of QueryInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Language' => $options['language'],
- 'ModelBuild' => $options['modelBuild'],
- 'Status' => $options['status'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new QueryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of QueryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of QueryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new QueryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new QueryInstance
- *
- * @param string $language An ISO language-country string of the sample.
- * @param string $query A user-provided string that uniquely identifies this
- * resource as an alternative to the sid. It can be up to
- * 2048 characters long.
- * @param array|Options $options Optional Arguments
- * @return QueryInstance Newly created QueryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($language, $query, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $language,
- 'Query' => $query,
- 'Tasks' => $options['tasks'],
- 'ModelBuild' => $options['modelBuild'],
- 'Field' => $options['field'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new QueryInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a QueryContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Preview\Understand\Assistant\QueryContext
- */
- public function getContext($sid) {
- return new QueryContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.QueryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.php
deleted file mode 100644
index 84cb8ac..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.php
+++ /dev/null
@@ -1,250 +0,0 @@
-options['language'] = $language;
- $this->options['modelBuild'] = $modelBuild;
- $this->options['status'] = $status;
- }
-
- /**
- * An ISO language-country string of the sample.
- *
- * @param string $language An ISO language-country string of the sample.
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * The Model Build Sid or unique name of the Model Build to be queried.
- *
- * @param string $modelBuild The Model Build Sid or unique name of the Model
- * Build to be queried.
- * @return $this Fluent Builder
- */
- public function setModelBuild($modelBuild) {
- $this->options['modelBuild'] = $modelBuild;
- return $this;
- }
-
- /**
- * A string that described the query status. The values can be: pending_review, reviewed, discarded
- *
- * @param string $status A string that described the query status. The values
- * can be: pending_review, reviewed, discarded
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.ReadQueryOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateQueryOptions extends Options {
- /**
- * @param string $tasks Constraints the query to a set of tasks. Useful when
- * you need to constrain the paths the user can take.
- * Tasks should be comma separated task-unique-name-1,
- * task-unique-name-2
- * @param string $modelBuild The Model Build Sid or unique name of the Model
- * Build to be queried.
- * @param string $field Constraints the query to a given Field with an task.
- * Useful when you know the Field you are expecting. It
- * accepts one field in the format
- * task-unique-name-1:field-unique-name
- */
- public function __construct($tasks = Values::NONE, $modelBuild = Values::NONE, $field = Values::NONE) {
- $this->options['tasks'] = $tasks;
- $this->options['modelBuild'] = $modelBuild;
- $this->options['field'] = $field;
- }
-
- /**
- * Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2*
- *
- * @param string $tasks Constraints the query to a set of tasks. Useful when
- * you need to constrain the paths the user can take.
- * Tasks should be comma separated task-unique-name-1,
- * task-unique-name-2
- * @return $this Fluent Builder
- */
- public function setTasks($tasks) {
- $this->options['tasks'] = $tasks;
- return $this;
- }
-
- /**
- * The Model Build Sid or unique name of the Model Build to be queried.
- *
- * @param string $modelBuild The Model Build Sid or unique name of the Model
- * Build to be queried.
- * @return $this Fluent Builder
- */
- public function setModelBuild($modelBuild) {
- $this->options['modelBuild'] = $modelBuild;
- return $this;
- }
-
- /**
- * Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name*
- *
- * @param string $field Constraints the query to a given Field with an task.
- * Useful when you know the Field you are expecting. It
- * accepts one field in the format
- * task-unique-name-1:field-unique-name
- * @return $this Fluent Builder
- */
- public function setField($field) {
- $this->options['field'] = $field;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateQueryOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateQueryOptions extends Options {
- /**
- * @param string $sampleSid An optional reference to the Sample created from
- * this query.
- * @param string $status A string that described the query status. The values
- * can be: pending_review, reviewed, discarded
- */
- public function __construct($sampleSid = Values::NONE, $status = Values::NONE) {
- $this->options['sampleSid'] = $sampleSid;
- $this->options['status'] = $status;
- }
-
- /**
- * An optional reference to the Sample created from this query.
- *
- * @param string $sampleSid An optional reference to the Sample created from
- * this query.
- * @return $this Fluent Builder
- */
- public function setSampleSid($sampleSid) {
- $this->options['sampleSid'] = $sampleSid;
- return $this;
- }
-
- /**
- * A string that described the query status. The values can be: pending_review, reviewed, discarded
- *
- * @param string $status A string that described the query status. The values
- * can be: pending_review, reviewed, discarded
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateQueryOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryPage.php
deleted file mode 100644
index 72dcbff..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/QueryPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new QueryInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.QueryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetContext.php
deleted file mode 100644
index fb30d1c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetContext.php
+++ /dev/null
@@ -1,90 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/StyleSheet';
- }
-
- /**
- * Fetch a StyleSheetInstance
- *
- * @return StyleSheetInstance Fetched StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new StyleSheetInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Update the StyleSheetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return StyleSheetInstance Updated StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('StyleSheet' => Serialize::jsonObject($options['styleSheet']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new StyleSheetInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.StyleSheetContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetInstance.php
deleted file mode 100644
index 105c20b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetInstance.php
+++ /dev/null
@@ -1,118 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\StyleSheetContext Context
- * for this
- * StyleSheetInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new StyleSheetContext($this->version, $this->solution['assistantSid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a StyleSheetInstance
- *
- * @return StyleSheetInstance Fetched StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the StyleSheetInstance
- *
- * @param array|Options $options Optional Arguments
- * @return StyleSheetInstance Updated StyleSheetInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.StyleSheetInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetList.php
deleted file mode 100644
index cfb4eb4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
- }
-
- /**
- * Constructs a StyleSheetContext
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\StyleSheetContext
- */
- public function getContext() {
- return new StyleSheetContext($this->version, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.StyleSheetList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.php
deleted file mode 100644
index e59929a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['styleSheet'] = $styleSheet;
- }
-
- /**
- * The JSON Style sheet string
- *
- * @param array $styleSheet The JSON Style sheet string
- * @return $this Fluent Builder
- */
- public function setStyleSheet($styleSheet) {
- $this->options['styleSheet'] = $styleSheet;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateStyleSheetOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetPage.php
deleted file mode 100644
index c9e11df..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/StyleSheetPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new StyleSheetInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.StyleSheetPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldContext.php
deleted file mode 100644
index 30d27ef..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldContext.php
+++ /dev/null
@@ -1,85 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Fields/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FieldInstance
- *
- * @return FieldInstance Fetched FieldInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the FieldInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.FieldContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldInstance.php
deleted file mode 100644
index 9a188aa..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldInstance.php
+++ /dev/null
@@ -1,139 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'fieldType' => Values::array_get($payload, 'field_type'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'assistantSid' => $assistantSid,
- 'taskSid' => $taskSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\FieldContext Context
- * for this
- * FieldInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FieldContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FieldInstance
- *
- * @return FieldInstance Fetched FieldInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FieldInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.FieldInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldList.php
deleted file mode 100644
index dde9b90..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldList.php
+++ /dev/null
@@ -1,177 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Fields';
- }
-
- /**
- * Streams FieldInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FieldInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FieldInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FieldInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FieldInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FieldPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FieldInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FieldInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FieldPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new FieldInstance
- *
- * @param string $fieldType The unique name or sid of the FieldType. It can be
- * any Built-in Field Type or the unique_name or sid
- * of a custom Field Type.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return FieldInstance Newly created FieldInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($fieldType, $uniqueName) {
- $data = Values::of(array('FieldType' => $fieldType, 'UniqueName' => $uniqueName, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new FieldInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Constructs a FieldContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\FieldContext
- */
- public function getContext($sid) {
- return new FieldContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.FieldList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldPage.php
deleted file mode 100644
index c11bbd8..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/FieldPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FieldInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.FieldPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleContext.php
deleted file mode 100644
index ce86917..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Samples/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SampleInstance
- *
- * @return SampleInstance Fetched SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the SampleInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SampleInstance Updated SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $options['language'],
- 'TaggedText' => $options['taggedText'],
- 'SourceChannel' => $options['sourceChannel'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SampleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.SampleContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleInstance.php
deleted file mode 100644
index c12439c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'language' => Values::array_get($payload, 'language'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taggedText' => Values::array_get($payload, 'tagged_text'),
- 'url' => Values::array_get($payload, 'url'),
- 'sourceChannel' => Values::array_get($payload, 'source_channel'),
- );
-
- $this->solution = array(
- 'assistantSid' => $assistantSid,
- 'taskSid' => $taskSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\SampleContext Context
- * for
- * this
- * SampleInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SampleContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SampleInstance
- *
- * @return SampleInstance Fetched SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the SampleInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SampleInstance Updated SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the SampleInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.SampleInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleList.php
deleted file mode 100644
index 99ac6d9..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleList.php
+++ /dev/null
@@ -1,187 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Samples';
- }
-
- /**
- * Streams SampleInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SampleInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SampleInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SampleInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SampleInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Language' => $options['language'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SamplePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SampleInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SampleInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SamplePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new SampleInstance
- *
- * @param string $language An ISO language-country string of the sample.
- * @param string $taggedText The text example of how end-users may express this
- * task. The sample may contain Field tag blocks.
- * @param array|Options $options Optional Arguments
- * @return SampleInstance Newly created SampleInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($language, $taggedText, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Language' => $language,
- 'TaggedText' => $taggedText,
- 'SourceChannel' => $options['sourceChannel'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Constructs a SampleContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\SampleContext
- */
- public function getContext($sid) {
- return new SampleContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.SampleList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.php
deleted file mode 100644
index aa5435b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.php
+++ /dev/null
@@ -1,196 +0,0 @@
-options['language'] = $language;
- }
-
- /**
- * An ISO language-country string of the sample.
- *
- * @param string $language An ISO language-country string of the sample.
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.ReadSampleOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateSampleOptions extends Options {
- /**
- * @param string $sourceChannel The communication channel the sample was
- * captured. It can be: voice, sms, chat, alexa,
- * google-assistant, or slack. If not included the
- * value will be null
- */
- public function __construct($sourceChannel = Values::NONE) {
- $this->options['sourceChannel'] = $sourceChannel;
- }
-
- /**
- * The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null
- *
- * @param string $sourceChannel The communication channel the sample was
- * captured. It can be: voice, sms, chat, alexa,
- * google-assistant, or slack. If not included the
- * value will be null
- * @return $this Fluent Builder
- */
- public function setSourceChannel($sourceChannel) {
- $this->options['sourceChannel'] = $sourceChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateSampleOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSampleOptions extends Options {
- /**
- * @param string $language An ISO language-country string of the sample.
- * @param string $taggedText The text example of how end-users may express this
- * task. The sample may contain Field tag blocks.
- * @param string $sourceChannel The communication channel the sample was
- * captured. It can be: voice, sms, chat, alexa,
- * google-assistant, or slack. If not included the
- * value will be null
- */
- public function __construct($language = Values::NONE, $taggedText = Values::NONE, $sourceChannel = Values::NONE) {
- $this->options['language'] = $language;
- $this->options['taggedText'] = $taggedText;
- $this->options['sourceChannel'] = $sourceChannel;
- }
-
- /**
- * An ISO language-country string of the sample.
- *
- * @param string $language An ISO language-country string of the sample.
- * @return $this Fluent Builder
- */
- public function setLanguage($language) {
- $this->options['language'] = $language;
- return $this;
- }
-
- /**
- * The text example of how end-users may express this task. The sample may contain Field tag blocks.
- *
- * @param string $taggedText The text example of how end-users may express this
- * task. The sample may contain Field tag blocks.
- * @return $this Fluent Builder
- */
- public function setTaggedText($taggedText) {
- $this->options['taggedText'] = $taggedText;
- return $this;
- }
-
- /**
- * The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null
- *
- * @param string $sourceChannel The communication channel the sample was
- * captured. It can be: voice, sms, chat, alexa,
- * google-assistant, or slack. If not included the
- * value will be null
- * @return $this Fluent Builder
- */
- public function setSourceChannel($sourceChannel) {
- $this->options['sourceChannel'] = $sourceChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateSampleOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SamplePage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SamplePage.php
deleted file mode 100644
index 4107d53..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/SamplePage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SampleInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.SamplePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsContext.php
deleted file mode 100644
index 0d87db0..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsContext.php
+++ /dev/null
@@ -1,101 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Actions';
- }
-
- /**
- * Fetch a TaskActionsInstance
- *
- * @return TaskActionsInstance Fetched TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Update the TaskActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskActionsInstance Updated TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Actions' => Serialize::jsonObject($options['actions']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.TaskActionsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsInstance.php
deleted file mode 100644
index ef23cac..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsInstance.php
+++ /dev/null
@@ -1,123 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskActionsContext Context for this TaskActionsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskActionsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskActionsInstance
- *
- * @return TaskActionsInstance Fetched TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TaskActionsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskActionsInstance Updated TaskActionsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.TaskActionsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsList.php
deleted file mode 100644
index 7d4077b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsList.php
+++ /dev/null
@@ -1,55 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Constructs a TaskActionsContext
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskActionsContext
- */
- public function getContext() {
- return new TaskActionsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.TaskActionsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.php
deleted file mode 100644
index f41f23c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.php
+++ /dev/null
@@ -1,64 +0,0 @@
-options['actions'] = $actions;
- }
-
- /**
- * The JSON actions that instruct the Assistant how to perform this task.
- *
- * @param array $actions The JSON actions that instruct the Assistant how to
- * perform this task.
- * @return $this Fluent Builder
- */
- public function setActions($actions) {
- $this->options['actions'] = $actions;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateTaskActionsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsPage.php
deleted file mode 100644
index c1c41b1..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskActionsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.TaskActionsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsContext.php
deleted file mode 100644
index 5e8575a..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($taskSid) . '/Statistics';
- }
-
- /**
- * Fetch a TaskStatisticsInstance
- *
- * @return TaskStatisticsInstance Fetched TaskStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.TaskStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsInstance.php
deleted file mode 100644
index 350ed9f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsInstance.php
+++ /dev/null
@@ -1,113 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'samplesCount' => Values::array_get($payload, 'samples_count'),
- 'fieldsCount' => Values::array_get($payload, 'fields_count'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskStatisticsContext Context for this TaskStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskStatisticsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskStatisticsInstance
- *
- * @return TaskStatisticsInstance Fetched TaskStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.TaskStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsList.php
deleted file mode 100644
index 06fb461..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsList.php
+++ /dev/null
@@ -1,55 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'taskSid' => $taskSid, );
- }
-
- /**
- * Constructs a TaskStatisticsContext
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskStatisticsContext
- */
- public function getContext() {
- return new TaskStatisticsContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.TaskStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsPage.php
deleted file mode 100644
index 91c2219..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.TaskStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskContext.php
deleted file mode 100644
index cca6473..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskContext.php
+++ /dev/null
@@ -1,237 +0,0 @@
-solution = array('assistantSid' => $assistantSid, 'sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a TaskInstance
- *
- * @return TaskInstance Fetched TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Updated TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'UniqueName' => $options['uniqueName'],
- 'Actions' => Serialize::jsonObject($options['actions']),
- 'ActionsUrl' => $options['actionsUrl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskInstance(
- $this->version,
- $payload,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TaskInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the fields
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\FieldList
- */
- protected function getFields() {
- if (!$this->_fields) {
- $this->_fields = new FieldList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_fields;
- }
-
- /**
- * Access the samples
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\SampleList
- */
- protected function getSamples() {
- if (!$this->_samples) {
- $this->_samples = new SampleList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_samples;
- }
-
- /**
- * Access the taskActions
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskActionsList
- */
- protected function getTaskActions() {
- if (!$this->_taskActions) {
- $this->_taskActions = new TaskActionsList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_taskActions;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskStatisticsList
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new TaskStatisticsList(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_statistics;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.TaskContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskInstance.php
deleted file mode 100644
index 9b16695..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskInstance.php
+++ /dev/null
@@ -1,188 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'links' => Values::array_get($payload, 'links'),
- 'assistantSid' => Values::array_get($payload, 'assistant_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'actionsUrl' => Values::array_get($payload, 'actions_url'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('assistantSid' => $assistantSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\TaskContext Context for
- * this
- * TaskInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskContext(
- $this->version,
- $this->solution['assistantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskInstance
- *
- * @return TaskInstance Fetched TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Updated TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the TaskInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the fields
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\FieldList
- */
- protected function getFields() {
- return $this->proxy()->fields;
- }
-
- /**
- * Access the samples
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\SampleList
- */
- protected function getSamples() {
- return $this->proxy()->samples;
- }
-
- /**
- * Access the taskActions
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskActionsList
- */
- protected function getTaskActions() {
- return $this->proxy()->taskActions;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\Task\TaskStatisticsList
- */
- protected function getStatistics() {
- return $this->proxy()->statistics;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.TaskInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskList.php
deleted file mode 100644
index 9eadb07..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('assistantSid' => $assistantSid, );
-
- $this->uri = '/Assistants/' . rawurlencode($assistantSid) . '/Tasks';
- }
-
- /**
- * Streams TaskInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TaskInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TaskInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TaskInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TaskInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TaskInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TaskInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TaskPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new TaskInstance
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Newly created TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($uniqueName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $uniqueName,
- 'FriendlyName' => $options['friendlyName'],
- 'Actions' => Serialize::jsonObject($options['actions']),
- 'ActionsUrl' => $options['actionsUrl'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Constructs a TaskContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Preview\Understand\Assistant\TaskContext
- */
- public function getContext($sid) {
- return new TaskContext($this->version, $this->solution['assistantSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.TaskList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.php
deleted file mode 100644
index f20ae31..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.php
+++ /dev/null
@@ -1,210 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['actions'] = $actions;
- $this->options['actionsUrl'] = $actionsUrl;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
- *
- * @param array $actions A user-provided JSON object encoded as a string to
- * specify the actions for this task. It is optional and
- * non-unique.
- * @return $this Fluent Builder
- */
- public function setActions($actions) {
- $this->options['actions'] = $actions;
- return $this;
- }
-
- /**
- * User-provided HTTP endpoint where from the assistant fetches actions
- *
- * @param string $actionsUrl User-provided HTTP endpoint where from the
- * assistant fetches actions
- * @return $this Fluent Builder
- */
- public function setActionsUrl($actionsUrl) {
- $this->options['actionsUrl'] = $actionsUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateTaskOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateTaskOptions extends Options {
- /**
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can up to 255
- * characters long.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param array $actions A user-provided JSON object encoded as a string to
- * specify the actions for this task. It is optional and
- * non-unique.
- * @param string $actionsUrl User-provided HTTP endpoint where from the
- * assistant fetches actions
- */
- public function __construct($friendlyName = Values::NONE, $uniqueName = Values::NONE, $actions = Values::NONE, $actionsUrl = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['actions'] = $actions;
- $this->options['actionsUrl'] = $actionsUrl;
- }
-
- /**
- * A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource. It is non-unique and can up to 255
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.
- *
- * @param array $actions A user-provided JSON object encoded as a string to
- * specify the actions for this task. It is optional and
- * non-unique.
- * @return $this Fluent Builder
- */
- public function setActions($actions) {
- $this->options['actions'] = $actions;
- return $this;
- }
-
- /**
- * User-provided HTTP endpoint where from the assistant fetches actions
- *
- * @param string $actionsUrl User-provided HTTP endpoint where from the
- * assistant fetches actions
- * @return $this Fluent Builder
- */
- public function setActionsUrl($actionsUrl) {
- $this->options['actionsUrl'] = $actionsUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateTaskOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskPage.php
deleted file mode 100644
index d7aaaec..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/Assistant/TaskPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskInstance($this->version, $payload, $this->solution['assistantSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.TaskPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantContext.php b/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantContext.php
deleted file mode 100644
index b68cd05..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantContext.php
+++ /dev/null
@@ -1,288 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Assistants/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a AssistantInstance
- *
- * @return AssistantInstance Fetched AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssistantInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the AssistantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInstance Updated AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'LogQueries' => Serialize::booleanToString($options['logQueries']),
- 'UniqueName' => $options['uniqueName'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'CallbackEvents' => $options['callbackEvents'],
- 'FallbackActions' => Serialize::jsonObject($options['fallbackActions']),
- 'InitiationActions' => Serialize::jsonObject($options['initiationActions']),
- 'StyleSheet' => Serialize::jsonObject($options['styleSheet']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssistantInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the AssistantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the fieldTypes
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldTypeList
- */
- protected function getFieldTypes() {
- if (!$this->_fieldTypes) {
- $this->_fieldTypes = new FieldTypeList($this->version, $this->solution['sid']);
- }
-
- return $this->_fieldTypes;
- }
-
- /**
- * Access the tasks
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\TaskList
- */
- protected function getTasks() {
- if (!$this->_tasks) {
- $this->_tasks = new TaskList($this->version, $this->solution['sid']);
- }
-
- return $this->_tasks;
- }
-
- /**
- * Access the modelBuilds
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\ModelBuildList
- */
- protected function getModelBuilds() {
- if (!$this->_modelBuilds) {
- $this->_modelBuilds = new ModelBuildList($this->version, $this->solution['sid']);
- }
-
- return $this->_modelBuilds;
- }
-
- /**
- * Access the queries
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\QueryList
- */
- protected function getQueries() {
- if (!$this->_queries) {
- $this->_queries = new QueryList($this->version, $this->solution['sid']);
- }
-
- return $this->_queries;
- }
-
- /**
- * Access the assistantFallbackActions
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantFallbackActionsList
- */
- protected function getAssistantFallbackActions() {
- if (!$this->_assistantFallbackActions) {
- $this->_assistantFallbackActions = new AssistantFallbackActionsList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_assistantFallbackActions;
- }
-
- /**
- * Access the assistantInitiationActions
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantInitiationActionsList
- */
- protected function getAssistantInitiationActions() {
- if (!$this->_assistantInitiationActions) {
- $this->_assistantInitiationActions = new AssistantInitiationActionsList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_assistantInitiationActions;
- }
-
- /**
- * Access the dialogues
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\DialogueList
- */
- protected function getDialogues() {
- if (!$this->_dialogues) {
- $this->_dialogues = new DialogueList($this->version, $this->solution['sid']);
- }
-
- return $this->_dialogues;
- }
-
- /**
- * Access the styleSheet
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\StyleSheetList
- */
- protected function getStyleSheet() {
- if (!$this->_styleSheet) {
- $this->_styleSheet = new StyleSheetList($this->version, $this->solution['sid']);
- }
-
- return $this->_styleSheet;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.AssistantContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantInstance.php b/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantInstance.php
deleted file mode 100644
index 0c47dfa..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantInstance.php
+++ /dev/null
@@ -1,226 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'latestModelBuildSid' => Values::array_get($payload, 'latest_model_build_sid'),
- 'links' => Values::array_get($payload, 'links'),
- 'logQueries' => Values::array_get($payload, 'log_queries'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'url' => Values::array_get($payload, 'url'),
- 'callbackUrl' => Values::array_get($payload, 'callback_url'),
- 'callbackEvents' => Values::array_get($payload, 'callback_events'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Understand\AssistantContext Context for this
- * AssistantInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new AssistantContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a AssistantInstance
- *
- * @return AssistantInstance Fetched AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the AssistantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInstance Updated AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the AssistantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the fieldTypes
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\FieldTypeList
- */
- protected function getFieldTypes() {
- return $this->proxy()->fieldTypes;
- }
-
- /**
- * Access the tasks
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\TaskList
- */
- protected function getTasks() {
- return $this->proxy()->tasks;
- }
-
- /**
- * Access the modelBuilds
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\ModelBuildList
- */
- protected function getModelBuilds() {
- return $this->proxy()->modelBuilds;
- }
-
- /**
- * Access the queries
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\QueryList
- */
- protected function getQueries() {
- return $this->proxy()->queries;
- }
-
- /**
- * Access the assistantFallbackActions
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantFallbackActionsList
- */
- protected function getAssistantFallbackActions() {
- return $this->proxy()->assistantFallbackActions;
- }
-
- /**
- * Access the assistantInitiationActions
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\AssistantInitiationActionsList
- */
- protected function getAssistantInitiationActions() {
- return $this->proxy()->assistantInitiationActions;
- }
-
- /**
- * Access the dialogues
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\DialogueList
- */
- protected function getDialogues() {
- return $this->proxy()->dialogues;
- }
-
- /**
- * Access the styleSheet
- *
- * @return \Twilio\Rest\Preview\Understand\Assistant\StyleSheetList
- */
- protected function getStyleSheet() {
- return $this->proxy()->styleSheet;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Understand.AssistantInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantList.php b/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantList.php
deleted file mode 100644
index 75047c9..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array();
-
- $this->uri = '/Assistants';
- }
-
- /**
- * Streams AssistantInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads AssistantInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return AssistantInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of AssistantInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of AssistantInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new AssistantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of AssistantInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of AssistantInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new AssistantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new AssistantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return AssistantInstance Newly created AssistantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'LogQueries' => Serialize::booleanToString($options['logQueries']),
- 'UniqueName' => $options['uniqueName'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'CallbackEvents' => $options['callbackEvents'],
- 'FallbackActions' => Serialize::jsonObject($options['fallbackActions']),
- 'InitiationActions' => Serialize::jsonObject($options['initiationActions']),
- 'StyleSheet' => Serialize::jsonObject($options['styleSheet']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new AssistantInstance($this->version, $payload);
- }
-
- /**
- * Constructs a AssistantContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Preview\Understand\AssistantContext
- */
- public function getContext($sid) {
- return new AssistantContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.AssistantList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantOptions.php b/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantOptions.php
deleted file mode 100644
index a58aeaf..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantOptions.php
+++ /dev/null
@@ -1,378 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['logQueries'] = $logQueries;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['callbackEvents'] = $callbackEvents;
- $this->options['fallbackActions'] = $fallbackActions;
- $this->options['initiationActions'] = $initiationActions;
- $this->options['styleSheet'] = $styleSheet;
- }
-
- /**
- * A text description for the Assistant. It is non-unique and can up to 255 characters long.
- *
- * @param string $friendlyName A text description for the Assistant. It is
- * non-unique and can up to 255 characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided.
- *
- * @param boolean $logQueries A boolean that specifies whether queries should
- * be logged for 30 days further training. If false,
- * no queries will be stored, if true, queries will
- * be stored for 30 days and deleted thereafter.
- * Defaults to true if no value is provided.
- * @return $this Fluent Builder
- */
- public function setLogQueries($logQueries) {
- $this->options['logQueries'] = $logQueries;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A user-provided URL to send event callbacks to.
- *
- * @param string $callbackUrl A user-provided URL to send event callbacks to.
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * Space-separated list of callback events that will trigger callbacks.
- *
- * @param string $callbackEvents Space-separated list of callback events that
- * will trigger callbacks.
- * @return $this Fluent Builder
- */
- public function setCallbackEvents($callbackEvents) {
- $this->options['callbackEvents'] = $callbackEvents;
- return $this;
- }
-
- /**
- * The JSON actions to be executed when the user's input is not recognized as matching any Task.
- *
- * @param array $fallbackActions The JSON actions to be executed when the
- * user's input is not recognized as matching any
- * Task.
- * @return $this Fluent Builder
- */
- public function setFallbackActions($fallbackActions) {
- $this->options['fallbackActions'] = $fallbackActions;
- return $this;
- }
-
- /**
- * The JSON actions to be executed on inbound phone calls when the Assistant has to say something first.
- *
- * @param array $initiationActions The JSON actions to be executed on inbound
- * phone calls when the Assistant has to say
- * something first.
- * @return $this Fluent Builder
- */
- public function setInitiationActions($initiationActions) {
- $this->options['initiationActions'] = $initiationActions;
- return $this;
- }
-
- /**
- * The JSON object that holds the style sheet for the assistant
- *
- * @param array $styleSheet The JSON object that holds the style sheet for the
- * assistant
- * @return $this Fluent Builder
- */
- public function setStyleSheet($styleSheet) {
- $this->options['styleSheet'] = $styleSheet;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.CreateAssistantOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateAssistantOptions extends Options {
- /**
- * @param string $friendlyName A text description for the Assistant. It is
- * non-unique and can up to 255 characters long.
- * @param boolean $logQueries A boolean that specifies whether queries should
- * be logged for 30 days further training. If false,
- * no queries will be stored, if true, queries will
- * be stored for 30 days and deleted thereafter.
- * Defaults to true if no value is provided.
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @param string $callbackUrl A user-provided URL to send event callbacks to.
- * @param string $callbackEvents Space-separated list of callback events that
- * will trigger callbacks.
- * @param array $fallbackActions The JSON actions to be executed when the
- * user's input is not recognized as matching any
- * Task.
- * @param array $initiationActions The JSON actions to be executed on inbound
- * phone calls when the Assistant has to say
- * something first.
- * @param array $styleSheet The JSON object that holds the style sheet for the
- * assistant
- */
- public function __construct($friendlyName = Values::NONE, $logQueries = Values::NONE, $uniqueName = Values::NONE, $callbackUrl = Values::NONE, $callbackEvents = Values::NONE, $fallbackActions = Values::NONE, $initiationActions = Values::NONE, $styleSheet = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['logQueries'] = $logQueries;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['callbackEvents'] = $callbackEvents;
- $this->options['fallbackActions'] = $fallbackActions;
- $this->options['initiationActions'] = $initiationActions;
- $this->options['styleSheet'] = $styleSheet;
- }
-
- /**
- * A text description for the Assistant. It is non-unique and can up to 255 characters long.
- *
- * @param string $friendlyName A text description for the Assistant. It is
- * non-unique and can up to 255 characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided.
- *
- * @param boolean $logQueries A boolean that specifies whether queries should
- * be logged for 30 days further training. If false,
- * no queries will be stored, if true, queries will
- * be stored for 30 days and deleted thereafter.
- * Defaults to true if no value is provided.
- * @return $this Fluent Builder
- */
- public function setLogQueries($logQueries) {
- $this->options['logQueries'] = $logQueries;
- return $this;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the sid. Unique
- * up to 64 characters long.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A user-provided URL to send event callbacks to.
- *
- * @param string $callbackUrl A user-provided URL to send event callbacks to.
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * Space-separated list of callback events that will trigger callbacks.
- *
- * @param string $callbackEvents Space-separated list of callback events that
- * will trigger callbacks.
- * @return $this Fluent Builder
- */
- public function setCallbackEvents($callbackEvents) {
- $this->options['callbackEvents'] = $callbackEvents;
- return $this;
- }
-
- /**
- * The JSON actions to be executed when the user's input is not recognized as matching any Task.
- *
- * @param array $fallbackActions The JSON actions to be executed when the
- * user's input is not recognized as matching any
- * Task.
- * @return $this Fluent Builder
- */
- public function setFallbackActions($fallbackActions) {
- $this->options['fallbackActions'] = $fallbackActions;
- return $this;
- }
-
- /**
- * The JSON actions to be executed on inbound phone calls when the Assistant has to say something first.
- *
- * @param array $initiationActions The JSON actions to be executed on inbound
- * phone calls when the Assistant has to say
- * something first.
- * @return $this Fluent Builder
- */
- public function setInitiationActions($initiationActions) {
- $this->options['initiationActions'] = $initiationActions;
- return $this;
- }
-
- /**
- * The JSON object that holds the style sheet for the assistant
- *
- * @param array $styleSheet The JSON object that holds the style sheet for the
- * assistant
- * @return $this Fluent Builder
- */
- public function setStyleSheet($styleSheet) {
- $this->options['styleSheet'] = $styleSheet;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Understand.UpdateAssistantOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantPage.php b/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantPage.php
deleted file mode 100644
index 4313a9f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Understand/AssistantPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new AssistantInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Understand.AssistantPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless.php b/public/twilio-php/Twilio/Rest/Preview/Wireless.php
deleted file mode 100644
index 1b54672..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless.php
+++ /dev/null
@@ -1,114 +0,0 @@
-version = 'wireless';
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless\CommandList
- */
- protected function getCommands() {
- if (!$this->_commands) {
- $this->_commands = new CommandList($this);
- }
- return $this->_commands;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless\RatePlanList
- */
- protected function getRatePlans() {
- if (!$this->_ratePlans) {
- $this->_ratePlans = new RatePlanList($this);
- }
- return $this->_ratePlans;
- }
-
- /**
- * @return \Twilio\Rest\Preview\Wireless\SimList
- */
- protected function getSims() {
- if (!$this->_sims) {
- $this->_sims = new SimList($this);
- }
- return $this->_sims;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandContext.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandContext.php
deleted file mode 100644
index a312309..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandContext.php
+++ /dev/null
@@ -1,66 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Commands/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CommandInstance
- *
- * @return CommandInstance Fetched CommandInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CommandInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.CommandContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandInstance.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandInstance.php
deleted file mode 100644
index 17859dc..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandInstance.php
+++ /dev/null
@@ -1,120 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'deviceSid' => Values::array_get($payload, 'device_sid'),
- 'simSid' => Values::array_get($payload, 'sim_sid'),
- 'command' => Values::array_get($payload, 'command'),
- 'commandMode' => Values::array_get($payload, 'command_mode'),
- 'status' => Values::array_get($payload, 'status'),
- 'direction' => Values::array_get($payload, 'direction'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Wireless\CommandContext Context for this
- * CommandInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CommandContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CommandInstance
- *
- * @return CommandInstance Fetched CommandInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.CommandInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandList.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandList.php
deleted file mode 100644
index 0bfdf81..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandList.php
+++ /dev/null
@@ -1,179 +0,0 @@
-solution = array();
-
- $this->uri = '/Commands';
- }
-
- /**
- * Streams CommandInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CommandInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CommandInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CommandInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CommandInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Device' => $options['device'],
- 'Sim' => $options['sim'],
- 'Status' => $options['status'],
- 'Direction' => $options['direction'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CommandPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CommandInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CommandInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CommandPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CommandInstance
- *
- * @param string $command The command
- * @param array|Options $options Optional Arguments
- * @return CommandInstance Newly created CommandInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($command, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Command' => $command,
- 'Device' => $options['device'],
- 'Sim' => $options['sim'],
- 'CallbackMethod' => $options['callbackMethod'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'CommandMode' => $options['commandMode'],
- 'IncludeSid' => $options['includeSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CommandInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CommandContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\CommandContext
- */
- public function getContext($sid) {
- return new CommandContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.CommandList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandOptions.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandOptions.php
deleted file mode 100644
index 354ca12..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandOptions.php
+++ /dev/null
@@ -1,216 +0,0 @@
-options['device'] = $device;
- $this->options['sim'] = $sim;
- $this->options['status'] = $status;
- $this->options['direction'] = $direction;
- }
-
- /**
- * The device
- *
- * @param string $device The device
- * @return $this Fluent Builder
- */
- public function setDevice($device) {
- $this->options['device'] = $device;
- return $this;
- }
-
- /**
- * The sim
- *
- * @param string $sim The sim
- * @return $this Fluent Builder
- */
- public function setSim($sim) {
- $this->options['sim'] = $sim;
- return $this;
- }
-
- /**
- * The status
- *
- * @param string $status The status
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The direction
- *
- * @param string $direction The direction
- * @return $this Fluent Builder
- */
- public function setDirection($direction) {
- $this->options['direction'] = $direction;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.ReadCommandOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateCommandOptions extends Options {
- /**
- * @param string $device The device
- * @param string $sim The sim
- * @param string $callbackMethod The callback_method
- * @param string $callbackUrl The callback_url
- * @param string $commandMode The command_mode
- * @param string $includeSid The include_sid
- */
- public function __construct($device = Values::NONE, $sim = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $commandMode = Values::NONE, $includeSid = Values::NONE) {
- $this->options['device'] = $device;
- $this->options['sim'] = $sim;
- $this->options['callbackMethod'] = $callbackMethod;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['commandMode'] = $commandMode;
- $this->options['includeSid'] = $includeSid;
- }
-
- /**
- * The device
- *
- * @param string $device The device
- * @return $this Fluent Builder
- */
- public function setDevice($device) {
- $this->options['device'] = $device;
- return $this;
- }
-
- /**
- * The sim
- *
- * @param string $sim The sim
- * @return $this Fluent Builder
- */
- public function setSim($sim) {
- $this->options['sim'] = $sim;
- return $this;
- }
-
- /**
- * The callback_method
- *
- * @param string $callbackMethod The callback_method
- * @return $this Fluent Builder
- */
- public function setCallbackMethod($callbackMethod) {
- $this->options['callbackMethod'] = $callbackMethod;
- return $this;
- }
-
- /**
- * The callback_url
- *
- * @param string $callbackUrl The callback_url
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * The command_mode
- *
- * @param string $commandMode The command_mode
- * @return $this Fluent Builder
- */
- public function setCommandMode($commandMode) {
- $this->options['commandMode'] = $commandMode;
- return $this;
- }
-
- /**
- * The include_sid
- *
- * @param string $includeSid The include_sid
- * @return $this Fluent Builder
- */
- public function setIncludeSid($includeSid) {
- $this->options['includeSid'] = $includeSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.CreateCommandOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandPage.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandPage.php
deleted file mode 100644
index 73e57d4..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/CommandPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CommandInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.CommandPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanContext.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanContext.php
deleted file mode 100644
index cee0d54..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanContext.php
+++ /dev/null
@@ -1,102 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/RatePlans/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RatePlanInstance
- *
- * @return RatePlanInstance Fetched RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RatePlanInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the RatePlanInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RatePlanInstance Updated RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RatePlanInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the RatePlanInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.RatePlanContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanInstance.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanInstance.php
deleted file mode 100644
index c9c8866..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanInstance.php
+++ /dev/null
@@ -1,148 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dataEnabled' => Values::array_get($payload, 'data_enabled'),
- 'dataMetering' => Values::array_get($payload, 'data_metering'),
- 'dataLimit' => Values::array_get($payload, 'data_limit'),
- 'messagingEnabled' => Values::array_get($payload, 'messaging_enabled'),
- 'voiceEnabled' => Values::array_get($payload, 'voice_enabled'),
- 'nationalRoamingEnabled' => Values::array_get($payload, 'national_roaming_enabled'),
- 'internationalRoaming' => Values::array_get($payload, 'international_roaming'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Wireless\RatePlanContext Context for this
- * RatePlanInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RatePlanContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RatePlanInstance
- *
- * @return RatePlanInstance Fetched RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the RatePlanInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RatePlanInstance Updated RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the RatePlanInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.RatePlanInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanList.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanList.php
deleted file mode 100644
index 5cda1d1..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanList.php
+++ /dev/null
@@ -1,174 +0,0 @@
-solution = array();
-
- $this->uri = '/RatePlans';
- }
-
- /**
- * Streams RatePlanInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RatePlanInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RatePlanInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RatePlanInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RatePlanInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RatePlanPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RatePlanInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RatePlanInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RatePlanPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new RatePlanInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RatePlanInstance Newly created RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'FriendlyName' => $options['friendlyName'],
- 'DataEnabled' => Serialize::booleanToString($options['dataEnabled']),
- 'DataLimit' => $options['dataLimit'],
- 'DataMetering' => $options['dataMetering'],
- 'MessagingEnabled' => Serialize::booleanToString($options['messagingEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'CommandsEnabled' => Serialize::booleanToString($options['commandsEnabled']),
- 'NationalRoamingEnabled' => Serialize::booleanToString($options['nationalRoamingEnabled']),
- 'InternationalRoaming' => Serialize::map($options['internationalRoaming'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RatePlanInstance($this->version, $payload);
- }
-
- /**
- * Constructs a RatePlanContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\RatePlanContext
- */
- public function getContext($sid) {
- return new RatePlanContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.RatePlanList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanOptions.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
deleted file mode 100644
index b5d440b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanOptions.php
+++ /dev/null
@@ -1,244 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['dataEnabled'] = $dataEnabled;
- $this->options['dataLimit'] = $dataLimit;
- $this->options['dataMetering'] = $dataMetering;
- $this->options['messagingEnabled'] = $messagingEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['commandsEnabled'] = $commandsEnabled;
- $this->options['nationalRoamingEnabled'] = $nationalRoamingEnabled;
- $this->options['internationalRoaming'] = $internationalRoaming;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The data_enabled
- *
- * @param boolean $dataEnabled The data_enabled
- * @return $this Fluent Builder
- */
- public function setDataEnabled($dataEnabled) {
- $this->options['dataEnabled'] = $dataEnabled;
- return $this;
- }
-
- /**
- * The data_limit
- *
- * @param integer $dataLimit The data_limit
- * @return $this Fluent Builder
- */
- public function setDataLimit($dataLimit) {
- $this->options['dataLimit'] = $dataLimit;
- return $this;
- }
-
- /**
- * The data_metering
- *
- * @param string $dataMetering The data_metering
- * @return $this Fluent Builder
- */
- public function setDataMetering($dataMetering) {
- $this->options['dataMetering'] = $dataMetering;
- return $this;
- }
-
- /**
- * The messaging_enabled
- *
- * @param boolean $messagingEnabled The messaging_enabled
- * @return $this Fluent Builder
- */
- public function setMessagingEnabled($messagingEnabled) {
- $this->options['messagingEnabled'] = $messagingEnabled;
- return $this;
- }
-
- /**
- * The voice_enabled
- *
- * @param boolean $voiceEnabled The voice_enabled
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * The commands_enabled
- *
- * @param boolean $commandsEnabled The commands_enabled
- * @return $this Fluent Builder
- */
- public function setCommandsEnabled($commandsEnabled) {
- $this->options['commandsEnabled'] = $commandsEnabled;
- return $this;
- }
-
- /**
- * The national_roaming_enabled
- *
- * @param boolean $nationalRoamingEnabled The national_roaming_enabled
- * @return $this Fluent Builder
- */
- public function setNationalRoamingEnabled($nationalRoamingEnabled) {
- $this->options['nationalRoamingEnabled'] = $nationalRoamingEnabled;
- return $this;
- }
-
- /**
- * The international_roaming
- *
- * @param string $internationalRoaming The international_roaming
- * @return $this Fluent Builder
- */
- public function setInternationalRoaming($internationalRoaming) {
- $this->options['internationalRoaming'] = $internationalRoaming;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.CreateRatePlanOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateRatePlanOptions extends Options {
- /**
- * @param string $uniqueName The unique_name
- * @param string $friendlyName The friendly_name
- */
- public function __construct($uniqueName = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.UpdateRatePlanOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanPage.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanPage.php
deleted file mode 100644
index 884025c..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/RatePlanPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RatePlanInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.RatePlanPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageContext.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageContext.php
deleted file mode 100644
index 704d90b..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageContext.php
+++ /dev/null
@@ -1,70 +0,0 @@
-solution = array('simSid' => $simSid, );
-
- $this->uri = '/Sims/' . rawurlencode($simSid) . '/Usage';
- }
-
- /**
- * Fetch a UsageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UsageInstance Fetched UsageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array('End' => $options['end'], 'Start' => $options['start'], ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UsageInstance($this->version, $payload, $this->solution['simSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.UsageContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php
deleted file mode 100644
index a872253..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php
+++ /dev/null
@@ -1,117 +0,0 @@
-properties = array(
- 'simSid' => Values::array_get($payload, 'sim_sid'),
- 'simUniqueName' => Values::array_get($payload, 'sim_unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'period' => Values::array_get($payload, 'period'),
- 'commandsUsage' => Values::array_get($payload, 'commands_usage'),
- 'commandsCosts' => Values::array_get($payload, 'commands_costs'),
- 'dataUsage' => Values::array_get($payload, 'data_usage'),
- 'dataCosts' => Values::array_get($payload, 'data_costs'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('simSid' => $simSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Wireless\Sim\UsageContext Context for this
- * UsageInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new UsageContext($this->version, $this->solution['simSid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a UsageInstance
- *
- * @param array|Options $options Optional Arguments
- * @return UsageInstance Fetched UsageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.UsageInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageList.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageList.php
deleted file mode 100644
index e089a20..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageList.php
+++ /dev/null
@@ -1,50 +0,0 @@
-solution = array('simSid' => $simSid, );
- }
-
- /**
- * Constructs a UsageContext
- *
- * @return \Twilio\Rest\Preview\Wireless\Sim\UsageContext
- */
- public function getContext() {
- return new UsageContext($this->version, $this->solution['simSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.UsageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php
deleted file mode 100644
index e594369..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['end'] = $end;
- $this->options['start'] = $start;
- }
-
- /**
- * The end
- *
- * @param string $end The end
- * @return $this Fluent Builder
- */
- public function setEnd($end) {
- $this->options['end'] = $end;
- return $this;
- }
-
- /**
- * The start
- *
- * @param string $start The start
- * @return $this Fluent Builder
- */
- public function setStart($start) {
- $this->options['start'] = $start;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.FetchUsageOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsagePage.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsagePage.php
deleted file mode 100644
index f9acd84..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/Sim/UsagePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UsageInstance($this->version, $payload, $this->solution['simSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.UsagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimContext.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/SimContext.php
deleted file mode 100644
index d2e404e..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimContext.php
+++ /dev/null
@@ -1,159 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Sims/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SimInstance
- *
- * @return SimInstance Fetched SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SimInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the SimInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SimInstance Updated SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'CallbackMethod' => $options['callbackMethod'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'FriendlyName' => $options['friendlyName'],
- 'RatePlan' => $options['ratePlan'],
- 'Status' => $options['status'],
- 'CommandsCallbackMethod' => $options['commandsCallbackMethod'],
- 'CommandsCallbackUrl' => $options['commandsCallbackUrl'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SimInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the usage
- *
- * @return \Twilio\Rest\Preview\Wireless\Sim\UsageList
- */
- protected function getUsage() {
- if (!$this->_usage) {
- $this->_usage = new UsageList($this->version, $this->solution['sid']);
- }
-
- return $this->_usage;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.SimContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimInstance.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/SimInstance.php
deleted file mode 100644
index 935807f..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimInstance.php
+++ /dev/null
@@ -1,164 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'ratePlanSid' => Values::array_get($payload, 'rate_plan_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'iccid' => Values::array_get($payload, 'iccid'),
- 'eId' => Values::array_get($payload, 'e_id'),
- 'status' => Values::array_get($payload, 'status'),
- 'commandsCallbackUrl' => Values::array_get($payload, 'commands_callback_url'),
- 'commandsCallbackMethod' => Values::array_get($payload, 'commands_callback_method'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Preview\Wireless\SimContext Context for this SimInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SimContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SimInstance
- *
- * @return SimInstance Fetched SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the SimInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SimInstance Updated SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the usage
- *
- * @return \Twilio\Rest\Preview\Wireless\Sim\UsageList
- */
- protected function getUsage() {
- return $this->proxy()->usage;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Preview.Wireless.SimInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimList.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/SimList.php
deleted file mode 100644
index df278f6..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimList.php
+++ /dev/null
@@ -1,149 +0,0 @@
-solution = array();
-
- $this->uri = '/Sims';
- }
-
- /**
- * Streams SimInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SimInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SimInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SimInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SimInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'Iccid' => $options['iccid'],
- 'RatePlan' => $options['ratePlan'],
- 'EId' => $options['eId'],
- 'SimRegistrationCode' => $options['simRegistrationCode'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SimPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SimInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SimInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SimPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SimContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Preview\Wireless\SimContext
- */
- public function getContext($sid) {
- return new SimContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.SimList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimOptions.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/SimOptions.php
deleted file mode 100644
index d379669..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimOptions.php
+++ /dev/null
@@ -1,370 +0,0 @@
-options['status'] = $status;
- $this->options['iccid'] = $iccid;
- $this->options['ratePlan'] = $ratePlan;
- $this->options['eId'] = $eId;
- $this->options['simRegistrationCode'] = $simRegistrationCode;
- }
-
- /**
- * The status
- *
- * @param string $status The status
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The iccid
- *
- * @param string $iccid The iccid
- * @return $this Fluent Builder
- */
- public function setIccid($iccid) {
- $this->options['iccid'] = $iccid;
- return $this;
- }
-
- /**
- * The rate_plan
- *
- * @param string $ratePlan The rate_plan
- * @return $this Fluent Builder
- */
- public function setRatePlan($ratePlan) {
- $this->options['ratePlan'] = $ratePlan;
- return $this;
- }
-
- /**
- * The e_id
- *
- * @param string $eId The e_id
- * @return $this Fluent Builder
- */
- public function setEId($eId) {
- $this->options['eId'] = $eId;
- return $this;
- }
-
- /**
- * The sim_registration_code
- *
- * @param string $simRegistrationCode The sim_registration_code
- * @return $this Fluent Builder
- */
- public function setSimRegistrationCode($simRegistrationCode) {
- $this->options['simRegistrationCode'] = $simRegistrationCode;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.ReadSimOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSimOptions extends Options {
- /**
- * @param string $uniqueName The unique_name
- * @param string $callbackMethod The callback_method
- * @param string $callbackUrl The callback_url
- * @param string $friendlyName The friendly_name
- * @param string $ratePlan The rate_plan
- * @param string $status The status
- * @param string $commandsCallbackMethod The commands_callback_method
- * @param string $commandsCallbackUrl The commands_callback_url
- * @param string $smsFallbackMethod The sms_fallback_method
- * @param string $smsFallbackUrl The sms_fallback_url
- * @param string $smsMethod The sms_method
- * @param string $smsUrl The sms_url
- * @param string $voiceFallbackMethod The voice_fallback_method
- * @param string $voiceFallbackUrl The voice_fallback_url
- * @param string $voiceMethod The voice_method
- * @param string $voiceUrl The voice_url
- */
- public function __construct($uniqueName = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $friendlyName = Values::NONE, $ratePlan = Values::NONE, $status = Values::NONE, $commandsCallbackMethod = Values::NONE, $commandsCallbackUrl = Values::NONE, $smsFallbackMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsMethod = Values::NONE, $smsUrl = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceUrl = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- $this->options['callbackMethod'] = $callbackMethod;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['ratePlan'] = $ratePlan;
- $this->options['status'] = $status;
- $this->options['commandsCallbackMethod'] = $commandsCallbackMethod;
- $this->options['commandsCallbackUrl'] = $commandsCallbackUrl;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The callback_method
- *
- * @param string $callbackMethod The callback_method
- * @return $this Fluent Builder
- */
- public function setCallbackMethod($callbackMethod) {
- $this->options['callbackMethod'] = $callbackMethod;
- return $this;
- }
-
- /**
- * The callback_url
- *
- * @param string $callbackUrl The callback_url
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The rate_plan
- *
- * @param string $ratePlan The rate_plan
- * @return $this Fluent Builder
- */
- public function setRatePlan($ratePlan) {
- $this->options['ratePlan'] = $ratePlan;
- return $this;
- }
-
- /**
- * The status
- *
- * @param string $status The status
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The commands_callback_method
- *
- * @param string $commandsCallbackMethod The commands_callback_method
- * @return $this Fluent Builder
- */
- public function setCommandsCallbackMethod($commandsCallbackMethod) {
- $this->options['commandsCallbackMethod'] = $commandsCallbackMethod;
- return $this;
- }
-
- /**
- * The commands_callback_url
- *
- * @param string $commandsCallbackUrl The commands_callback_url
- * @return $this Fluent Builder
- */
- public function setCommandsCallbackUrl($commandsCallbackUrl) {
- $this->options['commandsCallbackUrl'] = $commandsCallbackUrl;
- return $this;
- }
-
- /**
- * The sms_fallback_method
- *
- * @param string $smsFallbackMethod The sms_fallback_method
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * The sms_fallback_url
- *
- * @param string $smsFallbackUrl The sms_fallback_url
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The sms_method
- *
- * @param string $smsMethod The sms_method
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The sms_url
- *
- * @param string $smsUrl The sms_url
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The voice_fallback_method
- *
- * @param string $voiceFallbackMethod The voice_fallback_method
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The voice_fallback_url
- *
- * @param string $voiceFallbackUrl The voice_fallback_url
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The voice_method
- *
- * @param string $voiceMethod The voice_method
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The voice_url
- *
- * @param string $voiceUrl The voice_url
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Preview.Wireless.UpdateSimOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimPage.php b/public/twilio-php/Twilio/Rest/Preview/Wireless/SimPage.php
deleted file mode 100644
index e4f6443..0000000
--- a/public/twilio-php/Twilio/Rest/Preview/Wireless/SimPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SimInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Preview.Wireless.SimPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing.php b/public/twilio-php/Twilio/Rest/Pricing.php
deleted file mode 100644
index e087d02..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing.php
+++ /dev/null
@@ -1,123 +0,0 @@
-baseUrl = 'https://pricing.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V1 Version v1 of pricing
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V2 Version v2 of pricing
- */
- protected function getV2() {
- if (!$this->_v2) {
- $this->_v2 = new V2($this);
- }
- return $this->_v2;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V1\MessagingList
- */
- protected function getMessaging() {
- return $this->v1->messaging;
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V1\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- return $this->v1->phoneNumbers;
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V2\VoiceList
- */
- protected function getVoice() {
- return $this->v2->voice;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1.php b/public/twilio-php/Twilio/Rest/Pricing/V1.php
deleted file mode 100644
index 3b0433a..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1.php
+++ /dev/null
@@ -1,111 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V1\MessagingList
- */
- protected function getMessaging() {
- if (!$this->_messaging) {
- $this->_messaging = new MessagingList($this);
- }
- return $this->_messaging;
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V1\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- if (!$this->_phoneNumbers) {
- $this->_phoneNumbers = new PhoneNumberList($this);
- }
- return $this->_phoneNumbers;
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V1\VoiceList
- */
- protected function getVoice() {
- if (!$this->_voice) {
- $this->_voice = new VoiceList($this);
- }
- return $this->_voice;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryContext.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryContext.php
deleted file mode 100644
index 13e22e8..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('isoCountry' => $isoCountry, );
-
- $this->uri = '/Messaging/Countries/' . rawurlencode($isoCountry) . '';
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryInstance($this->version, $payload, $this->solution['isoCountry']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.CountryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryInstance.php
deleted file mode 100644
index 4dd5f4c..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryInstance.php
+++ /dev/null
@@ -1,107 +0,0 @@
-properties = array(
- 'country' => Values::array_get($payload, 'country'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'url' => Values::array_get($payload, 'url'),
- 'outboundSmsPrices' => Values::array_get($payload, 'outbound_sms_prices'),
- 'inboundSmsPrices' => Values::array_get($payload, 'inbound_sms_prices'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- );
-
- $this->solution = array('isoCountry' => $isoCountry ?: $this->properties['isoCountry'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Pricing\V1\Messaging\CountryContext Context for this
- * CountryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CountryContext($this->version, $this->solution['isoCountry']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.CountryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryList.php
deleted file mode 100644
index 487363d..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryList.php
+++ /dev/null
@@ -1,136 +0,0 @@
-solution = array();
-
- $this->uri = '/Messaging/Countries';
- }
-
- /**
- * Streams CountryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CountryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CountryInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CountryInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CountryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CountryContext
- *
- * @param string $isoCountry The iso_country
- * @return \Twilio\Rest\Pricing\V1\Messaging\CountryContext
- */
- public function getContext($isoCountry) {
- return new CountryContext($this->version, $isoCountry);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.CountryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryPage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryPage.php
deleted file mode 100644
index 1b5631a..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Messaging/CountryPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CountryInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.CountryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingInstance.php
deleted file mode 100644
index 1afddc2..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingInstance.php
+++ /dev/null
@@ -1,71 +0,0 @@
-properties = array(
- 'name' => Values::array_get($payload, 'name'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.MessagingInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingList.php
deleted file mode 100644
index 9129281..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingList.php
+++ /dev/null
@@ -1,89 +0,0 @@
-solution = array();
- }
-
- /**
- * Access the countries
- */
- protected function getCountries() {
- if (!$this->_countries) {
- $this->_countries = new CountryList($this->version);
- }
-
- return $this->_countries;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.MessagingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingPage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingPage.php
deleted file mode 100644
index f89e008..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/MessagingPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessagingInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.MessagingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryContext.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryContext.php
deleted file mode 100644
index 46becc3..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('isoCountry' => $isoCountry, );
-
- $this->uri = '/PhoneNumbers/Countries/' . rawurlencode($isoCountry) . '';
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryInstance($this->version, $payload, $this->solution['isoCountry']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.CountryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryInstance.php
deleted file mode 100644
index f6e06ea..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryInstance.php
+++ /dev/null
@@ -1,105 +0,0 @@
-properties = array(
- 'country' => Values::array_get($payload, 'country'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'url' => Values::array_get($payload, 'url'),
- 'phoneNumberPrices' => Values::array_get($payload, 'phone_number_prices'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- );
-
- $this->solution = array('isoCountry' => $isoCountry ?: $this->properties['isoCountry'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Pricing\V1\PhoneNumber\CountryContext Context for this
- * CountryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CountryContext($this->version, $this->solution['isoCountry']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.CountryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryList.php
deleted file mode 100644
index 2a432a0..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryList.php
+++ /dev/null
@@ -1,136 +0,0 @@
-solution = array();
-
- $this->uri = '/PhoneNumbers/Countries';
- }
-
- /**
- * Streams CountryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CountryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CountryInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CountryInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CountryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CountryContext
- *
- * @param string $isoCountry The iso_country
- * @return \Twilio\Rest\Pricing\V1\PhoneNumber\CountryContext
- */
- public function getContext($isoCountry) {
- return new CountryContext($this->version, $isoCountry);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.CountryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryPage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryPage.php
deleted file mode 100644
index 96f66a9..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumber/CountryPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CountryInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.CountryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberInstance.php
deleted file mode 100644
index fc20b72..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberInstance.php
+++ /dev/null
@@ -1,71 +0,0 @@
-properties = array(
- 'name' => Values::array_get($payload, 'name'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.PhoneNumberInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberList.php
deleted file mode 100644
index e6cb921..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberList.php
+++ /dev/null
@@ -1,89 +0,0 @@
-solution = array();
- }
-
- /**
- * Access the countries
- */
- protected function getCountries() {
- if (!$this->_countries) {
- $this->_countries = new CountryList($this->version);
- }
-
- return $this->_countries;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.PhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberPage.php
deleted file mode 100644
index 4a05a07..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/PhoneNumberPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PhoneNumberInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.PhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryContext.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryContext.php
deleted file mode 100644
index 6aa4203..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('isoCountry' => $isoCountry, );
-
- $this->uri = '/Voice/Countries/' . rawurlencode($isoCountry) . '';
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryInstance($this->version, $payload, $this->solution['isoCountry']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.CountryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryInstance.php
deleted file mode 100644
index f142f14..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryInstance.php
+++ /dev/null
@@ -1,107 +0,0 @@
-properties = array(
- 'country' => Values::array_get($payload, 'country'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'url' => Values::array_get($payload, 'url'),
- 'outboundPrefixPrices' => Values::array_get($payload, 'outbound_prefix_prices'),
- 'inboundCallPrices' => Values::array_get($payload, 'inbound_call_prices'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- );
-
- $this->solution = array('isoCountry' => $isoCountry ?: $this->properties['isoCountry'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Pricing\V1\Voice\CountryContext Context for this
- * CountryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CountryContext($this->version, $this->solution['isoCountry']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.CountryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryList.php
deleted file mode 100644
index 834de87..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryList.php
+++ /dev/null
@@ -1,136 +0,0 @@
-solution = array();
-
- $this->uri = '/Voice/Countries';
- }
-
- /**
- * Streams CountryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CountryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CountryInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CountryInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CountryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CountryContext
- *
- * @param string $isoCountry The iso_country
- * @return \Twilio\Rest\Pricing\V1\Voice\CountryContext
- */
- public function getContext($isoCountry) {
- return new CountryContext($this->version, $isoCountry);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.CountryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryPage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryPage.php
deleted file mode 100644
index 9676eb6..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/CountryPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CountryInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.CountryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberContext.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberContext.php
deleted file mode 100644
index 6745515..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('number' => $number, );
-
- $this->uri = '/Voice/Numbers/' . rawurlencode($number) . '';
- }
-
- /**
- * Fetch a NumberInstance
- *
- * @return NumberInstance Fetched NumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NumberInstance($this->version, $payload, $this->solution['number']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.NumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberInstance.php
deleted file mode 100644
index 009130a..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberInstance.php
+++ /dev/null
@@ -1,109 +0,0 @@
-properties = array(
- 'number' => Values::array_get($payload, 'number'),
- 'country' => Values::array_get($payload, 'country'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'outboundCallPrice' => Values::array_get($payload, 'outbound_call_price'),
- 'inboundCallPrice' => Values::array_get($payload, 'inbound_call_price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('number' => $number ?: $this->properties['number'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Pricing\V1\Voice\NumberContext Context for this
- * NumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new NumberContext($this->version, $this->solution['number']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a NumberInstance
- *
- * @return NumberInstance Fetched NumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V1.NumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberList.php
deleted file mode 100644
index 2c88352..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a NumberContext
- *
- * @param string $number The number
- * @return \Twilio\Rest\Pricing\V1\Voice\NumberContext
- */
- public function getContext($number) {
- return new NumberContext($this->version, $number);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.NumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberPage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberPage.php
deleted file mode 100644
index e0667cd..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/Voice/NumberPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NumberInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.NumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/VoiceInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V1/VoiceInstance.php
deleted file mode 100644
index 1b72479..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/VoiceInstance.php
+++ /dev/null
@@ -1,71 +0,0 @@
-properties = array(
- 'name' => Values::array_get($payload, 'name'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.VoiceInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/VoiceList.php b/public/twilio-php/Twilio/Rest/Pricing/V1/VoiceList.php
deleted file mode 100644
index 5e0785a..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/VoiceList.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array();
- }
-
- /**
- * Access the numbers
- */
- protected function getNumbers() {
- if (!$this->_numbers) {
- $this->_numbers = new NumberList($this->version);
- }
-
- return $this->_numbers;
- }
-
- /**
- * Access the countries
- */
- protected function getCountries() {
- if (!$this->_countries) {
- $this->_countries = new CountryList($this->version);
- }
-
- return $this->_countries;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.VoiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V1/VoicePage.php b/public/twilio-php/Twilio/Rest/Pricing/V1/VoicePage.php
deleted file mode 100644
index 2e64876..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V1/VoicePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VoiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V1.VoicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2.php b/public/twilio-php/Twilio/Rest/Pricing/V2.php
deleted file mode 100644
index 29ed162..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2.php
+++ /dev/null
@@ -1,85 +0,0 @@
-version = 'v2';
- }
-
- /**
- * @return \Twilio\Rest\Pricing\V2\VoiceList
- */
- protected function getVoice() {
- if (!$this->_voice) {
- $this->_voice = new VoiceList($this);
- }
- return $this->_voice;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryContext.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryContext.php
deleted file mode 100644
index 11fc37d..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('isoCountry' => $isoCountry, );
-
- $this->uri = '/Voice/Countries/' . rawurlencode($isoCountry) . '';
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryInstance($this->version, $payload, $this->solution['isoCountry']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V2.CountryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryInstance.php
deleted file mode 100644
index 650064c..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryInstance.php
+++ /dev/null
@@ -1,107 +0,0 @@
-properties = array(
- 'country' => Values::array_get($payload, 'country'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'url' => Values::array_get($payload, 'url'),
- 'outboundPrefixPrices' => Values::array_get($payload, 'outbound_prefix_prices'),
- 'inboundCallPrices' => Values::array_get($payload, 'inbound_call_prices'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- );
-
- $this->solution = array('isoCountry' => $isoCountry ?: $this->properties['isoCountry'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Pricing\V2\Voice\CountryContext Context for this
- * CountryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CountryContext($this->version, $this->solution['isoCountry']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V2.CountryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryList.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryList.php
deleted file mode 100644
index bb36a84..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryList.php
+++ /dev/null
@@ -1,136 +0,0 @@
-solution = array();
-
- $this->uri = '/Voice/Countries';
- }
-
- /**
- * Streams CountryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CountryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CountryInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CountryInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CountryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CountryContext
- *
- * @param string $isoCountry Fetches voice prices for country
- * @return \Twilio\Rest\Pricing\V2\Voice\CountryContext
- */
- public function getContext($isoCountry) {
- return new CountryContext($this->version, $isoCountry);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.CountryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryPage.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryPage.php
deleted file mode 100644
index 0efef38..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/CountryPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CountryInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.CountryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberContext.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberContext.php
deleted file mode 100644
index 624f274..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberContext.php
+++ /dev/null
@@ -1,67 +0,0 @@
-solution = array('destinationNumber' => $destinationNumber, );
-
- $this->uri = '/Voice/Numbers/' . rawurlencode($destinationNumber) . '';
- }
-
- /**
- * Fetch a NumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return NumberInstance Fetched NumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array('OriginationNumber' => $options['originationNumber'], ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new NumberInstance($this->version, $payload, $this->solution['destinationNumber']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V2.NumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberInstance.php
deleted file mode 100644
index d97f122..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberInstance.php
+++ /dev/null
@@ -1,115 +0,0 @@
-properties = array(
- 'destinationNumber' => Values::array_get($payload, 'destination_number'),
- 'originationNumber' => Values::array_get($payload, 'origination_number'),
- 'country' => Values::array_get($payload, 'country'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'outboundCallPrices' => Values::array_get($payload, 'outbound_call_prices'),
- 'inboundCallPrice' => Values::array_get($payload, 'inbound_call_price'),
- 'priceUnit' => Values::array_get($payload, 'price_unit'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'destinationNumber' => $destinationNumber ?: $this->properties['destinationNumber'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Pricing\V2\Voice\NumberContext Context for this
- * NumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new NumberContext($this->version, $this->solution['destinationNumber']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a NumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return NumberInstance Fetched NumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Pricing.V2.NumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberList.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberList.php
deleted file mode 100644
index 8681176..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a NumberContext
- *
- * @param string $destinationNumber Fetches voice prices for number
- * @return \Twilio\Rest\Pricing\V2\Voice\NumberContext
- */
- public function getContext($destinationNumber) {
- return new NumberContext($this->version, $destinationNumber);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.NumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberOptions.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberOptions.php
deleted file mode 100644
index f2b4233..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['originationNumber'] = $originationNumber;
- }
-
- /**
- * The origination_number
- *
- * @param string $originationNumber The origination_number
- * @return $this Fluent Builder
- */
- public function setOriginationNumber($originationNumber) {
- $this->options['originationNumber'] = $originationNumber;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Pricing.V2.FetchNumberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberPage.php b/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberPage.php
deleted file mode 100644
index 0d39961..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/Voice/NumberPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new NumberInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.NumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/VoiceInstance.php b/public/twilio-php/Twilio/Rest/Pricing/V2/VoiceInstance.php
deleted file mode 100644
index 8cc07be..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/VoiceInstance.php
+++ /dev/null
@@ -1,71 +0,0 @@
-properties = array(
- 'name' => Values::array_get($payload, 'name'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.VoiceInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/VoiceList.php b/public/twilio-php/Twilio/Rest/Pricing/V2/VoiceList.php
deleted file mode 100644
index 3074c35..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/VoiceList.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array();
- }
-
- /**
- * Access the countries
- */
- protected function getCountries() {
- if (!$this->_countries) {
- $this->_countries = new CountryList($this->version);
- }
-
- return $this->_countries;
- }
-
- /**
- * Access the numbers
- */
- protected function getNumbers() {
- if (!$this->_numbers) {
- $this->_numbers = new NumberList($this->version);
- }
-
- return $this->_numbers;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.VoiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Pricing/V2/VoicePage.php b/public/twilio-php/Twilio/Rest/Pricing/V2/VoicePage.php
deleted file mode 100644
index e773838..0000000
--- a/public/twilio-php/Twilio/Rest/Pricing/V2/VoicePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VoiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Pricing.V2.VoicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy.php b/public/twilio-php/Twilio/Rest/Proxy.php
deleted file mode 100644
index 9a2459e..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://proxy.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Proxy\V1 Version v1 of proxy
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Proxy\V1\ServiceList
- */
- protected function getServices() {
- return $this->v1->services;
- }
-
- /**
- * @param string $sid A string that uniquely identifies this Service.
- * @return \Twilio\Rest\Proxy\V1\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v1->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1.php b/public/twilio-php/Twilio/Rest/Proxy/V1.php
deleted file mode 100644
index c3b43af..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Proxy\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberContext.php
deleted file mode 100644
index 9a2dac9..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/PhoneNumbers/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the PhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the PhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PhoneNumberInstance Updated PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('IsReserved' => Serialize::booleanToString($options['isReserved']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new PhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.PhoneNumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberInstance.php
deleted file mode 100644
index bad8928..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'url' => Values::array_get($payload, 'url'),
- 'isReserved' => Values::array_get($payload, 'is_reserved'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\Service\PhoneNumberContext Context for this
- * PhoneNumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PhoneNumberContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the PhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the PhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PhoneNumberInstance Updated PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.PhoneNumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberList.php
deleted file mode 100644
index bfb1f53..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/PhoneNumbers';
- }
-
- /**
- * Create a new PhoneNumberInstance
- *
- * @param array|Options $options Optional Arguments
- * @return PhoneNumberInstance Newly created PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Sid' => $options['sid'],
- 'PhoneNumber' => $options['phoneNumber'],
- 'IsReserved' => Serialize::booleanToString($options['isReserved']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new PhoneNumberInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams PhoneNumberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads PhoneNumberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return PhoneNumberInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of PhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of PhoneNumberInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of PhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of PhoneNumberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new PhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a PhoneNumberContext
- *
- * @param string $sid A string that uniquely identifies this Phone Number.
- * @return \Twilio\Rest\Proxy\V1\Service\PhoneNumberContext
- */
- public function getContext($sid) {
- return new PhoneNumberContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.PhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.php
deleted file mode 100644
index f840553..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.php
+++ /dev/null
@@ -1,141 +0,0 @@
-options['sid'] = $sid;
- $this->options['phoneNumber'] = $phoneNumber;
- $this->options['isReserved'] = $isReserved;
- }
-
- /**
- * A Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incoming-phone-numbers) Sid that represents the Twilio Number you would like to assign to your Proxy Service (e.g. `PN1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d`).
- *
- * @param string $sid Phone Number Sid of Twilio Number to assign to your Proxy
- * Service
- * @return $this Fluent Builder
- */
- public function setSid($sid) {
- $this->options['sid'] = $sid;
- return $this;
- }
-
- /**
- * A string that represents the Twilio Number you would like to assign to your Proxy Service. Provide number in [E.164](https://en.wikipedia.org/wiki/E.164) format (e.g. `+16175551212`).
- *
- * @param string $phoneNumber Twilio Number to assign to your Proxy Service
- * @return $this Fluent Builder
- */
- public function setPhoneNumber($phoneNumber) {
- $this->options['phoneNumber'] = $phoneNumber;
- return $this;
- }
-
- /**
- * Whether or not the number should be excluded from being assigned to a participant using proxy pool logic
- *
- * @param boolean $isReserved Reserve for manual assignment to participants
- * only.
- * @return $this Fluent Builder
- */
- public function setIsReserved($isReserved) {
- $this->options['isReserved'] = $isReserved;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.CreatePhoneNumberOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdatePhoneNumberOptions extends Options {
- /**
- * @param boolean $isReserved Reserve for manual assignment to participants
- * only.
- */
- public function __construct($isReserved = Values::NONE) {
- $this->options['isReserved'] = $isReserved;
- }
-
- /**
- * Whether or not the number should be excluded from being assigned to a participant using proxy pool logic
- *
- * @param boolean $isReserved Reserve for manual assignment to participants
- * only.
- * @return $this Fluent Builder
- */
- public function setIsReserved($isReserved) {
- $this->options['isReserved'] = $isReserved;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.UpdatePhoneNumberOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberPage.php
deleted file mode 100644
index 5133d91..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/PhoneNumberPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PhoneNumberInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.PhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionContext.php
deleted file mode 100644
index 9833324..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionContext.php
+++ /dev/null
@@ -1,84 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sessionSid' => $sessionSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sessionSid) . '/Interactions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a InteractionInstance
- *
- * @return InteractionInstance Fetched InteractionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InteractionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the InteractionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.InteractionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionInstance.php
deleted file mode 100644
index db5982e..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionInstance.php
+++ /dev/null
@@ -1,158 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'sessionSid' => Values::array_get($payload, 'session_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'data' => Values::array_get($payload, 'data'),
- 'type' => Values::array_get($payload, 'type'),
- 'inboundParticipantSid' => Values::array_get($payload, 'inbound_participant_sid'),
- 'inboundResourceSid' => Values::array_get($payload, 'inbound_resource_sid'),
- 'inboundResourceStatus' => Values::array_get($payload, 'inbound_resource_status'),
- 'inboundResourceType' => Values::array_get($payload, 'inbound_resource_type'),
- 'inboundResourceUrl' => Values::array_get($payload, 'inbound_resource_url'),
- 'outboundParticipantSid' => Values::array_get($payload, 'outbound_participant_sid'),
- 'outboundResourceSid' => Values::array_get($payload, 'outbound_resource_sid'),
- 'outboundResourceStatus' => Values::array_get($payload, 'outbound_resource_status'),
- 'outboundResourceType' => Values::array_get($payload, 'outbound_resource_type'),
- 'outboundResourceUrl' => Values::array_get($payload, 'outbound_resource_url'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'sessionSid' => $sessionSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\InteractionContext Context for
- * this
- * InteractionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new InteractionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a InteractionInstance
- *
- * @return InteractionInstance Fetched InteractionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the InteractionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.InteractionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionList.php
deleted file mode 100644
index 3bc7211..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionList.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sessionSid' => $sessionSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sessionSid) . '/Interactions';
- }
-
- /**
- * Streams InteractionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads InteractionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return InteractionInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of InteractionInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of InteractionInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'InboundParticipantStatus' => $options['inboundParticipantStatus'],
- 'OutboundParticipantStatus' => $options['outboundParticipantStatus'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new InteractionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of InteractionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of InteractionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new InteractionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a InteractionContext
- *
- * @param string $sid A string that uniquely identifies this Interaction.
- * @return \Twilio\Rest\Proxy\V1\Service\Session\InteractionContext
- */
- public function getContext($sid) {
- return new InteractionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.InteractionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.php
deleted file mode 100644
index 0b29e68..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['inboundParticipantStatus'] = $inboundParticipantStatus;
- $this->options['outboundParticipantStatus'] = $outboundParticipantStatus;
- }
-
- /**
- * The inbound_participant_status
- *
- * @param string $inboundParticipantStatus The inbound_participant_status
- * @return $this Fluent Builder
- */
- public function setInboundParticipantStatus($inboundParticipantStatus) {
- $this->options['inboundParticipantStatus'] = $inboundParticipantStatus;
- return $this;
- }
-
- /**
- * The outbound_participant_status
- *
- * @param string $outboundParticipantStatus The outbound_participant_status
- * @return $this Fluent Builder
- */
- public function setOutboundParticipantStatus($outboundParticipantStatus) {
- $this->options['outboundParticipantStatus'] = $outboundParticipantStatus;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.ReadInteractionOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionPage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionPage.php
deleted file mode 100644
index 05f6a40..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/InteractionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new InteractionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.InteractionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionContext.php
deleted file mode 100644
index 0fd1e40..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'sessionSid' => $sessionSid,
- 'participantSid' => $participantSid,
- 'sid' => $sid,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sessionSid) . '/Participants/' . rawurlencode($participantSid) . '/MessageInteractions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a MessageInteractionInstance
- *
- * @return MessageInteractionInstance Fetched MessageInteractionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInteractionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['participantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.MessageInteractionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionInstance.php
deleted file mode 100644
index ce6ab76..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionInstance.php
+++ /dev/null
@@ -1,152 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'sessionSid' => Values::array_get($payload, 'session_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'data' => Values::array_get($payload, 'data'),
- 'type' => Values::array_get($payload, 'type'),
- 'participantSid' => Values::array_get($payload, 'participant_sid'),
- 'inboundParticipantSid' => Values::array_get($payload, 'inbound_participant_sid'),
- 'inboundResourceSid' => Values::array_get($payload, 'inbound_resource_sid'),
- 'inboundResourceStatus' => Values::array_get($payload, 'inbound_resource_status'),
- 'inboundResourceType' => Values::array_get($payload, 'inbound_resource_type'),
- 'inboundResourceUrl' => Values::array_get($payload, 'inbound_resource_url'),
- 'outboundParticipantSid' => Values::array_get($payload, 'outbound_participant_sid'),
- 'outboundResourceSid' => Values::array_get($payload, 'outbound_resource_sid'),
- 'outboundResourceStatus' => Values::array_get($payload, 'outbound_resource_status'),
- 'outboundResourceType' => Values::array_get($payload, 'outbound_resource_type'),
- 'outboundResourceUrl' => Values::array_get($payload, 'outbound_resource_url'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'sessionSid' => $sessionSid,
- 'participantSid' => $participantSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionContext Context for this
- * MessageInteractionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new MessageInteractionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['participantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a MessageInteractionInstance
- *
- * @return MessageInteractionInstance Fetched MessageInteractionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.MessageInteractionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionList.php
deleted file mode 100644
index b1798e6..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionList.php
+++ /dev/null
@@ -1,186 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'sessionSid' => $sessionSid,
- 'participantSid' => $participantSid,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sessionSid) . '/Participants/' . rawurlencode($participantSid) . '/MessageInteractions';
- }
-
- /**
- * Create a new MessageInteractionInstance
- *
- * @param array|Options $options Optional Arguments
- * @return MessageInteractionInstance Newly created MessageInteractionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Body' => $options['body'],
- 'MediaUrl' => Serialize::map($options['mediaUrl'], function($e) { return $e; }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new MessageInteractionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['participantSid']
- );
- }
-
- /**
- * Streams MessageInteractionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads MessageInteractionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return MessageInteractionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of MessageInteractionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of MessageInteractionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new MessageInteractionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of MessageInteractionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of MessageInteractionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new MessageInteractionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a MessageInteractionContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionContext
- */
- public function getContext($sid) {
- return new MessageInteractionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['participantSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.MessageInteractionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.php
deleted file mode 100644
index d22290c..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['body'] = $body;
- $this->options['mediaUrl'] = $mediaUrl;
- }
-
- /**
- * The message to send to the participant
- *
- * @param string $body Message body
- * @return $this Fluent Builder
- */
- public function setBody($body) {
- $this->options['body'] = $body;
- return $this;
- }
-
- /**
- * Not currently supported during beta.
- *
- * @param string $mediaUrl Not supported in beta
- * @return $this Fluent Builder
- */
- public function setMediaUrl($mediaUrl) {
- $this->options['mediaUrl'] = $mediaUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.CreateMessageInteractionOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionPage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionPage.php
deleted file mode 100644
index 9bda32c..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionPage.php
+++ /dev/null
@@ -1,43 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new MessageInteractionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['participantSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.MessageInteractionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantContext.php
deleted file mode 100644
index 1f31d5d..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantContext.php
+++ /dev/null
@@ -1,142 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sessionSid' => $sessionSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sessionSid) . '/Participants/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ParticipantInstance
- *
- * @return ParticipantInstance Fetched ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ParticipantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the messageInteractions
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionList
- */
- protected function getMessageInteractions() {
- if (!$this->_messageInteractions) {
- $this->_messageInteractions = new MessageInteractionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_messageInteractions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.ParticipantContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantInstance.php
deleted file mode 100644
index 111f0f3..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantInstance.php
+++ /dev/null
@@ -1,157 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'sessionSid' => Values::array_get($payload, 'session_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'identifier' => Values::array_get($payload, 'identifier'),
- 'proxyIdentifier' => Values::array_get($payload, 'proxy_identifier'),
- 'proxyIdentifierSid' => Values::array_get($payload, 'proxy_identifier_sid'),
- 'dateDeleted' => Deserialize::dateTime(Values::array_get($payload, 'date_deleted')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'sessionSid' => $sessionSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\ParticipantContext Context for
- * this
- * ParticipantInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ParticipantContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ParticipantInstance
- *
- * @return ParticipantInstance Fetched ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ParticipantInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the messageInteractions
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionList
- */
- protected function getMessageInteractions() {
- return $this->proxy()->messageInteractions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.ParticipantInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php
deleted file mode 100644
index ac74d19..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php
+++ /dev/null
@@ -1,185 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sessionSid' => $sessionSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sessionSid) . '/Participants';
- }
-
- /**
- * Streams ParticipantInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ParticipantInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ParticipantInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ParticipantInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ParticipantInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Identifier' => $options['identifier'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ParticipantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ParticipantInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ParticipantInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ParticipantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new ParticipantInstance
- *
- * @param string $identifier The phone number of this Participant.
- * @param array|Options $options Optional Arguments
- * @return ParticipantInstance Newly created ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($identifier, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Identifier' => $identifier,
- 'FriendlyName' => $options['friendlyName'],
- 'ProxyIdentifier' => $options['proxyIdentifier'],
- 'ProxyIdentifierSid' => $options['proxyIdentifierSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid']
- );
- }
-
- /**
- * Constructs a ParticipantContext
- *
- * @param string $sid A string that uniquely identifies this Participant.
- * @return \Twilio\Rest\Proxy\V1\Service\Session\ParticipantContext
- */
- public function getContext($sid) {
- return new ParticipantContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sessionSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.ParticipantList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.php
deleted file mode 100644
index d04bf01..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.php
+++ /dev/null
@@ -1,135 +0,0 @@
-options['identifier'] = $identifier;
- }
-
- /**
- * The identifier
- *
- * @param string $identifier The identifier
- * @return $this Fluent Builder
- */
- public function setIdentifier($identifier) {
- $this->options['identifier'] = $identifier;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.ReadParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateParticipantOptions extends Options {
- /**
- * @param string $friendlyName A human-readable description of this resource.
- * @param string $proxyIdentifier The proxy phone number to use for this
- * Participant.
- * @param string $proxyIdentifierSid The proxy_identifier_sid
- */
- public function __construct($friendlyName = Values::NONE, $proxyIdentifier = Values::NONE, $proxyIdentifierSid = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['proxyIdentifier'] = $proxyIdentifier;
- $this->options['proxyIdentifierSid'] = $proxyIdentifierSid;
- }
-
- /**
- * A human-readable description of this resource, up to 64 characters. Should not include PII.
- *
- * @param string $friendlyName A human-readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The proxy phone number to use for this Participant. If not specified, Proxy will select a number from the pool.
- *
- * @param string $proxyIdentifier The proxy phone number to use for this
- * Participant.
- * @return $this Fluent Builder
- */
- public function setProxyIdentifier($proxyIdentifier) {
- $this->options['proxyIdentifier'] = $proxyIdentifier;
- return $this;
- }
-
- /**
- * The proxy_identifier_sid
- *
- * @param string $proxyIdentifierSid The proxy_identifier_sid
- * @return $this Fluent Builder
- */
- public function setProxyIdentifierSid($proxyIdentifierSid) {
- $this->options['proxyIdentifierSid'] = $proxyIdentifierSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.CreateParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantPage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantPage.php
deleted file mode 100644
index b06e2b4..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/Session/ParticipantPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sessionSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.ParticipantPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionContext.php
deleted file mode 100644
index 0cc6959..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionContext.php
+++ /dev/null
@@ -1,195 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SessionInstance
- *
- * @return SessionInstance Fetched SessionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SessionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SessionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SessionInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SessionInstance Updated SessionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'DateExpiry' => Serialize::iso8601DateTime($options['dateExpiry']),
- 'Ttl' => $options['ttl'],
- 'Mode' => $options['mode'],
- 'Status' => $options['status'],
- 'Participants' => Serialize::map($options['participants'], function($e) { return Serialize::jsonObject($e); }),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SessionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the interactions
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\InteractionList
- */
- protected function getInteractions() {
- if (!$this->_interactions) {
- $this->_interactions = new InteractionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_interactions;
- }
-
- /**
- * Access the participants
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\ParticipantList
- */
- protected function getParticipants() {
- if (!$this->_participants) {
- $this->_participants = new ParticipantList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_participants;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.SessionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionInstance.php
deleted file mode 100644
index c9454f9..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionInstance.php
+++ /dev/null
@@ -1,178 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateStarted' => Deserialize::dateTime(Values::array_get($payload, 'date_started')),
- 'dateEnded' => Deserialize::dateTime(Values::array_get($payload, 'date_ended')),
- 'dateLastInteraction' => Deserialize::dateTime(Values::array_get($payload, 'date_last_interaction')),
- 'dateExpiry' => Deserialize::dateTime(Values::array_get($payload, 'date_expiry')),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'status' => Values::array_get($payload, 'status'),
- 'closedReason' => Values::array_get($payload, 'closed_reason'),
- 'ttl' => Values::array_get($payload, 'ttl'),
- 'mode' => Values::array_get($payload, 'mode'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\Service\SessionContext Context for this
- * SessionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SessionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SessionInstance
- *
- * @return SessionInstance Fetched SessionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SessionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SessionInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SessionInstance Updated SessionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the interactions
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\InteractionList
- */
- protected function getInteractions() {
- return $this->proxy()->interactions;
- }
-
- /**
- * Access the participants
- *
- * @return \Twilio\Rest\Proxy\V1\Service\Session\ParticipantList
- */
- protected function getParticipants() {
- return $this->proxy()->participants;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.SessionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionList.php
deleted file mode 100644
index 4b526cc..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionList.php
+++ /dev/null
@@ -1,177 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Sessions';
- }
-
- /**
- * Streams SessionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SessionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SessionInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SessionInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SessionInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'Status' => $options['status'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SessionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SessionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SessionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SessionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new SessionInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SessionInstance Newly created SessionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'DateExpiry' => Serialize::iso8601DateTime($options['dateExpiry']),
- 'Ttl' => $options['ttl'],
- 'Mode' => $options['mode'],
- 'Status' => $options['status'],
- 'Participants' => Serialize::map($options['participants'], function($e) { return Serialize::jsonObject($e); }),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SessionInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Constructs a SessionContext
- *
- * @param string $sid A string that uniquely identifies this Session.
- * @return \Twilio\Rest\Proxy\V1\Service\SessionContext
- */
- public function getContext($sid) {
- return new SessionContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.SessionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionOptions.php
deleted file mode 100644
index 13ebd5d..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionOptions.php
+++ /dev/null
@@ -1,287 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['status'] = $status;
- }
-
- /**
- * The unique_name
- *
- * @param string $uniqueName The unique_name
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The Status of this Session. One of `in-progress`, `closed`, `failed`, `unknown`.
- *
- * @param string $status The Status of this Session
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.ReadSessionOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateSessionOptions extends Options {
- /**
- * @param string $uniqueName A unique, developer assigned name of this Session.
- * @param \DateTime $dateExpiry The date this Session should expire
- * @param integer $ttl TTL for a Session, in seconds.
- * @param string $mode The Mode of this Session
- * @param string $status Session status
- * @param array $participants The participants
- */
- public function __construct($uniqueName = Values::NONE, $dateExpiry = Values::NONE, $ttl = Values::NONE, $mode = Values::NONE, $status = Values::NONE, $participants = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- $this->options['dateExpiry'] = $dateExpiry;
- $this->options['ttl'] = $ttl;
- $this->options['mode'] = $mode;
- $this->options['status'] = $status;
- $this->options['participants'] = $participants;
- }
-
- /**
- * Your unique identifier for this Session such as a Job ID or conversation ID. *Should not contain PII.*
- *
- * @param string $uniqueName A unique, developer assigned name of this Session.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * An absolute time (ISO 8601) at which this Session should close. If this is populated, it takes precedence over TTL values.
- *
- * @param \DateTime $dateExpiry The date this Session should expire
- * @return $this Fluent Builder
- */
- public function setDateExpiry($dateExpiry) {
- $this->options['dateExpiry'] = $dateExpiry;
- return $this;
- }
-
- /**
- * The time, in seconds, after the latest of Session create time or the Session's last Interaction time at which the session will expire.
- *
- * @param integer $ttl TTL for a Session, in seconds.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * The type of communications mediums allowed on a Session. Defaults to `voice-and-message`. Other options are `voice-only` or `message-only`.
- *
- * @param string $mode The Mode of this Session
- * @return $this Fluent Builder
- */
- public function setMode($mode) {
- $this->options['mode'] = $mode;
- return $this;
- }
-
- /**
- * Set this value to `closed` to close the session. A Session can be re-opened by posting to a closed session with the value `in-progress`. This will be `open` by default on create.
- *
- * @param string $status Session status
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The participants
- *
- * @param array $participants The participants
- * @return $this Fluent Builder
- */
- public function setParticipants($participants) {
- $this->options['participants'] = $participants;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.CreateSessionOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSessionOptions extends Options {
- /**
- * @param \DateTime $dateExpiry The date this Session should expire
- * @param integer $ttl TTL for a Session, in seconds.
- * @param string $mode The mode
- * @param string $status The Status of this Session
- * @param array $participants The participants
- */
- public function __construct($dateExpiry = Values::NONE, $ttl = Values::NONE, $mode = Values::NONE, $status = Values::NONE, $participants = Values::NONE) {
- $this->options['dateExpiry'] = $dateExpiry;
- $this->options['ttl'] = $ttl;
- $this->options['mode'] = $mode;
- $this->options['status'] = $status;
- $this->options['participants'] = $participants;
- }
-
- /**
- * The date that this Session should expire, given in ISO 8601 format.
- *
- * @param \DateTime $dateExpiry The date this Session should expire
- * @return $this Fluent Builder
- */
- public function setDateExpiry($dateExpiry) {
- $this->options['dateExpiry'] = $dateExpiry;
- return $this;
- }
-
- /**
- * The time, in seconds, after the latest of Session create time or the Session's last Interaction time at which the session will expire.
- *
- * @param integer $ttl TTL for a Session, in seconds.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * The mode
- *
- * @param string $mode The mode
- * @return $this Fluent Builder
- */
- public function setMode($mode) {
- $this->options['mode'] = $mode;
- return $this;
- }
-
- /**
- * The Status of this Session. Set to `in-progress` to re-open a session or `closed` to close a session.
- *
- * @param string $status The Status of this Session
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The participants
- *
- * @param array $participants The participants
- * @return $this Fluent Builder
- */
- public function setParticipants($participants) {
- $this->options['participants'] = $participants;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.UpdateSessionOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionPage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionPage.php
deleted file mode 100644
index ec8d247..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/SessionPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SessionInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.SessionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeContext.php
deleted file mode 100644
index e0d4999..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeContext.php
+++ /dev/null
@@ -1,111 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/ShortCodes/' . rawurlencode($sid) . '';
- }
-
- /**
- * Deletes the ShortCodeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Fetch a ShortCodeInstance
- *
- * @return ShortCodeInstance Fetched ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ShortCodeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ShortCodeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ShortCodeInstance Updated ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('IsReserved' => Serialize::booleanToString($options['isReserved']), ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ShortCodeInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.ShortCodeContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeInstance.php
deleted file mode 100644
index 0a7297f..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeInstance.php
+++ /dev/null
@@ -1,145 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'shortCode' => Values::array_get($payload, 'short_code'),
- 'isoCountry' => Values::array_get($payload, 'iso_country'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'url' => Values::array_get($payload, 'url'),
- 'isReserved' => Values::array_get($payload, 'is_reserved'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\Service\ShortCodeContext Context for this
- * ShortCodeInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ShortCodeContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Deletes the ShortCodeInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Fetch a ShortCodeInstance
- *
- * @return ShortCodeInstance Fetched ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ShortCodeInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ShortCodeInstance Updated ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.ShortCodeInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeList.php
deleted file mode 100644
index e15dc59..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeList.php
+++ /dev/null
@@ -1,160 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/ShortCodes';
- }
-
- /**
- * Create a new ShortCodeInstance
- *
- * @param string $sid A string that uniquely identifies this Short Code.
- * @return ShortCodeInstance Newly created ShortCodeInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($sid) {
- $data = Values::of(array('Sid' => $sid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ShortCodeInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams ShortCodeInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ShortCodeInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ShortCodeInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ShortCodeInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ShortCodeInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ShortCodePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ShortCodeInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ShortCodeInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ShortCodePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ShortCodeContext
- *
- * @param string $sid A string that uniquely identifies this Short Code.
- * @return \Twilio\Rest\Proxy\V1\Service\ShortCodeContext
- */
- public function getContext($sid) {
- return new ShortCodeContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.ShortCodeList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.php
deleted file mode 100644
index 5a81ec5..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.php
+++ /dev/null
@@ -1,64 +0,0 @@
-options['isReserved'] = $isReserved;
- }
-
- /**
- * Whether or not the short code should be excluded from being assigned to a participant using proxy pool logic
- *
- * @param boolean $isReserved Reserve for manual assignment to participants
- * only.
- * @return $this Fluent Builder
- */
- public function setIsReserved($isReserved) {
- $this->options['isReserved'] = $isReserved;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.UpdateShortCodeOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodePage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodePage.php
deleted file mode 100644
index 924bcf9..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/Service/ShortCodePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ShortCodeInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.ShortCodePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceContext.php
deleted file mode 100644
index 105c8c9..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceContext.php
+++ /dev/null
@@ -1,195 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'DefaultTtl' => $options['defaultTtl'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'GeoMatchLevel' => $options['geoMatchLevel'],
- 'NumberSelectionBehavior' => $options['numberSelectionBehavior'],
- 'InterceptCallbackUrl' => $options['interceptCallbackUrl'],
- 'OutOfSessionCallbackUrl' => $options['outOfSessionCallbackUrl'],
- 'ChatInstanceSid' => $options['chatInstanceSid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the sessions
- *
- * @return \Twilio\Rest\Proxy\V1\Service\SessionList
- */
- protected function getSessions() {
- if (!$this->_sessions) {
- $this->_sessions = new SessionList($this->version, $this->solution['sid']);
- }
-
- return $this->_sessions;
- }
-
- /**
- * Access the phoneNumbers
- *
- * @return \Twilio\Rest\Proxy\V1\Service\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- if (!$this->_phoneNumbers) {
- $this->_phoneNumbers = new PhoneNumberList($this->version, $this->solution['sid']);
- }
-
- return $this->_phoneNumbers;
- }
-
- /**
- * Access the shortCodes
- *
- * @return \Twilio\Rest\Proxy\V1\Service\ShortCodeList
- */
- protected function getShortCodes() {
- if (!$this->_shortCodes) {
- $this->_shortCodes = new ShortCodeList($this->version, $this->solution['sid']);
- }
-
- return $this->_shortCodes;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceInstance.php
deleted file mode 100644
index da727d4..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceInstance.php
+++ /dev/null
@@ -1,178 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'chatInstanceSid' => Values::array_get($payload, 'chat_instance_sid'),
- 'callbackUrl' => Values::array_get($payload, 'callback_url'),
- 'defaultTtl' => Values::array_get($payload, 'default_ttl'),
- 'numberSelectionBehavior' => Values::array_get($payload, 'number_selection_behavior'),
- 'geoMatchLevel' => Values::array_get($payload, 'geo_match_level'),
- 'interceptCallbackUrl' => Values::array_get($payload, 'intercept_callback_url'),
- 'outOfSessionCallbackUrl' => Values::array_get($payload, 'out_of_session_callback_url'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Proxy\V1\ServiceContext Context for this ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the sessions
- *
- * @return \Twilio\Rest\Proxy\V1\Service\SessionList
- */
- protected function getSessions() {
- return $this->proxy()->sessions;
- }
-
- /**
- * Access the phoneNumbers
- *
- * @return \Twilio\Rest\Proxy\V1\Service\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- return $this->proxy()->phoneNumbers;
- }
-
- /**
- * Access the shortCodes
- *
- * @return \Twilio\Rest\Proxy\V1\Service\ShortCodeList
- */
- protected function getShortCodes() {
- return $this->proxy()->shortCodes;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Proxy.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceList.php
deleted file mode 100644
index 5d92ff8..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $uniqueName The human-readable string that uniquely identifies
- * this Service.
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($uniqueName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $uniqueName,
- 'DefaultTtl' => $options['defaultTtl'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'GeoMatchLevel' => $options['geoMatchLevel'],
- 'NumberSelectionBehavior' => $options['numberSelectionBehavior'],
- 'InterceptCallbackUrl' => $options['interceptCallbackUrl'],
- 'OutOfSessionCallbackUrl' => $options['outOfSessionCallbackUrl'],
- 'ChatInstanceSid' => $options['chatInstanceSid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid A string that uniquely identifies this Service.
- * @return \Twilio\Rest\Proxy\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceOptions.php
deleted file mode 100644
index 26a7733..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/ServiceOptions.php
+++ /dev/null
@@ -1,316 +0,0 @@
-options['defaultTtl'] = $defaultTtl;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['geoMatchLevel'] = $geoMatchLevel;
- $this->options['numberSelectionBehavior'] = $numberSelectionBehavior;
- $this->options['interceptCallbackUrl'] = $interceptCallbackUrl;
- $this->options['outOfSessionCallbackUrl'] = $outOfSessionCallbackUrl;
- $this->options['chatInstanceSid'] = $chatInstanceSid;
- }
-
- /**
- * The default time delay in seconds after the latest of Session create time or the Session's last Interaction time, after which a session will expire. Used for sessions where TTL is not specified.
- *
- * @param integer $defaultTtl Default TTL for Sessions in Service, in seconds.
- * @return $this Fluent Builder
- */
- public function setDefaultTtl($defaultTtl) {
- $this->options['defaultTtl'] = $defaultTtl;
- return $this;
- }
-
- /**
- * The URL to which Twilio will make callbacks on interaction status changes.
- *
- * @param string $callbackUrl URL Twilio will send callbacks to
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * Whether proxy number selected must be in the same area code as the participant identifier. Options: `country`, `area-code`, `extended-area-code`. Default: `country`. Levels lower than country are only available in North America.
- *
- * @param string $geoMatchLevel Whether proxy number selected must be in the
- * same area code as the participant identifier.
- * @return $this Fluent Builder
- */
- public function setGeoMatchLevel($geoMatchLevel) {
- $this->options['geoMatchLevel'] = $geoMatchLevel;
- return $this;
- }
-
- /**
- * Options: `prefer-sticky`, `avoid-sticky`. Default: `prefer-sticky`.
- *
- * @param string $numberSelectionBehavior What behavior to use when choosing a
- * proxy number.
- * @return $this Fluent Builder
- */
- public function setNumberSelectionBehavior($numberSelectionBehavior) {
- $this->options['numberSelectionBehavior'] = $numberSelectionBehavior;
- return $this;
- }
-
- /**
- * A URL for Twilio call before each Interaction. Returning a 403 status code will prevent the interaction from continuing.
- *
- * @param string $interceptCallbackUrl A URL for Twilio call before each
- * Interaction.
- * @return $this Fluent Builder
- */
- public function setInterceptCallbackUrl($interceptCallbackUrl) {
- $this->options['interceptCallbackUrl'] = $interceptCallbackUrl;
- return $this;
- }
-
- /**
- * A URL for Twilio call when a new Interaction has no [Session](https://www.twilio.com/docs/proxy/api/session).
- *
- * @param string $outOfSessionCallbackUrl A URL for Twilio call when a new
- * Interaction has no Session.
- * @return $this Fluent Builder
- */
- public function setOutOfSessionCallbackUrl($outOfSessionCallbackUrl) {
- $this->options['outOfSessionCallbackUrl'] = $outOfSessionCallbackUrl;
- return $this;
- }
-
- /**
- * The Chat Service Instance sid managed by Proxy Service. Enables Proxy to forward sms and channel messages to this chat instance. This is a one-to-one relationship.
- *
- * @param string $chatInstanceSid The Chat Service Instance sid managed by
- * Proxy Service
- * @return $this Fluent Builder
- */
- public function setChatInstanceSid($chatInstanceSid) {
- $this->options['chatInstanceSid'] = $chatInstanceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $uniqueName A human-readable description of this resource.
- * @param integer $defaultTtl Default TTL for Sessions in Service, in seconds.
- * @param string $callbackUrl URL Twilio will send callbacks to
- * @param string $geoMatchLevel Whether proxy number selected must be in the
- * same area code as the participant identifier.
- * @param string $numberSelectionBehavior What behavior to use when choosing a
- * proxy number.
- * @param string $interceptCallbackUrl A URL for Twilio call before each
- * Interaction.
- * @param string $outOfSessionCallbackUrl A URL for Twilio call when a new
- * Interaction has no Session.
- * @param string $chatInstanceSid The Chat Service Instance sid managed by
- * Proxy Service
- */
- public function __construct($uniqueName = Values::NONE, $defaultTtl = Values::NONE, $callbackUrl = Values::NONE, $geoMatchLevel = Values::NONE, $numberSelectionBehavior = Values::NONE, $interceptCallbackUrl = Values::NONE, $outOfSessionCallbackUrl = Values::NONE, $chatInstanceSid = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- $this->options['defaultTtl'] = $defaultTtl;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['geoMatchLevel'] = $geoMatchLevel;
- $this->options['numberSelectionBehavior'] = $numberSelectionBehavior;
- $this->options['interceptCallbackUrl'] = $interceptCallbackUrl;
- $this->options['outOfSessionCallbackUrl'] = $outOfSessionCallbackUrl;
- $this->options['chatInstanceSid'] = $chatInstanceSid;
- }
-
- /**
- * A human-readable description of this resource, up to 64 characters. *Should not contain PII.*
- *
- * @param string $uniqueName A human-readable description of this resource.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The default time delay in seconds after the latest of Session create time or the Session's last Interaction time, after which a session will expire. Used for sessions where TTL is not specified.
- *
- * @param integer $defaultTtl Default TTL for Sessions in Service, in seconds.
- * @return $this Fluent Builder
- */
- public function setDefaultTtl($defaultTtl) {
- $this->options['defaultTtl'] = $defaultTtl;
- return $this;
- }
-
- /**
- * The URL to which Twilio will make callbacks on interaction status changes.
- *
- * @param string $callbackUrl URL Twilio will send callbacks to
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * Whether proxy number selected must be in the same area code as the participant identifier. Options: `country`, `area-code`, `extended-area-code`. Default: `country`. Levels lower than country are only available in North America.
- *
- * @param string $geoMatchLevel Whether proxy number selected must be in the
- * same area code as the participant identifier.
- * @return $this Fluent Builder
- */
- public function setGeoMatchLevel($geoMatchLevel) {
- $this->options['geoMatchLevel'] = $geoMatchLevel;
- return $this;
- }
-
- /**
- * Options: `prefer-sticky`, `avoid-sticky`. Default: `prefer-sticky`.
- *
- * @param string $numberSelectionBehavior What behavior to use when choosing a
- * proxy number.
- * @return $this Fluent Builder
- */
- public function setNumberSelectionBehavior($numberSelectionBehavior) {
- $this->options['numberSelectionBehavior'] = $numberSelectionBehavior;
- return $this;
- }
-
- /**
- * A URL for Twilio call before each Interaction. Returning a 403 status code will prevent the interaction from continuing.
- *
- * @param string $interceptCallbackUrl A URL for Twilio call before each
- * Interaction.
- * @return $this Fluent Builder
- */
- public function setInterceptCallbackUrl($interceptCallbackUrl) {
- $this->options['interceptCallbackUrl'] = $interceptCallbackUrl;
- return $this;
- }
-
- /**
- * A URL for Twilio call when a new Interaction has no [Session](https://www.twilio.com/docs/proxy/api/session).
- *
- * @param string $outOfSessionCallbackUrl A URL for Twilio call when a new
- * Interaction has no Session.
- * @return $this Fluent Builder
- */
- public function setOutOfSessionCallbackUrl($outOfSessionCallbackUrl) {
- $this->options['outOfSessionCallbackUrl'] = $outOfSessionCallbackUrl;
- return $this;
- }
-
- /**
- * The Chat Service Instance sid managed by Proxy Service. Enables Proxy to forward sms and channel messages to this chat instance. This is a one-to-one relationship.
- *
- * @param string $chatInstanceSid The Chat Service Instance sid managed by
- * Proxy Service
- * @return $this Fluent Builder
- */
- public function setChatInstanceSid($chatInstanceSid) {
- $this->options['chatInstanceSid'] = $chatInstanceSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Proxy.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Proxy/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Proxy/V1/ServicePage.php
deleted file mode 100644
index ef844e7..0000000
--- a/public/twilio-php/Twilio/Rest/Proxy/V1/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Proxy.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio.php b/public/twilio-php/Twilio/Rest/Studio.php
deleted file mode 100644
index 4016de8..0000000
--- a/public/twilio-php/Twilio/Rest/Studio.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://studio.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Studio\V1 Version v1 of studio
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Studio\V1\FlowList
- */
- protected function getFlows() {
- return $this->v1->flows;
- }
-
- /**
- * @param string $sid A string that uniquely identifies this Flow.
- * @return \Twilio\Rest\Studio\V1\FlowContext
- */
- protected function contextFlows($sid) {
- return $this->v1->flows($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1.php b/public/twilio-php/Twilio/Rest/Studio/V1.php
deleted file mode 100644
index 19e7760..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Studio\V1\FlowList
- */
- protected function getFlows() {
- if (!$this->_flows) {
- $this->_flows = new FlowList($this);
- }
- return $this->_flows;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextContext.php
deleted file mode 100644
index 172e010..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextContext.php
+++ /dev/null
@@ -1,69 +0,0 @@
-solution = array('flowSid' => $flowSid, 'engagementSid' => $engagementSid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Engagements/' . rawurlencode($engagementSid) . '/Context';
- }
-
- /**
- * Fetch a EngagementContextInstance
- *
- * @return EngagementContextInstance Fetched EngagementContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EngagementContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['engagementSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.EngagementContextContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextInstance.php
deleted file mode 100644
index 35045bc..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextInstance.php
+++ /dev/null
@@ -1,109 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'context' => Values::array_get($payload, 'context'),
- 'engagementSid' => Values::array_get($payload, 'engagement_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('flowSid' => $flowSid, 'engagementSid' => $engagementSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\EngagementContextContext Context for this EngagementContextInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new EngagementContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a EngagementContextInstance
- *
- * @return EngagementContextInstance Fetched EngagementContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.EngagementContextInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextList.php
deleted file mode 100644
index 3965e0d..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('flowSid' => $flowSid, 'engagementSid' => $engagementSid, );
- }
-
- /**
- * Constructs a EngagementContextContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\EngagementContextContext
- */
- public function getContext() {
- return new EngagementContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.EngagementContextList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextPage.php
deleted file mode 100644
index ffa5490..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new EngagementContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['engagementSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.EngagementContextPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextContext.php
deleted file mode 100644
index b74b488..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextContext.php
+++ /dev/null
@@ -1,75 +0,0 @@
-solution = array(
- 'flowSid' => $flowSid,
- 'engagementSid' => $engagementSid,
- 'stepSid' => $stepSid,
- );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Engagements/' . rawurlencode($engagementSid) . '/Steps/' . rawurlencode($stepSid) . '/Context';
- }
-
- /**
- * Fetch a StepContextInstance
- *
- * @return StepContextInstance Fetched StepContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new StepContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['stepSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.StepContextContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextInstance.php
deleted file mode 100644
index 09e20d7..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextInstance.php
+++ /dev/null
@@ -1,117 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'context' => Values::array_get($payload, 'context'),
- 'engagementSid' => Values::array_get($payload, 'engagement_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'stepSid' => Values::array_get($payload, 'step_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'flowSid' => $flowSid,
- 'engagementSid' => $engagementSid,
- 'stepSid' => $stepSid,
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\Step\StepContextContext Context for this StepContextInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new StepContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['stepSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a StepContextInstance
- *
- * @return StepContextInstance Fetched StepContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.StepContextInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextList.php
deleted file mode 100644
index 2db4d02..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextList.php
+++ /dev/null
@@ -1,58 +0,0 @@
-solution = array(
- 'flowSid' => $flowSid,
- 'engagementSid' => $engagementSid,
- 'stepSid' => $stepSid,
- );
- }
-
- /**
- * Constructs a StepContextContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\Step\StepContextContext
- */
- public function getContext() {
- return new StepContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['stepSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.StepContextList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextPage.php
deleted file mode 100644
index 4e99f12..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextPage.php
+++ /dev/null
@@ -1,40 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new StepContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['stepSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.StepContextPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepContext.php
deleted file mode 100644
index ddfdc17..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepContext.php
+++ /dev/null
@@ -1,130 +0,0 @@
-solution = array('flowSid' => $flowSid, 'engagementSid' => $engagementSid, 'sid' => $sid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Engagements/' . rawurlencode($engagementSid) . '/Steps/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a StepInstance
- *
- * @return StepInstance Fetched StepInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new StepInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the stepContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\Step\StepContextList
- */
- protected function getStepContext() {
- if (!$this->_stepContext) {
- $this->_stepContext = new StepContextList(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_stepContext;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.StepContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepInstance.php
deleted file mode 100644
index 3bbbe6c..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepInstance.php
+++ /dev/null
@@ -1,142 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'engagementSid' => Values::array_get($payload, 'engagement_sid'),
- 'name' => Values::array_get($payload, 'name'),
- 'context' => Values::array_get($payload, 'context'),
- 'transitionedFrom' => Values::array_get($payload, 'transitioned_from'),
- 'transitionedTo' => Values::array_get($payload, 'transitioned_to'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'flowSid' => $flowSid,
- 'engagementSid' => $engagementSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepContext Context for this
- * StepInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new StepContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a StepInstance
- *
- * @return StepInstance Fetched StepInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the stepContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\Step\StepContextList
- */
- protected function getStepContext() {
- return $this->proxy()->stepContext;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.StepInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php
deleted file mode 100644
index cac2e32..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('flowSid' => $flowSid, 'engagementSid' => $engagementSid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Engagements/' . rawurlencode($engagementSid) . '/Steps';
- }
-
- /**
- * Streams StepInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads StepInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return StepInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of StepInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of StepInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new StepPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of StepInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of StepInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new StepPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a StepContext
- *
- * @param string $sid Step Sid.
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepContext
- */
- public function getContext($sid) {
- return new StepContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['engagementSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.StepList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepPage.php
deleted file mode 100644
index 615522c..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Engagement/StepPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new StepInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['engagementSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.StepPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementContext.php
deleted file mode 100644
index ef88307..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementContext.php
+++ /dev/null
@@ -1,154 +0,0 @@
-solution = array('flowSid' => $flowSid, 'sid' => $sid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Engagements/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a EngagementInstance
- *
- * @return EngagementInstance Fetched EngagementInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EngagementInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the EngagementInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the steps
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepList
- */
- protected function getSteps() {
- if (!$this->_steps) {
- $this->_steps = new StepList($this->version, $this->solution['flowSid'], $this->solution['sid']);
- }
-
- return $this->_steps;
- }
-
- /**
- * Access the engagementContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\EngagementContextList
- */
- protected function getEngagementContext() {
- if (!$this->_engagementContext) {
- $this->_engagementContext = new EngagementContextList(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_engagementContext;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.EngagementContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementInstance.php
deleted file mode 100644
index c70bdd7..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'contactSid' => Values::array_get($payload, 'contact_sid'),
- 'contactChannelAddress' => Values::array_get($payload, 'contact_channel_address'),
- 'context' => Values::array_get($payload, 'context'),
- 'status' => Values::array_get($payload, 'status'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('flowSid' => $flowSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\EngagementContext Context for this
- * EngagementInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new EngagementContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a EngagementInstance
- *
- * @return EngagementInstance Fetched EngagementInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the EngagementInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the steps
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepList
- */
- protected function getSteps() {
- return $this->proxy()->steps;
- }
-
- /**
- * Access the engagementContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Engagement\EngagementContextList
- */
- protected function getEngagementContext() {
- return $this->proxy()->engagementContext;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.EngagementInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementList.php
deleted file mode 100644
index ef8e55e..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array('flowSid' => $flowSid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Engagements';
- }
-
- /**
- * Streams EngagementInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads EngagementInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return EngagementInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of EngagementInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of EngagementInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EngagementPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of EngagementInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of EngagementInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new EngagementPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new EngagementInstance
- *
- * @param string $to The Contact phone number to start a Studio Flow Engagement.
- * @param string $from The Twilio phone number to send messages or initiate
- * calls from during the Flow Engagement.
- * @param array|Options $options Optional Arguments
- * @return EngagementInstance Newly created EngagementInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $from, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'From' => $from,
- 'Parameters' => Serialize::jsonObject($options['parameters']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new EngagementInstance($this->version, $payload, $this->solution['flowSid']);
- }
-
- /**
- * Constructs a EngagementContext
- *
- * @param string $sid Engagement Sid.
- * @return \Twilio\Rest\Studio\V1\Flow\EngagementContext
- */
- public function getContext($sid) {
- return new EngagementContext($this->version, $this->solution['flowSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.EngagementList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementOptions.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementOptions.php
deleted file mode 100644
index bc9ca01..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['parameters'] = $parameters;
- }
-
- /**
- * JSON data that will be added to your flow's context and can accessed as variables inside your flow. For example, if you pass in Parameters={'name':'Zeke'} then inside a widget you can reference the variable {{flow.data.name}} which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string.
- *
- * @param array $parameters JSON data that will be added to your flow's context
- * and can accessed as variables inside your flow.
- * @return $this Fluent Builder
- */
- public function setParameters($parameters) {
- $this->options['parameters'] = $parameters;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Studio.V1.CreateEngagementOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementPage.php
deleted file mode 100644
index 3a6b2dc..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/EngagementPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new EngagementInstance($this->version, $payload, $this->solution['flowSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.EngagementPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextContext.php
deleted file mode 100644
index 4b4c772..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextContext.php
+++ /dev/null
@@ -1,69 +0,0 @@
-solution = array('flowSid' => $flowSid, 'executionSid' => $executionSid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Executions/' . rawurlencode($executionSid) . '/Context';
- }
-
- /**
- * Fetch a ExecutionContextInstance
- *
- * @return ExecutionContextInstance Fetched ExecutionContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExecutionContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['executionSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionContextContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextInstance.php
deleted file mode 100644
index 1088f20..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextInstance.php
+++ /dev/null
@@ -1,109 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'context' => Values::array_get($payload, 'context'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'executionSid' => Values::array_get($payload, 'execution_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('flowSid' => $flowSid, 'executionSid' => $executionSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionContextContext Context for this ExecutionContextInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ExecutionContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ExecutionContextInstance
- *
- * @return ExecutionContextInstance Fetched ExecutionContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionContextInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextList.php
deleted file mode 100644
index f8bbdd5..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('flowSid' => $flowSid, 'executionSid' => $executionSid, );
- }
-
- /**
- * Constructs a ExecutionContextContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionContextContext
- */
- public function getContext() {
- return new ExecutionContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionContextList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextPage.php
deleted file mode 100644
index 91901e9..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ExecutionContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['executionSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionContextPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextContext.php
deleted file mode 100644
index a2c6d9e..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextContext.php
+++ /dev/null
@@ -1,75 +0,0 @@
-solution = array(
- 'flowSid' => $flowSid,
- 'executionSid' => $executionSid,
- 'stepSid' => $stepSid,
- );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Executions/' . rawurlencode($executionSid) . '/Steps/' . rawurlencode($stepSid) . '/Context';
- }
-
- /**
- * Fetch a ExecutionStepContextInstance
- *
- * @return ExecutionStepContextInstance Fetched ExecutionStepContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExecutionStepContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['stepSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionStepContextContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextInstance.php
deleted file mode 100644
index 7ae50d6..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextInstance.php
+++ /dev/null
@@ -1,118 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'context' => Values::array_get($payload, 'context'),
- 'executionSid' => Values::array_get($payload, 'execution_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'stepSid' => Values::array_get($payload, 'step_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'flowSid' => $flowSid,
- 'executionSid' => $executionSid,
- 'stepSid' => $stepSid,
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStep\ExecutionStepContextContext Context for this
- * ExecutionStepContextInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ExecutionStepContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['stepSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ExecutionStepContextInstance
- *
- * @return ExecutionStepContextInstance Fetched ExecutionStepContextInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionStepContextInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextList.php
deleted file mode 100644
index 139d755..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextList.php
+++ /dev/null
@@ -1,58 +0,0 @@
-solution = array(
- 'flowSid' => $flowSid,
- 'executionSid' => $executionSid,
- 'stepSid' => $stepSid,
- );
- }
-
- /**
- * Constructs a ExecutionStepContextContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStep\ExecutionStepContextContext
- */
- public function getContext() {
- return new ExecutionStepContextContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['stepSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionStepContextList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextPage.php
deleted file mode 100644
index 19ae005..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextPage.php
+++ /dev/null
@@ -1,40 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ExecutionStepContextInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['stepSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionStepContextPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepContext.php
deleted file mode 100644
index 16cfebb..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepContext.php
+++ /dev/null
@@ -1,130 +0,0 @@
-solution = array('flowSid' => $flowSid, 'executionSid' => $executionSid, 'sid' => $sid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Executions/' . rawurlencode($executionSid) . '/Steps/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ExecutionStepInstance
- *
- * @return ExecutionStepInstance Fetched ExecutionStepInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExecutionStepInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the stepContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStep\ExecutionStepContextList
- */
- protected function getStepContext() {
- if (!$this->_stepContext) {
- $this->_stepContext = new ExecutionStepContextList(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_stepContext;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionStepContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepInstance.php
deleted file mode 100644
index cb5dad1..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'executionSid' => Values::array_get($payload, 'execution_sid'),
- 'name' => Values::array_get($payload, 'name'),
- 'context' => Values::array_get($payload, 'context'),
- 'transitionedFrom' => Values::array_get($payload, 'transitioned_from'),
- 'transitionedTo' => Values::array_get($payload, 'transitioned_to'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'flowSid' => $flowSid,
- 'executionSid' => $executionSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepContext Context
- * for this
- * ExecutionStepInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ExecutionStepContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ExecutionStepInstance
- *
- * @return ExecutionStepInstance Fetched ExecutionStepInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the stepContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStep\ExecutionStepContextList
- */
- protected function getStepContext() {
- return $this->proxy()->stepContext;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionStepInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php
deleted file mode 100644
index 016debd..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php
+++ /dev/null
@@ -1,143 +0,0 @@
-solution = array('flowSid' => $flowSid, 'executionSid' => $executionSid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Executions/' . rawurlencode($executionSid) . '/Steps';
- }
-
- /**
- * Streams ExecutionStepInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ExecutionStepInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ExecutionStepInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ExecutionStepInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ExecutionStepInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExecutionStepPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ExecutionStepInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ExecutionStepInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ExecutionStepPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ExecutionStepContext
- *
- * @param string $sid Step Sid.
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepContext
- */
- public function getContext($sid) {
- return new ExecutionStepContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['executionSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionStepList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepPage.php
deleted file mode 100644
index 42fe6ab..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ExecutionStepInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['executionSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionStepPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionContext.php
deleted file mode 100644
index 0a0102b..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionContext.php
+++ /dev/null
@@ -1,158 +0,0 @@
-solution = array('flowSid' => $flowSid, 'sid' => $sid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Executions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ExecutionInstance
- *
- * @return ExecutionInstance Fetched ExecutionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExecutionInstance(
- $this->version,
- $payload,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ExecutionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the steps
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepList
- */
- protected function getSteps() {
- if (!$this->_steps) {
- $this->_steps = new ExecutionStepList(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_steps;
- }
-
- /**
- * Access the executionContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionContextList
- */
- protected function getExecutionContext() {
- if (!$this->_executionContext) {
- $this->_executionContext = new ExecutionContextList(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_executionContext;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionInstance.php
deleted file mode 100644
index c3c53b6..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionInstance.php
+++ /dev/null
@@ -1,154 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'flowSid' => Values::array_get($payload, 'flow_sid'),
- 'contactSid' => Values::array_get($payload, 'contact_sid'),
- 'contactChannelAddress' => Values::array_get($payload, 'contact_channel_address'),
- 'context' => Values::array_get($payload, 'context'),
- 'status' => Values::array_get($payload, 'status'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('flowSid' => $flowSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\Flow\ExecutionContext Context for this
- * ExecutionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ExecutionContext(
- $this->version,
- $this->solution['flowSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ExecutionInstance
- *
- * @return ExecutionInstance Fetched ExecutionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ExecutionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the steps
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepList
- */
- protected function getSteps() {
- return $this->proxy()->steps;
- }
-
- /**
- * Access the executionContext
- *
- * @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionContextList
- */
- protected function getExecutionContext() {
- return $this->proxy()->executionContext;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.ExecutionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionList.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionList.php
deleted file mode 100644
index 2da52cc..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array('flowSid' => $flowSid, );
-
- $this->uri = '/Flows/' . rawurlencode($flowSid) . '/Executions';
- }
-
- /**
- * Streams ExecutionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ExecutionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ExecutionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ExecutionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ExecutionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ExecutionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ExecutionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ExecutionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ExecutionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new ExecutionInstance
- *
- * @param string $to The Contact phone number to start a Studio Flow Execution.
- * @param string $from The Twilio phone number to send messages or initiate
- * calls from during the Flow Execution.
- * @param array|Options $options Optional Arguments
- * @return ExecutionInstance Newly created ExecutionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $from, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'From' => $from,
- 'Parameters' => Serialize::jsonObject($options['parameters']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ExecutionInstance($this->version, $payload, $this->solution['flowSid']);
- }
-
- /**
- * Constructs a ExecutionContext
- *
- * @param string $sid Execution Sid.
- * @return \Twilio\Rest\Studio\V1\Flow\ExecutionContext
- */
- public function getContext($sid) {
- return new ExecutionContext($this->version, $this->solution['flowSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.php
deleted file mode 100644
index 7c6b64d..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['parameters'] = $parameters;
- }
-
- /**
- * JSON data that will be added to your flow's context and can accessed as variables inside your flow. For example, if you pass in Parameters={'name':'Zeke'} then inside a widget you can reference the variable {{flow.data.name}} which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string.
- *
- * @param array $parameters JSON data that will be added to your flow's context
- * and can accessed as variables inside your flow.
- * @return $this Fluent Builder
- */
- public function setParameters($parameters) {
- $this->options['parameters'] = $parameters;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Studio.V1.CreateExecutionOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionPage.php
deleted file mode 100644
index 1fc7a78..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/Flow/ExecutionPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ExecutionInstance($this->version, $payload, $this->solution['flowSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.ExecutionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/FlowContext.php b/public/twilio-php/Twilio/Rest/Studio/V1/FlowContext.php
deleted file mode 100644
index cc9e928..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/FlowContext.php
+++ /dev/null
@@ -1,144 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Flows/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a FlowInstance
- *
- * @return FlowInstance Fetched FlowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FlowInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the FlowInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the engagements
- *
- * @return \Twilio\Rest\Studio\V1\Flow\EngagementList
- */
- protected function getEngagements() {
- if (!$this->_engagements) {
- $this->_engagements = new EngagementList($this->version, $this->solution['sid']);
- }
-
- return $this->_engagements;
- }
-
- /**
- * Access the executions
- *
- * @return \Twilio\Rest\Studio\V1\Flow\ExecutionList
- */
- protected function getExecutions() {
- if (!$this->_executions) {
- $this->_executions = new ExecutionList($this->version, $this->solution['sid']);
- }
-
- return $this->_executions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.FlowContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/FlowInstance.php b/public/twilio-php/Twilio/Rest/Studio/V1/FlowInstance.php
deleted file mode 100644
index d001027..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/FlowInstance.php
+++ /dev/null
@@ -1,144 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'status' => Values::array_get($payload, 'status'),
- 'version' => Values::array_get($payload, 'version'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Studio\V1\FlowContext Context for this FlowInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new FlowContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a FlowInstance
- *
- * @return FlowInstance Fetched FlowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the FlowInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the engagements
- *
- * @return \Twilio\Rest\Studio\V1\Flow\EngagementList
- */
- protected function getEngagements() {
- return $this->proxy()->engagements;
- }
-
- /**
- * Access the executions
- *
- * @return \Twilio\Rest\Studio\V1\Flow\ExecutionList
- */
- protected function getExecutions() {
- return $this->proxy()->executions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Studio.V1.FlowInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/FlowList.php b/public/twilio-php/Twilio/Rest/Studio/V1/FlowList.php
deleted file mode 100644
index 2c82d07..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/FlowList.php
+++ /dev/null
@@ -1,136 +0,0 @@
-solution = array();
-
- $this->uri = '/Flows';
- }
-
- /**
- * Streams FlowInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads FlowInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return FlowInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of FlowInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of FlowInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new FlowPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of FlowInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of FlowInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new FlowPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a FlowContext
- *
- * @param string $sid A string that uniquely identifies this Flow.
- * @return \Twilio\Rest\Studio\V1\FlowContext
- */
- public function getContext($sid) {
- return new FlowContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.FlowList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Studio/V1/FlowPage.php b/public/twilio-php/Twilio/Rest/Studio/V1/FlowPage.php
deleted file mode 100644
index 3b2664b..0000000
--- a/public/twilio-php/Twilio/Rest/Studio/V1/FlowPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new FlowInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Studio.V1.FlowPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync.php b/public/twilio-php/Twilio/Rest/Sync.php
deleted file mode 100644
index 0dc1c1c..0000000
--- a/public/twilio-php/Twilio/Rest/Sync.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://sync.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Sync\V1 Version v1 of sync
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Sync\V1\ServiceList
- */
- protected function getServices() {
- return $this->v1->services;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Sync\V1\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v1->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1.php b/public/twilio-php/Twilio/Rest/Sync/V1.php
deleted file mode 100644
index a81bfb5..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Sync\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionContext.php
deleted file mode 100644
index 636ce24..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionContext.php
+++ /dev/null
@@ -1,122 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'documentSid' => $documentSid,
- 'identity' => $identity,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($documentSid) . '/Permissions/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a DocumentPermissionInstance
- *
- * @return DocumentPermissionInstance Fetched DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Deletes the DocumentPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the DocumentPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return DocumentPermissionInstance Updated DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- $data = Values::of(array(
- 'Read' => Serialize::booleanToString($read),
- 'Write' => Serialize::booleanToString($write),
- 'Manage' => Serialize::booleanToString($manage),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DocumentPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.DocumentPermissionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionInstance.php
deleted file mode 100644
index 3534c1c..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'documentSid' => Values::array_get($payload, 'document_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'read' => Values::array_get($payload, 'read'),
- 'write' => Values::array_get($payload, 'write'),
- 'manage' => Values::array_get($payload, 'manage'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'documentSid' => $documentSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\Document\DocumentPermissionContext Context for this DocumentPermissionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DocumentPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DocumentPermissionInstance
- *
- * @return DocumentPermissionInstance Fetched DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the DocumentPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the DocumentPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return DocumentPermissionInstance Updated DocumentPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- return $this->proxy()->update($read, $write, $manage);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.DocumentPermissionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionList.php
deleted file mode 100644
index 212f40a..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'documentSid' => $documentSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($documentSid) . '/Permissions';
- }
-
- /**
- * Streams DocumentPermissionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DocumentPermissionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DocumentPermissionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DocumentPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DocumentPermissionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DocumentPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DocumentPermissionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DocumentPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a DocumentPermissionContext
- *
- * @param string $identity Identity of the user to whom the Sync Document
- * Permission applies.
- * @return \Twilio\Rest\Sync\V1\Service\Document\DocumentPermissionContext
- */
- public function getContext($identity) {
- return new DocumentPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['documentSid'],
- $identity
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.DocumentPermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionPage.php
deleted file mode 100644
index 086cd09..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DocumentPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['documentSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.DocumentPermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentContext.php
deleted file mode 100644
index 5760a97..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentContext.php
+++ /dev/null
@@ -1,171 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a DocumentInstance
- *
- * @return DocumentInstance Fetched DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the DocumentInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the DocumentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DocumentInstance Updated DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Data' => Serialize::jsonObject($options['data']),
- 'Ttl' => $options['ttl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DocumentInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the documentPermissions
- *
- * @return \Twilio\Rest\Sync\V1\Service\Document\DocumentPermissionList
- */
- protected function getDocumentPermissions() {
- if (!$this->_documentPermissions) {
- $this->_documentPermissions = new DocumentPermissionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_documentPermissions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.DocumentContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentInstance.php
deleted file mode 100644
index cbf7911..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentInstance.php
+++ /dev/null
@@ -1,161 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'data' => Values::array_get($payload, 'data'),
- 'dateExpires' => Deserialize::dateTime(Values::array_get($payload, 'date_expires')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\DocumentContext Context for this
- * DocumentInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new DocumentContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a DocumentInstance
- *
- * @return DocumentInstance Fetched DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the DocumentInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the DocumentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DocumentInstance Updated DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the documentPermissions
- *
- * @return \Twilio\Rest\Sync\V1\Service\Document\DocumentPermissionList
- */
- protected function getDocumentPermissions() {
- return $this->proxy()->documentPermissions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.DocumentInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentList.php
deleted file mode 100644
index 26a55f7..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentList.php
+++ /dev/null
@@ -1,169 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents';
- }
-
- /**
- * Create a new DocumentInstance
- *
- * @param array|Options $options Optional Arguments
- * @return DocumentInstance Newly created DocumentInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'Data' => Serialize::jsonObject($options['data']),
- 'Ttl' => $options['ttl'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new DocumentInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams DocumentInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DocumentInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DocumentInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DocumentInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DocumentInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DocumentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DocumentInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DocumentInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DocumentPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a DocumentContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Sync\V1\Service\DocumentContext
- */
- public function getContext($sid) {
- return new DocumentContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.DocumentList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentOptions.php
deleted file mode 100644
index 271b5b0..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentOptions.php
+++ /dev/null
@@ -1,152 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['data'] = $data;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Human-readable name for this document
- *
- * @param string $uniqueName Human-readable name for this document
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * JSON data to be stored in this document
- *
- * @param array $data JSON data to be stored in this document
- * @return $this Fluent Builder
- */
- public function setData($data) {
- $this->options['data'] = $data;
- return $this;
- }
-
- /**
- * Time-to-live of this Document in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Time-to-live of this Document in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateDocumentOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateDocumentOptions extends Options {
- /**
- * @param array $data Contains an arbitrary JSON object to be stored in this
- * Document.
- * @param integer $ttl New time-to-live of this Document in seconds.
- */
- public function __construct($data = Values::NONE, $ttl = Values::NONE) {
- $this->options['data'] = $data;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Contains an arbitrary JSON object to be stored in this Document. Serialized to string to respect HTTP form input, up to 16KB.
- *
- * @param array $data Contains an arbitrary JSON object to be stored in this
- * Document.
- * @return $this Fluent Builder
- */
- public function setData($data) {
- $this->options['data'] = $data;
- return $this;
- }
-
- /**
- * New time-to-live of this Document in seconds. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl New time-to-live of this Document in seconds.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateDocumentOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentPage.php
deleted file mode 100644
index 98804a5..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/DocumentPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DocumentInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.DocumentPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemContext.php
deleted file mode 100644
index 4c8add9..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemContext.php
+++ /dev/null
@@ -1,117 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'listSid' => $listSid, 'index' => $index, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Items/' . rawurlencode($index) . '';
- }
-
- /**
- * Fetch a SyncListItemInstance
- *
- * @return SyncListItemInstance Fetched SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['index']
- );
- }
-
- /**
- * Deletes the SyncListItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncListItemInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncListItemInstance Updated SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Data' => Serialize::jsonObject($options['data']),
- 'Ttl' => $options['ttl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['index']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncListItemContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemInstance.php
deleted file mode 100644
index a7d06d4..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemInstance.php
+++ /dev/null
@@ -1,156 +0,0 @@
-properties = array(
- 'index' => Values::array_get($payload, 'index'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'listSid' => Values::array_get($payload, 'list_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'data' => Values::array_get($payload, 'data'),
- 'dateExpires' => Deserialize::dateTime(Values::array_get($payload, 'date_expires')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'listSid' => $listSid,
- 'index' => $index ?: $this->properties['index'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListItemContext Context
- * for this
- * SyncListItemInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncListItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['index']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncListItemInstance
- *
- * @return SyncListItemInstance Fetched SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncListItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncListItemInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncListItemInstance Updated SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncListItemInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemList.php
deleted file mode 100644
index 2870745..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemList.php
+++ /dev/null
@@ -1,187 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'listSid' => $listSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Items';
- }
-
- /**
- * Create a new SyncListItemInstance
- *
- * @param array $data Contains arbitrary user-defined, schema-less data that
- * this List Item stores, represented by a JSON object, up
- * to 16KB.
- * @param array|Options $options Optional Arguments
- * @return SyncListItemInstance Newly created SyncListItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($data, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Data' => Serialize::jsonObject($data), 'Ttl' => $options['ttl'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid']
- );
- }
-
- /**
- * Streams SyncListItemInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncListItemInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncListItemInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncListItemInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncListItemInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'From' => $options['from'],
- 'Bounds' => $options['bounds'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncListItemInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncListItemInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncListItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncListItemContext
- *
- * @param integer $index The index
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListItemContext
- */
- public function getContext($index) {
- return new SyncListItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $index
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncListItemList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.php
deleted file mode 100644
index 8654070..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.php
+++ /dev/null
@@ -1,201 +0,0 @@
-options['ttl'] = $ttl;
- }
-
- /**
- * Time-to-live of this item in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon expiry, the list item will be cleaned up at least in a matter of hours, and often within seconds, making this a good tool for garbage management.
- *
- * @param integer $ttl Time-to-live of this item in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateSyncListItemOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadSyncListItemOptions extends Options {
- /**
- * @param string $order A string; asc or desc
- * @param string $from An integer representing Item index offset.
- * @param string $bounds The bounds
- */
- public function __construct($order = Values::NONE, $from = Values::NONE, $bounds = Values::NONE) {
- $this->options['order'] = $order;
- $this->options['from'] = $from;
- $this->options['bounds'] = $bounds;
- }
-
- /**
- * A string; `asc` or `desc`
- *
- * @param string $order A string; asc or desc
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * An integer representing Item index offset (inclusive). If not present, query is performed from the start or end, depending on the Order query parameter.
- *
- * @param string $from An integer representing Item index offset.
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The bounds
- *
- * @param string $bounds The bounds
- * @return $this Fluent Builder
- */
- public function setBounds($bounds) {
- $this->options['bounds'] = $bounds;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.ReadSyncListItemOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSyncListItemOptions extends Options {
- /**
- * @param array $data Contains arbitrary user-defined, schema-less data that
- * this List Item stores, represented by a JSON object, up
- * to 16KB.
- * @param integer $ttl Time-to-live of this item in seconds, defaults to no
- * expiration.
- */
- public function __construct($data = Values::NONE, $ttl = Values::NONE) {
- $this->options['data'] = $data;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Contains arbitrary user-defined, schema-less data that this List Item stores, represented by a JSON object, up to 16KB.
- *
- * @param array $data Contains arbitrary user-defined, schema-less data that
- * this List Item stores, represented by a JSON object, up
- * to 16KB.
- * @return $this Fluent Builder
- */
- public function setData($data) {
- $this->options['data'] = $data;
- return $this;
- }
-
- /**
- * Time-to-live of this item in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity. Upon expiry, the list item will be cleaned up at least in a matter of hours, and often within seconds, making this a good tool for garbage management.
- *
- * @param integer $ttl Time-to-live of this item in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateSyncListItemOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemPage.php
deleted file mode 100644
index eb2867d..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncListItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncListItemPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionContext.php
deleted file mode 100644
index ca9bd5e..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionContext.php
+++ /dev/null
@@ -1,122 +0,0 @@
-solution = array(
- 'serviceSid' => $serviceSid,
- 'listSid' => $listSid,
- 'identity' => $identity,
- );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Permissions/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a SyncListPermissionInstance
- *
- * @return SyncListPermissionInstance Fetched SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Deletes the SyncListPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncListPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncListPermissionInstance Updated SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- $data = Values::of(array(
- 'Read' => Serialize::booleanToString($read),
- 'Write' => Serialize::booleanToString($write),
- 'Manage' => Serialize::booleanToString($manage),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncListPermissionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionInstance.php
deleted file mode 100644
index 6cdb939..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'listSid' => Values::array_get($payload, 'list_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'read' => Values::array_get($payload, 'read'),
- 'write' => Values::array_get($payload, 'write'),
- 'manage' => Values::array_get($payload, 'manage'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'listSid' => $listSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListPermissionContext Context for this SyncListPermissionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncListPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncListPermissionInstance
- *
- * @return SyncListPermissionInstance Fetched SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncListPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncListPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncListPermissionInstance Updated SyncListPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- return $this->proxy()->update($read, $write, $manage);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncListPermissionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionList.php
deleted file mode 100644
index 746a34f..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'listSid' => $listSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($listSid) . '/Permissions';
- }
-
- /**
- * Streams SyncListPermissionInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncListPermissionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncListPermissionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncListPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncListPermissionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncListPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncListPermissionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncListPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncListPermissionContext
- *
- * @param string $identity Identity of the user to whom the Sync List
- * Permission applies.
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListPermissionContext
- */
- public function getContext($identity) {
- return new SyncListPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['listSid'],
- $identity
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncListPermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionPage.php
deleted file mode 100644
index a051c17..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncListPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['listSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncListPermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListContext.php
deleted file mode 100644
index b447819..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListContext.php
+++ /dev/null
@@ -1,188 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SyncListInstance
- *
- * @return SyncListInstance Fetched SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SyncListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncListInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncListInstance Updated SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Ttl' => $options['ttl'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the syncListItems
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListItemList
- */
- protected function getSyncListItems() {
- if (!$this->_syncListItems) {
- $this->_syncListItems = new SyncListItemList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncListItems;
- }
-
- /**
- * Access the syncListPermissions
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListPermissionList
- */
- protected function getSyncListPermissions() {
- if (!$this->_syncListPermissions) {
- $this->_syncListPermissions = new SyncListPermissionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncListPermissions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncListContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListInstance.php
deleted file mode 100644
index d4b41df..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListInstance.php
+++ /dev/null
@@ -1,169 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'dateExpires' => Deserialize::dateTime(Values::array_get($payload, 'date_expires')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncListContext Context for this
- * SyncListInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncListContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncListInstance
- *
- * @return SyncListInstance Fetched SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncListInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncListInstance Updated SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the syncListItems
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListItemList
- */
- protected function getSyncListItems() {
- return $this->proxy()->syncListItems;
- }
-
- /**
- * Access the syncListPermissions
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncList\SyncListPermissionList
- */
- protected function getSyncListPermissions() {
- return $this->proxy()->syncListPermissions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncListInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListList.php
deleted file mode 100644
index ecd5bdc..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Lists';
- }
-
- /**
- * Create a new SyncListInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncListInstance Newly created SyncListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], 'Ttl' => $options['ttl'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncListInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams SyncListInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncListInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncListInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncListInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncListInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncListInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncListInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncListContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Sync\V1\Service\SyncListContext
- */
- public function getContext($sid) {
- return new SyncListContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncListList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListOptions.php
deleted file mode 100644
index 86534e6..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListOptions.php
+++ /dev/null
@@ -1,124 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Human-readable name for this list
- *
- * @param string $uniqueName Human-readable name for this list
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Time-to-live of this List in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Time-to-live of this List in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateSyncListOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSyncListOptions extends Options {
- /**
- * @param integer $ttl Time-to-live of this List in seconds, defaults to no
- * expiration.
- */
- public function __construct($ttl = Values::NONE) {
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Time-to-live of this List in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Time-to-live of this List in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateSyncListOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListPage.php
deleted file mode 100644
index bb58ac0..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncListPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncListInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncListPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemContext.php
deleted file mode 100644
index 91933d8..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemContext.php
+++ /dev/null
@@ -1,117 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, 'key' => $key, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Items/' . rawurlencode($key) . '';
- }
-
- /**
- * Fetch a SyncMapItemInstance
- *
- * @return SyncMapItemInstance Fetched SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['key']
- );
- }
-
- /**
- * Deletes the SyncMapItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncMapItemInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncMapItemInstance Updated SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Data' => Serialize::jsonObject($options['data']),
- 'Ttl' => $options['ttl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['key']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncMapItemContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemInstance.php
deleted file mode 100644
index f27b7de..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemInstance.php
+++ /dev/null
@@ -1,156 +0,0 @@
-properties = array(
- 'key' => Values::array_get($payload, 'key'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'mapSid' => Values::array_get($payload, 'map_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'data' => Values::array_get($payload, 'data'),
- 'dateExpires' => Deserialize::dateTime(Values::array_get($payload, 'date_expires')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'mapSid' => $mapSid,
- 'key' => $key ?: $this->properties['key'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapItemContext Context for
- * this
- * SyncMapItemInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncMapItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['key']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncMapItemInstance
- *
- * @return SyncMapItemInstance Fetched SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncMapItemInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncMapItemInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncMapItemInstance Updated SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncMapItemInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemList.php
deleted file mode 100644
index 6dd26db..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemList.php
+++ /dev/null
@@ -1,192 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Items';
- }
-
- /**
- * Create a new SyncMapItemInstance
- *
- * @param string $key The unique user-defined key of this Map Item.
- * @param array $data Contains arbitrary user-defined, schema-less data that
- * this Map Item stores, represented by a JSON object, up to
- * 16KB.
- * @param array|Options $options Optional Arguments
- * @return SyncMapItemInstance Newly created SyncMapItemInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($key, $data, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Key' => $key,
- 'Data' => Serialize::jsonObject($data),
- 'Ttl' => $options['ttl'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid']
- );
- }
-
- /**
- * Streams SyncMapItemInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncMapItemInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncMapItemInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncMapItemInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncMapItemInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Order' => $options['order'],
- 'From' => $options['from'],
- 'Bounds' => $options['bounds'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncMapItemInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncMapItemInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncMapItemPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncMapItemContext
- *
- * @param string $key The key
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapItemContext
- */
- public function getContext($key) {
- return new SyncMapItemContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $key
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncMapItemList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.php
deleted file mode 100644
index 85dfa94..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.php
+++ /dev/null
@@ -1,198 +0,0 @@
-options['ttl'] = $ttl;
- }
-
- /**
- * Time-to-live of this Map in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Time-to-live of this Map in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateSyncMapItemOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadSyncMapItemOptions extends Options {
- /**
- * @param string $order A string; asc or desc. Map Items are ordered
- * lexicographically by Item key.
- * @param string $from The Item key offset (including the specified key).
- * @param string $bounds The bounds
- */
- public function __construct($order = Values::NONE, $from = Values::NONE, $bounds = Values::NONE) {
- $this->options['order'] = $order;
- $this->options['from'] = $from;
- $this->options['bounds'] = $bounds;
- }
-
- /**
- * A string; asc or desc. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key.
- *
- * @param string $order A string; asc or desc. Map Items are ordered
- * lexicographically by Item key.
- * @return $this Fluent Builder
- */
- public function setOrder($order) {
- $this->options['order'] = $order;
- return $this;
- }
-
- /**
- * The Item key offset (including the specified key). If not present, query is performed from the start or end, depending on the Order query parameter.
- *
- * @param string $from The Item key offset (including the specified key).
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The bounds
- *
- * @param string $bounds The bounds
- * @return $this Fluent Builder
- */
- public function setBounds($bounds) {
- $this->options['bounds'] = $bounds;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.ReadSyncMapItemOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSyncMapItemOptions extends Options {
- /**
- * @param array $data Contains an arbitrary JSON object to be stored in this
- * Map Item.
- * @param integer $ttl New time-to-live of this Map in seconds.
- */
- public function __construct($data = Values::NONE, $ttl = Values::NONE) {
- $this->options['data'] = $data;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Contains an arbitrary JSON object to be stored in this Map Item. Serialized to string to respect HTTP form input, up to 16KB.
- *
- * @param array $data Contains an arbitrary JSON object to be stored in this
- * Map Item.
- * @return $this Fluent Builder
- */
- public function setData($data) {
- $this->options['data'] = $data;
- return $this;
- }
-
- /**
- * New time-to-live of this Map in seconds. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl New time-to-live of this Map in seconds.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateSyncMapItemOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemPage.php
deleted file mode 100644
index 970beb5..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncMapItemInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncMapItemPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionContext.php
deleted file mode 100644
index afe3e16..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionContext.php
+++ /dev/null
@@ -1,118 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, 'identity' => $identity, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Permissions/' . rawurlencode($identity) . '';
- }
-
- /**
- * Fetch a SyncMapPermissionInstance
- *
- * @return SyncMapPermissionInstance Fetched SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Deletes the SyncMapPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncMapPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncMapPermissionInstance Updated SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- $data = Values::of(array(
- 'Read' => Serialize::booleanToString($read),
- 'Write' => Serialize::booleanToString($write),
- 'Manage' => Serialize::booleanToString($manage),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['identity']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncMapPermissionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionInstance.php
deleted file mode 100644
index 3688650..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'mapSid' => Values::array_get($payload, 'map_sid'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'read' => Values::array_get($payload, 'read'),
- 'write' => Values::array_get($payload, 'write'),
- 'manage' => Values::array_get($payload, 'manage'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'serviceSid' => $serviceSid,
- 'mapSid' => $mapSid,
- 'identity' => $identity ?: $this->properties['identity'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapPermissionContext Context for this SyncMapPermissionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncMapPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $this->solution['identity']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncMapPermissionInstance
- *
- * @return SyncMapPermissionInstance Fetched SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncMapPermissionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncMapPermissionInstance
- *
- * @param boolean $read Read access.
- * @param boolean $write Write access.
- * @param boolean $manage Manage access.
- * @return SyncMapPermissionInstance Updated SyncMapPermissionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($read, $write, $manage) {
- return $this->proxy()->update($read, $write, $manage);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncMapPermissionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionList.php
deleted file mode 100644
index daa00b8..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionList.php
+++ /dev/null
@@ -1,147 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'mapSid' => $mapSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($mapSid) . '/Permissions';
- }
-
- /**
- * Streams SyncMapPermissionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncMapPermissionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncMapPermissionInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncMapPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncMapPermissionInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncMapPermissionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncMapPermissionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncMapPermissionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncMapPermissionContext
- *
- * @param string $identity Identity of the user to whom the Sync Map Permission
- * applies.
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapPermissionContext
- */
- public function getContext($identity) {
- return new SyncMapPermissionContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['mapSid'],
- $identity
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncMapPermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionPage.php
deleted file mode 100644
index 14ec5a9..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionPage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncMapPermissionInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['mapSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncMapPermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapContext.php
deleted file mode 100644
index 951a5b4..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapContext.php
+++ /dev/null
@@ -1,188 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SyncMapInstance
- *
- * @return SyncMapInstance Fetched SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SyncMapInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncMapInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncMapInstance Updated SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Ttl' => $options['ttl'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the syncMapItems
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapItemList
- */
- protected function getSyncMapItems() {
- if (!$this->_syncMapItems) {
- $this->_syncMapItems = new SyncMapItemList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncMapItems;
- }
-
- /**
- * Access the syncMapPermissions
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapPermissionList
- */
- protected function getSyncMapPermissions() {
- if (!$this->_syncMapPermissions) {
- $this->_syncMapPermissions = new SyncMapPermissionList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_syncMapPermissions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncMapContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapInstance.php
deleted file mode 100644
index 05ec5eb..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapInstance.php
+++ /dev/null
@@ -1,169 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'revision' => Values::array_get($payload, 'revision'),
- 'dateExpires' => Deserialize::dateTime(Values::array_get($payload, 'date_expires')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMapContext Context for this
- * SyncMapInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncMapContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncMapInstance
- *
- * @return SyncMapInstance Fetched SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncMapInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncMapInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncMapInstance Updated SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the syncMapItems
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapItemList
- */
- protected function getSyncMapItems() {
- return $this->proxy()->syncMapItems;
- }
-
- /**
- * Access the syncMapPermissions
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMap\SyncMapPermissionList
- */
- protected function getSyncMapPermissions() {
- return $this->proxy()->syncMapPermissions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncMapInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapList.php
deleted file mode 100644
index 99b5ecd..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapList.php
+++ /dev/null
@@ -1,164 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Maps';
- }
-
- /**
- * Create a new SyncMapInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncMapInstance Newly created SyncMapInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], 'Ttl' => $options['ttl'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncMapInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams SyncMapInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncMapInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncMapInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncMapInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncMapInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncMapPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncMapInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncMapInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncMapPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncMapContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Sync\V1\Service\SyncMapContext
- */
- public function getContext($sid) {
- return new SyncMapContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncMapList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapOptions.php
deleted file mode 100644
index 0cff070..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapOptions.php
+++ /dev/null
@@ -1,121 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * Human-readable name for this map
- *
- * @param string $uniqueName Human-readable name for this map
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Time-to-live of this Map in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Time-to-live of this Map in seconds, defaults to no
- * expiration.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateSyncMapOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSyncMapOptions extends Options {
- /**
- * @param integer $ttl New time-to-live of this Map in seconds.
- */
- public function __construct($ttl = Values::NONE) {
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * New time-to-live of this Map in seconds. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl New time-to-live of this Map in seconds.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateSyncMapOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapPage.php
deleted file mode 100644
index b5e830d..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncMapPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncMapInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncMapPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageInstance.php
deleted file mode 100644
index 46e7f27..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageInstance.php
+++ /dev/null
@@ -1,73 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'streamSid' => $streamSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.StreamMessageInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageList.php
deleted file mode 100644
index e7b4398..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageList.php
+++ /dev/null
@@ -1,71 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'streamSid' => $streamSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Streams/' . rawurlencode($streamSid) . '/Messages';
- }
-
- /**
- * Create a new StreamMessageInstance
- *
- * @param array $data Stream Message body.
- * @return StreamMessageInstance Newly created StreamMessageInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($data) {
- $data = Values::of(array('Data' => Serialize::jsonObject($data), ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new StreamMessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['streamSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.StreamMessageList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessagePage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessagePage.php
deleted file mode 100644
index e7df26e..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessagePage.php
+++ /dev/null
@@ -1,42 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new StreamMessageInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['streamSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.StreamMessagePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamContext.php
deleted file mode 100644
index 49fadb0..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamContext.php
+++ /dev/null
@@ -1,166 +0,0 @@
-solution = array('serviceSid' => $serviceSid, 'sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Streams/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SyncStreamInstance
- *
- * @return SyncStreamInstance Fetched SyncStreamInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncStreamInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the SyncStreamInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the SyncStreamInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncStreamInstance Updated SyncStreamInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Ttl' => $options['ttl'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncStreamInstance(
- $this->version,
- $payload,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the streamMessages
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncStream\StreamMessageList
- */
- protected function getStreamMessages() {
- if (!$this->_streamMessages) {
- $this->_streamMessages = new StreamMessageList(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_streamMessages;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncStreamContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamInstance.php
deleted file mode 100644
index 28460d2..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamInstance.php
+++ /dev/null
@@ -1,156 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'dateExpires' => Deserialize::dateTime(Values::array_get($payload, 'date_expires')),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'createdBy' => Values::array_get($payload, 'created_by'),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncStreamContext Context for this
- * SyncStreamInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SyncStreamContext(
- $this->version,
- $this->solution['serviceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SyncStreamInstance
- *
- * @return SyncStreamInstance Fetched SyncStreamInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the SyncStreamInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the SyncStreamInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncStreamInstance Updated SyncStreamInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the streamMessages
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncStream\StreamMessageList
- */
- protected function getStreamMessages() {
- return $this->proxy()->streamMessages;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.SyncStreamInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamList.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamList.php
deleted file mode 100644
index 66baded..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamList.php
+++ /dev/null
@@ -1,163 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Streams';
- }
-
- /**
- * Create a new SyncStreamInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SyncStreamInstance Newly created SyncStreamInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('UniqueName' => $options['uniqueName'], 'Ttl' => $options['ttl'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SyncStreamInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Streams SyncStreamInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SyncStreamInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SyncStreamInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SyncStreamInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SyncStreamInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SyncStreamPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SyncStreamInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SyncStreamInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SyncStreamPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SyncStreamContext
- *
- * @param string $sid Stream SID or unique name.
- * @return \Twilio\Rest\Sync\V1\Service\SyncStreamContext
- */
- public function getContext($sid) {
- return new SyncStreamContext($this->version, $this->solution['serviceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncStreamList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.php
deleted file mode 100644
index b5679e6..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.php
+++ /dev/null
@@ -1,118 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * The unique and addressable name of this Stream. Optional, up to 256 characters long.
- *
- * @param string $uniqueName Stream unique name.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Time-to-live of this Stream in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Stream TTL.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateSyncStreamOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSyncStreamOptions extends Options {
- /**
- * @param integer $ttl Stream TTL.
- */
- public function __construct($ttl = Values::NONE) {
- $this->options['ttl'] = $ttl;
- }
-
- /**
- * New time-to-live of this Stream in seconds. In the range [1, 31 536 000 (1 year)], or 0 for infinity.
- *
- * @param integer $ttl Stream TTL.
- * @return $this Fluent Builder
- */
- public function setTtl($ttl) {
- $this->options['ttl'] = $ttl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateSyncStreamOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamPage.php b/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamPage.php
deleted file mode 100644
index eeb14f6..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/Service/SyncStreamPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SyncStreamInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.SyncStreamPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Sync/V1/ServiceContext.php
deleted file mode 100644
index 721f5fa..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceContext.php
+++ /dev/null
@@ -1,209 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'WebhookUrl' => $options['webhookUrl'],
- 'FriendlyName' => $options['friendlyName'],
- 'ReachabilityWebhooksEnabled' => Serialize::booleanToString($options['reachabilityWebhooksEnabled']),
- 'AclEnabled' => Serialize::booleanToString($options['aclEnabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the documents
- *
- * @return \Twilio\Rest\Sync\V1\Service\DocumentList
- */
- protected function getDocuments() {
- if (!$this->_documents) {
- $this->_documents = new DocumentList($this->version, $this->solution['sid']);
- }
-
- return $this->_documents;
- }
-
- /**
- * Access the syncLists
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncListList
- */
- protected function getSyncLists() {
- if (!$this->_syncLists) {
- $this->_syncLists = new SyncListList($this->version, $this->solution['sid']);
- }
-
- return $this->_syncLists;
- }
-
- /**
- * Access the syncMaps
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMapList
- */
- protected function getSyncMaps() {
- if (!$this->_syncMaps) {
- $this->_syncMaps = new SyncMapList($this->version, $this->solution['sid']);
- }
-
- return $this->_syncMaps;
- }
-
- /**
- * Access the syncStreams
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncStreamList
- */
- protected function getSyncStreams() {
- if (!$this->_syncStreams) {
- $this->_syncStreams = new SyncStreamList($this->version, $this->solution['sid']);
- }
-
- return $this->_syncStreams;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Sync/V1/ServiceInstance.php
deleted file mode 100644
index a1ee0db..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceInstance.php
+++ /dev/null
@@ -1,182 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'webhookUrl' => Values::array_get($payload, 'webhook_url'),
- 'reachabilityWebhooksEnabled' => Values::array_get($payload, 'reachability_webhooks_enabled'),
- 'aclEnabled' => Values::array_get($payload, 'acl_enabled'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Sync\V1\ServiceContext Context for this ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the documents
- *
- * @return \Twilio\Rest\Sync\V1\Service\DocumentList
- */
- protected function getDocuments() {
- return $this->proxy()->documents;
- }
-
- /**
- * Access the syncLists
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncListList
- */
- protected function getSyncLists() {
- return $this->proxy()->syncLists;
- }
-
- /**
- * Access the syncMaps
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncMapList
- */
- protected function getSyncMaps() {
- return $this->proxy()->syncMaps;
- }
-
- /**
- * Access the syncStreams
- *
- * @return \Twilio\Rest\Sync\V1\Service\SyncStreamList
- */
- protected function getSyncStreams() {
- return $this->proxy()->syncStreams;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Sync.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Sync/V1/ServiceList.php
deleted file mode 100644
index 99d9896..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'WebhookUrl' => $options['webhookUrl'],
- 'ReachabilityWebhooksEnabled' => Serialize::booleanToString($options['reachabilityWebhooksEnabled']),
- 'AclEnabled' => Serialize::booleanToString($options['aclEnabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Sync\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Sync/V1/ServiceOptions.php
deleted file mode 100644
index 1069f00..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/ServiceOptions.php
+++ /dev/null
@@ -1,224 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['webhookUrl'] = $webhookUrl;
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- $this->options['aclEnabled'] = $aclEnabled;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A URL that will receive event updates when objects are manipulated.
- *
- * @param string $webhookUrl A URL that will receive event updates when objects
- * are manipulated.
- * @return $this Fluent Builder
- */
- public function setWebhookUrl($webhookUrl) {
- $this->options['webhookUrl'] = $webhookUrl;
- return $this;
- }
-
- /**
- * `true` or `false` - controls whether this instance fires webhooks when client endpoints connect to Sync Defaults to false.
- *
- * @param boolean $reachabilityWebhooksEnabled true or false - controls whether
- * this instance fires webhooks
- * when client endpoints connect to
- * Sync
- * @return $this Fluent Builder
- */
- public function setReachabilityWebhooksEnabled($reachabilityWebhooksEnabled) {
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- return $this;
- }
-
- /**
- * `true` or `false` - determines whether token identities must be granted access to Sync objects via the [Permissions API](https://www.twilio.com/docs/api/sync/rest/sync-rest-api-permissions) in this Service.
- *
- * @param boolean $aclEnabled true or false - determines whether token
- * identities must be granted access to Sync objects
- * via the Permissions API in this Service.
- * @return $this Fluent Builder
- */
- public function setAclEnabled($aclEnabled) {
- $this->options['aclEnabled'] = $aclEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $webhookUrl A URL that will receive event updates when objects
- * are manipulated.
- * @param string $friendlyName Human-readable name for this service instance
- * @param boolean $reachabilityWebhooksEnabled True or false - controls whether
- * this instance fires webhooks
- * when client endpoints connect to
- * Sync
- * @param boolean $aclEnabled true or false - determines whether token
- * identities must be granted access to Sync objects
- * via the Permissions API in this Service.
- */
- public function __construct($webhookUrl = Values::NONE, $friendlyName = Values::NONE, $reachabilityWebhooksEnabled = Values::NONE, $aclEnabled = Values::NONE) {
- $this->options['webhookUrl'] = $webhookUrl;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- $this->options['aclEnabled'] = $aclEnabled;
- }
-
- /**
- * A URL that will receive event updates when objects are manipulated.
- *
- * @param string $webhookUrl A URL that will receive event updates when objects
- * are manipulated.
- * @return $this Fluent Builder
- */
- public function setWebhookUrl($webhookUrl) {
- $this->options['webhookUrl'] = $webhookUrl;
- return $this;
- }
-
- /**
- * Human-readable name for this service instance
- *
- * @param string $friendlyName Human-readable name for this service instance
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * True or false - controls whether this instance fires webhooks when client endpoints connect to Sync Defaults to false.
- *
- * @param boolean $reachabilityWebhooksEnabled True or false - controls whether
- * this instance fires webhooks
- * when client endpoints connect to
- * Sync
- * @return $this Fluent Builder
- */
- public function setReachabilityWebhooksEnabled($reachabilityWebhooksEnabled) {
- $this->options['reachabilityWebhooksEnabled'] = $reachabilityWebhooksEnabled;
- return $this;
- }
-
- /**
- * `true` or `false` - determines whether token identities must be granted access to Sync objects via the [Permissions API](https://www.twilio.com/docs/api/sync/rest/sync-rest-api-permissions) in this Service.
- *
- * @param boolean $aclEnabled true or false - determines whether token
- * identities must be granted access to Sync objects
- * via the Permissions API in this Service.
- * @return $this Fluent Builder
- */
- public function setAclEnabled($aclEnabled) {
- $this->options['aclEnabled'] = $aclEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Sync.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Sync/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Sync/V1/ServicePage.php
deleted file mode 100644
index 751cdf2..0000000
--- a/public/twilio-php/Twilio/Rest/Sync/V1/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Sync.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter.php b/public/twilio-php/Twilio/Rest/Taskrouter.php
deleted file mode 100644
index a87d8eb..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://taskrouter.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Taskrouter\V1 Version v1 of taskrouter
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Taskrouter\V1\WorkspaceList
- */
- protected function getWorkspaces() {
- return $this->v1->workspaces;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\WorkspaceContext
- */
- protected function contextWorkspaces($sid) {
- return $this->v1->workspaces($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1.php
deleted file mode 100644
index b429504..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Taskrouter\V1\WorkspaceList
- */
- protected function getWorkspaces() {
- if (!$this->_workspaces) {
- $this->_workspaces = new WorkspaceList($this);
- }
- return $this->_workspaces;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityContext.php
deleted file mode 100644
index d630926..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityContext.php
+++ /dev/null
@@ -1,107 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Activities/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ActivityInstance
- *
- * @return ActivityInstance Fetched ActivityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ActivityInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ActivityInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ActivityInstance Updated ActivityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ActivityInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the ActivityInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.ActivityContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityInstance.php
deleted file mode 100644
index 9868da2..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityInstance.php
+++ /dev/null
@@ -1,141 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'available' => Values::array_get($payload, 'available'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\ActivityContext Context for
- * this
- * ActivityInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ActivityContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ActivityInstance
- *
- * @return ActivityInstance Fetched ActivityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ActivityInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ActivityInstance Updated ActivityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the ActivityInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.ActivityInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityList.php
deleted file mode 100644
index 6fdc79f..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Activities';
- }
-
- /**
- * Streams ActivityInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ActivityInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ActivityInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ActivityInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ActivityInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'Available' => $options['available'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ActivityPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ActivityInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ActivityInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ActivityPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new ActivityInstance
- *
- * @param string $friendlyName A human-readable name for the Activity, such as
- * 'On Call', 'Break', 'Email', etc.
- * @param array|Options $options Optional Arguments
- * @return ActivityInstance Newly created ActivityInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Available' => Serialize::booleanToString($options['available']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ActivityInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Constructs a ActivityContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\ActivityContext
- */
- public function getContext($sid) {
- return new ActivityContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.ActivityList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.php
deleted file mode 100644
index 4f5d1bf..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.php
+++ /dev/null
@@ -1,170 +0,0 @@
-options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A human-readable name for the Activity, such as 'on-call', 'break', 'email', etc. These names will be used to calculate and expose statistics about workers, and give you visibility into the state of each of your workers.
- *
- * @param string $friendlyName A human-readable name for the Activity, such as
- * 'on-call', 'break', 'email', etc.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateActivityOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadActivityOptions extends Options {
- /**
- * @param string $friendlyName Filter by an Activity's friendly name
- * @param string $available Filter by activities that are available or
- * unavailable.
- */
- public function __construct($friendlyName = Values::NONE, $available = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['available'] = $available;
- }
-
- /**
- * Filter by an Activity's friendly name
- *
- * @param string $friendlyName Filter by an Activity's friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Filter by activities that are available or unavailable. (Note: This can be 'true', '1'' or 'yes' to indicate a true value. All other values will represent false)
- *
- * @param string $available Filter by activities that are available or
- * unavailable.
- * @return $this Fluent Builder
- */
- public function setAvailable($available) {
- $this->options['available'] = $available;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadActivityOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateActivityOptions extends Options {
- /**
- * @param boolean $available Boolean value indicating whether the worker should
- * be eligible to receive a Task when they occupy
- * this Activity.
- */
- public function __construct($available = Values::NONE) {
- $this->options['available'] = $available;
- }
-
- /**
- * Boolean value indicating whether the worker should be eligible to receive a Task when they occupy this Activity. For example, a call center might have an activity named 'On Call' with an availability set to 'false'. Note: This can be 'true', '1' or 'yes' to indicate a true value. All other values will represent false. Defaults to false.
- *
- * @param boolean $available Boolean value indicating whether the worker should
- * be eligible to receive a Task when they occupy
- * this Activity.
- * @return $this Fluent Builder
- */
- public function setAvailable($available) {
- $this->options['available'] = $available;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.CreateActivityOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityPage.php
deleted file mode 100644
index 95c937b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/ActivityPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ActivityInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.ActivityPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventContext.php
deleted file mode 100644
index ade9fed..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventContext.php
+++ /dev/null
@@ -1,69 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Events/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a EventInstance
- *
- * @return EventInstance Fetched EventInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EventInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.EventContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventInstance.php
deleted file mode 100644
index e092032..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventInstance.php
+++ /dev/null
@@ -1,131 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'actorSid' => Values::array_get($payload, 'actor_sid'),
- 'actorType' => Values::array_get($payload, 'actor_type'),
- 'actorUrl' => Values::array_get($payload, 'actor_url'),
- 'description' => Values::array_get($payload, 'description'),
- 'eventData' => Values::array_get($payload, 'event_data'),
- 'eventDate' => Deserialize::dateTime(Values::array_get($payload, 'event_date')),
- 'eventType' => Values::array_get($payload, 'event_type'),
- 'resourceSid' => Values::array_get($payload, 'resource_sid'),
- 'resourceType' => Values::array_get($payload, 'resource_type'),
- 'resourceUrl' => Values::array_get($payload, 'resource_url'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'source' => Values::array_get($payload, 'source'),
- 'sourceIpAddress' => Values::array_get($payload, 'source_ip_address'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\EventContext Context for this
- * EventInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new EventContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a EventInstance
- *
- * @return EventInstance Fetched EventInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.EventInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventList.php
deleted file mode 100644
index 7fad151..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventList.php
+++ /dev/null
@@ -1,152 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Events';
- }
-
- /**
- * Streams EventInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads EventInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return EventInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of EventInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of EventInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'EventType' => $options['eventType'],
- 'Minutes' => $options['minutes'],
- 'ReservationSid' => $options['reservationSid'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskQueueSid' => $options['taskQueueSid'],
- 'TaskSid' => $options['taskSid'],
- 'WorkerSid' => $options['workerSid'],
- 'WorkflowSid' => $options['workflowSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new EventPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of EventInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of EventInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new EventPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a EventContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\EventContext
- */
- public function getContext($sid) {
- return new EventContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.EventList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.php
deleted file mode 100644
index cdda416..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.php
+++ /dev/null
@@ -1,179 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['eventType'] = $eventType;
- $this->options['minutes'] = $minutes;
- $this->options['reservationSid'] = $reservationSid;
- $this->options['startDate'] = $startDate;
- $this->options['taskQueueSid'] = $taskQueueSid;
- $this->options['taskSid'] = $taskSid;
- $this->options['workerSid'] = $workerSid;
- $this->options['workflowSid'] = $workflowSid;
- }
-
- /**
- * Filter events by an end date. This is helpful for defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $endDate Filter events by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter events by those of a certain event type
- *
- * @param string $eventType Filter events by those of a certain event type
- * @return $this Fluent Builder
- */
- public function setEventType($eventType) {
- $this->options['eventType'] = $eventType;
- return $this;
- }
-
- /**
- * Filter events by up to 'x' minutes in the past. This is helpful for events for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter events by up to 'x' minutes in the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter events by those pertaining to a particular reservation
- *
- * @param string $reservationSid Filter events by those pertaining to a
- * particular reservation
- * @return $this Fluent Builder
- */
- public function setReservationSid($reservationSid) {
- $this->options['reservationSid'] = $reservationSid;
- return $this;
- }
-
- /**
- * Filter events by a start date. This is helpful for defining a range of events to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $startDate Filter events by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter events by those pertaining to a particular queue
- *
- * @param string $taskQueueSid Filter events by those pertaining to a
- * particular queue
- * @return $this Fluent Builder
- */
- public function setTaskQueueSid($taskQueueSid) {
- $this->options['taskQueueSid'] = $taskQueueSid;
- return $this;
- }
-
- /**
- * Filter events by those pertaining to a particular task
- *
- * @param string $taskSid Filter events by those pertaining to a particular task
- * @return $this Fluent Builder
- */
- public function setTaskSid($taskSid) {
- $this->options['taskSid'] = $taskSid;
- return $this;
- }
-
- /**
- * Filter events by those pertaining to a particular worker
- *
- * @param string $workerSid Filter events by those pertaining to a particular
- * worker
- * @return $this Fluent Builder
- */
- public function setWorkerSid($workerSid) {
- $this->options['workerSid'] = $workerSid;
- return $this;
- }
-
- /**
- * The workflow_sid
- *
- * @param string $workflowSid The workflow_sid
- * @return $this Fluent Builder
- */
- public function setWorkflowSid($workflowSid) {
- $this->options['workflowSid'] = $workflowSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadEventOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventPage.php
deleted file mode 100644
index 6eab3c8..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/EventPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new EventInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.EventPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationContext.php
deleted file mode 100644
index bc2526d..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationContext.php
+++ /dev/null
@@ -1,153 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskSid' => $taskSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Tasks/' . rawurlencode($taskSid) . '/Reservations/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ReservationInstance
- *
- * @return ReservationInstance Fetched ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ReservationInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ReservationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ReservationInstance Updated ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'ReservationStatus' => $options['reservationStatus'],
- 'WorkerActivitySid' => $options['workerActivitySid'],
- 'Instruction' => $options['instruction'],
- 'DequeuePostWorkActivitySid' => $options['dequeuePostWorkActivitySid'],
- 'DequeueFrom' => $options['dequeueFrom'],
- 'DequeueRecord' => $options['dequeueRecord'],
- 'DequeueTimeout' => $options['dequeueTimeout'],
- 'DequeueTo' => $options['dequeueTo'],
- 'DequeueStatusCallbackUrl' => $options['dequeueStatusCallbackUrl'],
- 'CallFrom' => $options['callFrom'],
- 'CallRecord' => $options['callRecord'],
- 'CallTimeout' => $options['callTimeout'],
- 'CallTo' => $options['callTo'],
- 'CallUrl' => $options['callUrl'],
- 'CallStatusCallbackUrl' => $options['callStatusCallbackUrl'],
- 'CallAccept' => Serialize::booleanToString($options['callAccept']),
- 'RedirectCallSid' => $options['redirectCallSid'],
- 'RedirectAccept' => Serialize::booleanToString($options['redirectAccept']),
- 'RedirectUrl' => $options['redirectUrl'],
- 'To' => $options['to'],
- 'From' => $options['from'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }),
- 'Timeout' => $options['timeout'],
- 'Record' => Serialize::booleanToString($options['record']),
- 'Muted' => Serialize::booleanToString($options['muted']),
- 'Beep' => $options['beep'],
- 'StartConferenceOnEnter' => Serialize::booleanToString($options['startConferenceOnEnter']),
- 'EndConferenceOnExit' => Serialize::booleanToString($options['endConferenceOnExit']),
- 'WaitUrl' => $options['waitUrl'],
- 'WaitMethod' => $options['waitMethod'],
- 'EarlyMedia' => Serialize::booleanToString($options['earlyMedia']),
- 'MaxParticipants' => $options['maxParticipants'],
- 'ConferenceStatusCallback' => $options['conferenceStatusCallback'],
- 'ConferenceStatusCallbackMethod' => $options['conferenceStatusCallbackMethod'],
- 'ConferenceStatusCallbackEvent' => Serialize::map($options['conferenceStatusCallbackEvent'], function($e) { return $e; }),
- 'ConferenceRecord' => $options['conferenceRecord'],
- 'ConferenceTrim' => $options['conferenceTrim'],
- 'RecordingChannels' => $options['recordingChannels'],
- 'RecordingStatusCallback' => $options['recordingStatusCallback'],
- 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'],
- 'ConferenceRecordingStatusCallback' => $options['conferenceRecordingStatusCallback'],
- 'ConferenceRecordingStatusCallbackMethod' => $options['conferenceRecordingStatusCallbackMethod'],
- 'Region' => $options['region'],
- 'SipAuthUsername' => $options['sipAuthUsername'],
- 'SipAuthPassword' => $options['sipAuthPassword'],
- 'DequeueStatusCallbackEvent' => Serialize::map($options['dequeueStatusCallbackEvent'], function($e) { return $e; }),
- 'PostWorkActivitySid' => $options['postWorkActivitySid'],
- 'SupervisorMode' => $options['supervisorMode'],
- 'Supervisor' => $options['supervisor'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ReservationInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.ReservationContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationInstance.php
deleted file mode 100644
index a340cdc..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationInstance.php
+++ /dev/null
@@ -1,144 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'reservationStatus' => Values::array_get($payload, 'reservation_status'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'workerName' => Values::array_get($payload, 'worker_name'),
- 'workerSid' => Values::array_get($payload, 'worker_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'workspaceSid' => $workspaceSid,
- 'taskSid' => $taskSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Task\ReservationContext Context
- * for
- * this
- * ReservationInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ReservationContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ReservationInstance
- *
- * @return ReservationInstance Fetched ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ReservationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ReservationInstance Updated ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.ReservationInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationList.php
deleted file mode 100644
index cdc3ac8..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationList.php
+++ /dev/null
@@ -1,150 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskSid' => $taskSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Tasks/' . rawurlencode($taskSid) . '/Reservations';
- }
-
- /**
- * Streams ReservationInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ReservationInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ReservationInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ReservationInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ReservationInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'ReservationStatus' => $options['reservationStatus'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ReservationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ReservationInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ReservationInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ReservationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ReservationContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Task\ReservationContext
- */
- public function getContext($sid) {
- return new ReservationContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.ReservationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.php
deleted file mode 100644
index f489e4a..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.php
+++ /dev/null
@@ -1,897 +0,0 @@
-options['reservationStatus'] = $reservationStatus;
- }
-
- /**
- * Returns the list of reservations for a task with a specified ReservationStatus
- *
- * @param string $reservationStatus Returns the list of reservations for a task
- * with a specified ReservationStatus
- * @return $this Fluent Builder
- */
- public function setReservationStatus($reservationStatus) {
- $this->options['reservationStatus'] = $reservationStatus;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadReservationOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateReservationOptions extends Options {
- /**
- * @param string $reservationStatus New reservation status
- * @param string $workerActivitySid New worker activity sid if rejecting a
- * reservation
- * @param string $instruction Assignment instruction for reservation
- * @param string $dequeuePostWorkActivitySid New worker activity sid after
- * executing a Dequeue instruction
- * @param string $dequeueFrom Caller ID for the call to the worker when
- * executing a Dequeue instruction
- * @param string $dequeueRecord Attribute to record both legs of a call when
- * executing a Dequeue instruction
- * @param integer $dequeueTimeout Timeout for call when executing a Dequeue
- * instruction
- * @param string $dequeueTo Contact URI of the worker when executing a Dequeue
- * instruction
- * @param string $dequeueStatusCallbackUrl Callback URL for completed call
- * event when executing a Dequeue
- * instruction
- * @param string $callFrom Caller ID for the outbound call when executing a
- * Call instruction
- * @param string $callRecord Attribute to record both legs of a call when
- * executing a Call instruction
- * @param integer $callTimeout Timeout for call when executing a Call
- * instruction
- * @param string $callTo Contact URI of the worker when executing a Call
- * instruction
- * @param string $callUrl TwiML URI executed on answering the worker's leg as a
- * result of the Call instruction
- * @param string $callStatusCallbackUrl Callback URL for completed call event
- * when executing a Call instruction
- * @param boolean $callAccept Flag to determine if reservation should be
- * accepted when executing a Call instruction
- * @param string $redirectCallSid Call sid of the call parked in the queue when
- * executing a Redirect instruction
- * @param boolean $redirectAccept Flag to determine if reservation should be
- * accepted when executing a Redirect instruction
- * @param string $redirectUrl TwiML URI to redirect the call to when executing
- * the Redirect instruction
- * @param string $to Contact URI of the worker when executing a Conference
- * instruction
- * @param string $from Caller ID for the call to the worker when executing a
- * Conference instruction
- * @param string $statusCallback The status_callback
- * @param string $statusCallbackMethod The status_callback_method
- * @param string $statusCallbackEvent The status_callback_event
- * @param integer $timeout Timeout for call when executing a Conference
- * instruction
- * @param boolean $record The record
- * @param boolean $muted The muted
- * @param string $beep The beep
- * @param boolean $startConferenceOnEnter The start_conference_on_enter
- * @param boolean $endConferenceOnExit The end_conference_on_exit
- * @param string $waitUrl The wait_url
- * @param string $waitMethod The wait_method
- * @param boolean $earlyMedia The early_media
- * @param integer $maxParticipants The max_participants
- * @param string $conferenceStatusCallback The conference_status_callback
- * @param string $conferenceStatusCallbackMethod The
- * conference_status_callback_method
- * @param string $conferenceStatusCallbackEvent The
- * conference_status_callback_event
- * @param string $conferenceRecord The conference_record
- * @param string $conferenceTrim The conference_trim
- * @param string $recordingChannels The recording_channels
- * @param string $recordingStatusCallback The recording_status_callback
- * @param string $recordingStatusCallbackMethod The
- * recording_status_callback_method
- * @param string $conferenceRecordingStatusCallback The
- * conference_recording_status_callback
- * @param string $conferenceRecordingStatusCallbackMethod The
- * conference_recording_status_callback_method
- * @param string $region The region
- * @param string $sipAuthUsername The sip_auth_username
- * @param string $sipAuthPassword The sip_auth_password
- * @param string $dequeueStatusCallbackEvent Call progress events sent via
- * webhooks as a result of a Dequeue
- * instruction
- * @param string $postWorkActivitySid New worker activity sid after executing a
- * Conference instruction
- * @param string $supervisorMode Supervisor mode when executing the Supervise
- * instruction
- * @param string $supervisor Supervisor sid/uri when executing the Supervise
- * instruction
- */
- public function __construct($reservationStatus = Values::NONE, $workerActivitySid = Values::NONE, $instruction = Values::NONE, $dequeuePostWorkActivitySid = Values::NONE, $dequeueFrom = Values::NONE, $dequeueRecord = Values::NONE, $dequeueTimeout = Values::NONE, $dequeueTo = Values::NONE, $dequeueStatusCallbackUrl = Values::NONE, $callFrom = Values::NONE, $callRecord = Values::NONE, $callTimeout = Values::NONE, $callTo = Values::NONE, $callUrl = Values::NONE, $callStatusCallbackUrl = Values::NONE, $callAccept = Values::NONE, $redirectCallSid = Values::NONE, $redirectAccept = Values::NONE, $redirectUrl = Values::NONE, $to = Values::NONE, $from = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $statusCallbackEvent = Values::NONE, $timeout = Values::NONE, $record = Values::NONE, $muted = Values::NONE, $beep = Values::NONE, $startConferenceOnEnter = Values::NONE, $endConferenceOnExit = Values::NONE, $waitUrl = Values::NONE, $waitMethod = Values::NONE, $earlyMedia = Values::NONE, $maxParticipants = Values::NONE, $conferenceStatusCallback = Values::NONE, $conferenceStatusCallbackMethod = Values::NONE, $conferenceStatusCallbackEvent = Values::NONE, $conferenceRecord = Values::NONE, $conferenceTrim = Values::NONE, $recordingChannels = Values::NONE, $recordingStatusCallback = Values::NONE, $recordingStatusCallbackMethod = Values::NONE, $conferenceRecordingStatusCallback = Values::NONE, $conferenceRecordingStatusCallbackMethod = Values::NONE, $region = Values::NONE, $sipAuthUsername = Values::NONE, $sipAuthPassword = Values::NONE, $dequeueStatusCallbackEvent = Values::NONE, $postWorkActivitySid = Values::NONE, $supervisorMode = Values::NONE, $supervisor = Values::NONE) {
- $this->options['reservationStatus'] = $reservationStatus;
- $this->options['workerActivitySid'] = $workerActivitySid;
- $this->options['instruction'] = $instruction;
- $this->options['dequeuePostWorkActivitySid'] = $dequeuePostWorkActivitySid;
- $this->options['dequeueFrom'] = $dequeueFrom;
- $this->options['dequeueRecord'] = $dequeueRecord;
- $this->options['dequeueTimeout'] = $dequeueTimeout;
- $this->options['dequeueTo'] = $dequeueTo;
- $this->options['dequeueStatusCallbackUrl'] = $dequeueStatusCallbackUrl;
- $this->options['callFrom'] = $callFrom;
- $this->options['callRecord'] = $callRecord;
- $this->options['callTimeout'] = $callTimeout;
- $this->options['callTo'] = $callTo;
- $this->options['callUrl'] = $callUrl;
- $this->options['callStatusCallbackUrl'] = $callStatusCallbackUrl;
- $this->options['callAccept'] = $callAccept;
- $this->options['redirectCallSid'] = $redirectCallSid;
- $this->options['redirectAccept'] = $redirectAccept;
- $this->options['redirectUrl'] = $redirectUrl;
- $this->options['to'] = $to;
- $this->options['from'] = $from;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- $this->options['timeout'] = $timeout;
- $this->options['record'] = $record;
- $this->options['muted'] = $muted;
- $this->options['beep'] = $beep;
- $this->options['startConferenceOnEnter'] = $startConferenceOnEnter;
- $this->options['endConferenceOnExit'] = $endConferenceOnExit;
- $this->options['waitUrl'] = $waitUrl;
- $this->options['waitMethod'] = $waitMethod;
- $this->options['earlyMedia'] = $earlyMedia;
- $this->options['maxParticipants'] = $maxParticipants;
- $this->options['conferenceStatusCallback'] = $conferenceStatusCallback;
- $this->options['conferenceStatusCallbackMethod'] = $conferenceStatusCallbackMethod;
- $this->options['conferenceStatusCallbackEvent'] = $conferenceStatusCallbackEvent;
- $this->options['conferenceRecord'] = $conferenceRecord;
- $this->options['conferenceTrim'] = $conferenceTrim;
- $this->options['recordingChannels'] = $recordingChannels;
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- $this->options['conferenceRecordingStatusCallback'] = $conferenceRecordingStatusCallback;
- $this->options['conferenceRecordingStatusCallbackMethod'] = $conferenceRecordingStatusCallbackMethod;
- $this->options['region'] = $region;
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- $this->options['dequeueStatusCallbackEvent'] = $dequeueStatusCallbackEvent;
- $this->options['postWorkActivitySid'] = $postWorkActivitySid;
- $this->options['supervisorMode'] = $supervisorMode;
- $this->options['supervisor'] = $supervisor;
- }
-
- /**
- * New reservation status
- *
- * @param string $reservationStatus New reservation status
- * @return $this Fluent Builder
- */
- public function setReservationStatus($reservationStatus) {
- $this->options['reservationStatus'] = $reservationStatus;
- return $this;
- }
-
- /**
- * New worker activity sid if rejecting a reservation
- *
- * @param string $workerActivitySid New worker activity sid if rejecting a
- * reservation
- * @return $this Fluent Builder
- */
- public function setWorkerActivitySid($workerActivitySid) {
- $this->options['workerActivitySid'] = $workerActivitySid;
- return $this;
- }
-
- /**
- * Assignment instruction for reservation
- *
- * @param string $instruction Assignment instruction for reservation
- * @return $this Fluent Builder
- */
- public function setInstruction($instruction) {
- $this->options['instruction'] = $instruction;
- return $this;
- }
-
- /**
- * New worker activity sid after executing a Dequeue instruction
- *
- * @param string $dequeuePostWorkActivitySid New worker activity sid after
- * executing a Dequeue instruction
- * @return $this Fluent Builder
- */
- public function setDequeuePostWorkActivitySid($dequeuePostWorkActivitySid) {
- $this->options['dequeuePostWorkActivitySid'] = $dequeuePostWorkActivitySid;
- return $this;
- }
-
- /**
- * Caller ID for the call to the worker when executing a Dequeue instruction
- *
- * @param string $dequeueFrom Caller ID for the call to the worker when
- * executing a Dequeue instruction
- * @return $this Fluent Builder
- */
- public function setDequeueFrom($dequeueFrom) {
- $this->options['dequeueFrom'] = $dequeueFrom;
- return $this;
- }
-
- /**
- * Attribute to record both legs of a call when executing a Dequeue instruction
- *
- * @param string $dequeueRecord Attribute to record both legs of a call when
- * executing a Dequeue instruction
- * @return $this Fluent Builder
- */
- public function setDequeueRecord($dequeueRecord) {
- $this->options['dequeueRecord'] = $dequeueRecord;
- return $this;
- }
-
- /**
- * Timeout for call when executing a Dequeue instruction
- *
- * @param integer $dequeueTimeout Timeout for call when executing a Dequeue
- * instruction
- * @return $this Fluent Builder
- */
- public function setDequeueTimeout($dequeueTimeout) {
- $this->options['dequeueTimeout'] = $dequeueTimeout;
- return $this;
- }
-
- /**
- * Contact URI of the worker when executing a Dequeue instruction
- *
- * @param string $dequeueTo Contact URI of the worker when executing a Dequeue
- * instruction
- * @return $this Fluent Builder
- */
- public function setDequeueTo($dequeueTo) {
- $this->options['dequeueTo'] = $dequeueTo;
- return $this;
- }
-
- /**
- * Callback URL for completed call event when executing a Dequeue instruction
- *
- * @param string $dequeueStatusCallbackUrl Callback URL for completed call
- * event when executing a Dequeue
- * instruction
- * @return $this Fluent Builder
- */
- public function setDequeueStatusCallbackUrl($dequeueStatusCallbackUrl) {
- $this->options['dequeueStatusCallbackUrl'] = $dequeueStatusCallbackUrl;
- return $this;
- }
-
- /**
- * Caller ID for the outbound call when executing a Call instruction
- *
- * @param string $callFrom Caller ID for the outbound call when executing a
- * Call instruction
- * @return $this Fluent Builder
- */
- public function setCallFrom($callFrom) {
- $this->options['callFrom'] = $callFrom;
- return $this;
- }
-
- /**
- * Attribute to record both legs of a call when executing a Call instruction
- *
- * @param string $callRecord Attribute to record both legs of a call when
- * executing a Call instruction
- * @return $this Fluent Builder
- */
- public function setCallRecord($callRecord) {
- $this->options['callRecord'] = $callRecord;
- return $this;
- }
-
- /**
- * Timeout for call when executing a Call instruction
- *
- * @param integer $callTimeout Timeout for call when executing a Call
- * instruction
- * @return $this Fluent Builder
- */
- public function setCallTimeout($callTimeout) {
- $this->options['callTimeout'] = $callTimeout;
- return $this;
- }
-
- /**
- * Contact URI of the worker when executing a Call instruction
- *
- * @param string $callTo Contact URI of the worker when executing a Call
- * instruction
- * @return $this Fluent Builder
- */
- public function setCallTo($callTo) {
- $this->options['callTo'] = $callTo;
- return $this;
- }
-
- /**
- * TwiML URI executed on answering the worker's leg as a result of the Call instruction
- *
- * @param string $callUrl TwiML URI executed on answering the worker's leg as a
- * result of the Call instruction
- * @return $this Fluent Builder
- */
- public function setCallUrl($callUrl) {
- $this->options['callUrl'] = $callUrl;
- return $this;
- }
-
- /**
- * Callback URL for completed call event when executing a Call instruction
- *
- * @param string $callStatusCallbackUrl Callback URL for completed call event
- * when executing a Call instruction
- * @return $this Fluent Builder
- */
- public function setCallStatusCallbackUrl($callStatusCallbackUrl) {
- $this->options['callStatusCallbackUrl'] = $callStatusCallbackUrl;
- return $this;
- }
-
- /**
- * Flag to determine if reservation should be accepted when executing a Call instruction
- *
- * @param boolean $callAccept Flag to determine if reservation should be
- * accepted when executing a Call instruction
- * @return $this Fluent Builder
- */
- public function setCallAccept($callAccept) {
- $this->options['callAccept'] = $callAccept;
- return $this;
- }
-
- /**
- * Call sid of the call parked in the queue when executing a Redirect instruction
- *
- * @param string $redirectCallSid Call sid of the call parked in the queue when
- * executing a Redirect instruction
- * @return $this Fluent Builder
- */
- public function setRedirectCallSid($redirectCallSid) {
- $this->options['redirectCallSid'] = $redirectCallSid;
- return $this;
- }
-
- /**
- * Flag to determine if reservation should be accepted when executing a Redirect instruction
- *
- * @param boolean $redirectAccept Flag to determine if reservation should be
- * accepted when executing a Redirect instruction
- * @return $this Fluent Builder
- */
- public function setRedirectAccept($redirectAccept) {
- $this->options['redirectAccept'] = $redirectAccept;
- return $this;
- }
-
- /**
- * TwiML URI to redirect the call to when executing the Redirect instruction
- *
- * @param string $redirectUrl TwiML URI to redirect the call to when executing
- * the Redirect instruction
- * @return $this Fluent Builder
- */
- public function setRedirectUrl($redirectUrl) {
- $this->options['redirectUrl'] = $redirectUrl;
- return $this;
- }
-
- /**
- * Contact URI of the worker when executing a Conference instruction
- *
- * @param string $to Contact URI of the worker when executing a Conference
- * instruction
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * Caller ID for the call to the worker when executing a Conference instruction
- *
- * @param string $from Caller ID for the call to the worker when executing a
- * Conference instruction
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The status_callback
- *
- * @param string $statusCallback The status_callback
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The status_callback_method
- *
- * @param string $statusCallbackMethod The status_callback_method
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The status_callback_event
- *
- * @param string $statusCallbackEvent The status_callback_event
- * @return $this Fluent Builder
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- return $this;
- }
-
- /**
- * Timeout for call when executing a Conference instruction
- *
- * @param integer $timeout Timeout for call when executing a Conference
- * instruction
- * @return $this Fluent Builder
- */
- public function setTimeout($timeout) {
- $this->options['timeout'] = $timeout;
- return $this;
- }
-
- /**
- * The record
- *
- * @param boolean $record The record
- * @return $this Fluent Builder
- */
- public function setRecord($record) {
- $this->options['record'] = $record;
- return $this;
- }
-
- /**
- * The muted
- *
- * @param boolean $muted The muted
- * @return $this Fluent Builder
- */
- public function setMuted($muted) {
- $this->options['muted'] = $muted;
- return $this;
- }
-
- /**
- * The beep
- *
- * @param string $beep The beep
- * @return $this Fluent Builder
- */
- public function setBeep($beep) {
- $this->options['beep'] = $beep;
- return $this;
- }
-
- /**
- * The start_conference_on_enter
- *
- * @param boolean $startConferenceOnEnter The start_conference_on_enter
- * @return $this Fluent Builder
- */
- public function setStartConferenceOnEnter($startConferenceOnEnter) {
- $this->options['startConferenceOnEnter'] = $startConferenceOnEnter;
- return $this;
- }
-
- /**
- * The end_conference_on_exit
- *
- * @param boolean $endConferenceOnExit The end_conference_on_exit
- * @return $this Fluent Builder
- */
- public function setEndConferenceOnExit($endConferenceOnExit) {
- $this->options['endConferenceOnExit'] = $endConferenceOnExit;
- return $this;
- }
-
- /**
- * The wait_url
- *
- * @param string $waitUrl The wait_url
- * @return $this Fluent Builder
- */
- public function setWaitUrl($waitUrl) {
- $this->options['waitUrl'] = $waitUrl;
- return $this;
- }
-
- /**
- * The wait_method
- *
- * @param string $waitMethod The wait_method
- * @return $this Fluent Builder
- */
- public function setWaitMethod($waitMethod) {
- $this->options['waitMethod'] = $waitMethod;
- return $this;
- }
-
- /**
- * The early_media
- *
- * @param boolean $earlyMedia The early_media
- * @return $this Fluent Builder
- */
- public function setEarlyMedia($earlyMedia) {
- $this->options['earlyMedia'] = $earlyMedia;
- return $this;
- }
-
- /**
- * The max_participants
- *
- * @param integer $maxParticipants The max_participants
- * @return $this Fluent Builder
- */
- public function setMaxParticipants($maxParticipants) {
- $this->options['maxParticipants'] = $maxParticipants;
- return $this;
- }
-
- /**
- * The conference_status_callback
- *
- * @param string $conferenceStatusCallback The conference_status_callback
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallback($conferenceStatusCallback) {
- $this->options['conferenceStatusCallback'] = $conferenceStatusCallback;
- return $this;
- }
-
- /**
- * The conference_status_callback_method
- *
- * @param string $conferenceStatusCallbackMethod The
- * conference_status_callback_method
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallbackMethod($conferenceStatusCallbackMethod) {
- $this->options['conferenceStatusCallbackMethod'] = $conferenceStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The conference_status_callback_event
- *
- * @param string $conferenceStatusCallbackEvent The
- * conference_status_callback_event
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallbackEvent($conferenceStatusCallbackEvent) {
- $this->options['conferenceStatusCallbackEvent'] = $conferenceStatusCallbackEvent;
- return $this;
- }
-
- /**
- * The conference_record
- *
- * @param string $conferenceRecord The conference_record
- * @return $this Fluent Builder
- */
- public function setConferenceRecord($conferenceRecord) {
- $this->options['conferenceRecord'] = $conferenceRecord;
- return $this;
- }
-
- /**
- * The conference_trim
- *
- * @param string $conferenceTrim The conference_trim
- * @return $this Fluent Builder
- */
- public function setConferenceTrim($conferenceTrim) {
- $this->options['conferenceTrim'] = $conferenceTrim;
- return $this;
- }
-
- /**
- * The recording_channels
- *
- * @param string $recordingChannels The recording_channels
- * @return $this Fluent Builder
- */
- public function setRecordingChannels($recordingChannels) {
- $this->options['recordingChannels'] = $recordingChannels;
- return $this;
- }
-
- /**
- * The recording_status_callback
- *
- * @param string $recordingStatusCallback The recording_status_callback
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- return $this;
- }
-
- /**
- * The recording_status_callback_method
- *
- * @param string $recordingStatusCallbackMethod The
- * recording_status_callback_method
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The conference_recording_status_callback
- *
- * @param string $conferenceRecordingStatusCallback The
- * conference_recording_status_callback
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallback($conferenceRecordingStatusCallback) {
- $this->options['conferenceRecordingStatusCallback'] = $conferenceRecordingStatusCallback;
- return $this;
- }
-
- /**
- * The conference_recording_status_callback_method
- *
- * @param string $conferenceRecordingStatusCallbackMethod The
- * conference_recording_status_callback_method
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallbackMethod($conferenceRecordingStatusCallbackMethod) {
- $this->options['conferenceRecordingStatusCallbackMethod'] = $conferenceRecordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The region
- *
- * @param string $region The region
- * @return $this Fluent Builder
- */
- public function setRegion($region) {
- $this->options['region'] = $region;
- return $this;
- }
-
- /**
- * The sip_auth_username
- *
- * @param string $sipAuthUsername The sip_auth_username
- * @return $this Fluent Builder
- */
- public function setSipAuthUsername($sipAuthUsername) {
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- return $this;
- }
-
- /**
- * The sip_auth_password
- *
- * @param string $sipAuthPassword The sip_auth_password
- * @return $this Fluent Builder
- */
- public function setSipAuthPassword($sipAuthPassword) {
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- return $this;
- }
-
- /**
- * Call progress events sent via webhooks as a result of a Dequeue instruction
- *
- * @param string $dequeueStatusCallbackEvent Call progress events sent via
- * webhooks as a result of a Dequeue
- * instruction
- * @return $this Fluent Builder
- */
- public function setDequeueStatusCallbackEvent($dequeueStatusCallbackEvent) {
- $this->options['dequeueStatusCallbackEvent'] = $dequeueStatusCallbackEvent;
- return $this;
- }
-
- /**
- * New worker activity sid after executing a Conference instruction
- *
- * @param string $postWorkActivitySid New worker activity sid after executing a
- * Conference instruction
- * @return $this Fluent Builder
- */
- public function setPostWorkActivitySid($postWorkActivitySid) {
- $this->options['postWorkActivitySid'] = $postWorkActivitySid;
- return $this;
- }
-
- /**
- * Supervisor mode when executing the Supervise instruction
- *
- * @param string $supervisorMode Supervisor mode when executing the Supervise
- * instruction
- * @return $this Fluent Builder
- */
- public function setSupervisorMode($supervisorMode) {
- $this->options['supervisorMode'] = $supervisorMode;
- return $this;
- }
-
- /**
- * Supervisor sid/uri when executing the Supervise instruction
- *
- * @param string $supervisor Supervisor sid/uri when executing the Supervise
- * instruction
- * @return $this Fluent Builder
- */
- public function setSupervisor($supervisor) {
- $this->options['supervisor'] = $supervisor;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateReservationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationPage.php
deleted file mode 100644
index 237413e..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ReservationInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.ReservationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelContext.php
deleted file mode 100644
index 96fac00..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelContext.php
+++ /dev/null
@@ -1,69 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskChannels/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a TaskChannelInstance
- *
- * @return TaskChannelInstance Fetched TaskChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskChannelInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelInstance.php
deleted file mode 100644
index 442dfad..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelInstance.php
+++ /dev/null
@@ -1,118 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskChannelContext Context for
- * this
- * TaskChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskChannelContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskChannelInstance
- *
- * @return TaskChannelInstance Fetched TaskChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php
deleted file mode 100644
index 5ea0a47..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php
+++ /dev/null
@@ -1,137 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskChannels';
- }
-
- /**
- * Streams TaskChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TaskChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TaskChannelInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TaskChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TaskChannelInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TaskChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TaskChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TaskChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a TaskChannelContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskChannelContext
- */
- public function getContext($sid) {
- return new TaskChannelContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelPage.php
deleted file mode 100644
index daec8de..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskChannelInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskContext.php
deleted file mode 100644
index c38a638..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskContext.php
+++ /dev/null
@@ -1,171 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Tasks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a TaskInstance
- *
- * @return TaskInstance Fetched TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Updated TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Attributes' => $options['attributes'],
- 'AssignmentStatus' => $options['assignmentStatus'],
- 'Reason' => $options['reason'],
- 'Priority' => $options['priority'],
- 'TaskChannel' => $options['taskChannel'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TaskInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the reservations
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Task\ReservationList
- */
- protected function getReservations() {
- if (!$this->_reservations) {
- $this->_reservations = new ReservationList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_reservations;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskInstance.php
deleted file mode 100644
index 2e25f94..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskInstance.php
+++ /dev/null
@@ -1,174 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'age' => Values::array_get($payload, 'age'),
- 'assignmentStatus' => Values::array_get($payload, 'assignment_status'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'addons' => Values::array_get($payload, 'addons'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'priority' => Values::array_get($payload, 'priority'),
- 'reason' => Values::array_get($payload, 'reason'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taskQueueSid' => Values::array_get($payload, 'task_queue_sid'),
- 'taskQueueFriendlyName' => Values::array_get($payload, 'task_queue_friendly_name'),
- 'taskChannelSid' => Values::array_get($payload, 'task_channel_sid'),
- 'taskChannelUniqueName' => Values::array_get($payload, 'task_channel_unique_name'),
- 'timeout' => Values::array_get($payload, 'timeout'),
- 'workflowSid' => Values::array_get($payload, 'workflow_sid'),
- 'workflowFriendlyName' => Values::array_get($payload, 'workflow_friendly_name'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskContext Context for this
- * TaskInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskInstance
- *
- * @return TaskInstance Fetched TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Updated TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the TaskInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the reservations
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Task\ReservationList
- */
- protected function getReservations() {
- return $this->proxy()->reservations;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskList.php
deleted file mode 100644
index 0e9a4c7..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskList.php
+++ /dev/null
@@ -1,180 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Tasks';
- }
-
- /**
- * Streams TaskInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TaskInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TaskInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TaskInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TaskInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Priority' => $options['priority'],
- 'AssignmentStatus' => Serialize::map($options['assignmentStatus'], function($e) { return $e; }),
- 'WorkflowSid' => $options['workflowSid'],
- 'WorkflowName' => $options['workflowName'],
- 'TaskQueueSid' => $options['taskQueueSid'],
- 'TaskQueueName' => $options['taskQueueName'],
- 'EvaluateTaskAttributes' => $options['evaluateTaskAttributes'],
- 'Ordering' => $options['ordering'],
- 'HasAddons' => Serialize::booleanToString($options['hasAddons']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TaskInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TaskInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TaskPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new TaskInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskInstance Newly created TaskInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Timeout' => $options['timeout'],
- 'Priority' => $options['priority'],
- 'TaskChannel' => $options['taskChannel'],
- 'WorkflowSid' => $options['workflowSid'],
- 'Attributes' => $options['attributes'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Constructs a TaskContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskContext
- */
- public function getContext($sid) {
- return new TaskContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.php
deleted file mode 100644
index dc832e2..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.php
+++ /dev/null
@@ -1,437 +0,0 @@
-options['attributes'] = $attributes;
- $this->options['assignmentStatus'] = $assignmentStatus;
- $this->options['reason'] = $reason;
- $this->options['priority'] = $priority;
- $this->options['taskChannel'] = $taskChannel;
- }
-
- /**
- * The user-defined JSON data describing the custom attributes of this task.
- *
- * @param string $attributes The user-defined JSON data describing the custom
- * attributes of this task.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * A 'pending' or 'reserved' Task may be canceled by posting AssignmentStatus='canceled'. Post AssignmentStatus='wrapping' to move Task to 'wrapup' state and AssignmentStatus='completed' to move a Task to 'completed' state.
- *
- * @param string $assignmentStatus A 'pending' or 'reserved' Task may be
- * canceled by posting
- * AssignmentStatus='canceled'.
- * @return $this Fluent Builder
- */
- public function setAssignmentStatus($assignmentStatus) {
- $this->options['assignmentStatus'] = $assignmentStatus;
- return $this;
- }
-
- /**
- * This is only required if the Task is canceled or completed. This logs the reason the task was either canceled or completed and queues the task for deletion after 5 minutes.
- *
- * @param string $reason This is only required if the Task is canceled or
- * completed.
- * @return $this Fluent Builder
- */
- public function setReason($reason) {
- $this->options['reason'] = $reason;
- return $this;
- }
-
- /**
- * Override priority for the Task. When supplied, the Task will take on the given priority unless it matches a Workflow Target with a Priority set.
- *
- * @param integer $priority Override priority for the Task.
- * @return $this Fluent Builder
- */
- public function setPriority($priority) {
- $this->options['priority'] = $priority;
- return $this;
- }
-
- /**
- * The task_channel
- *
- * @param string $taskChannel The task_channel
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateTaskOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadTaskOptions extends Options {
- /**
- * @param integer $priority Retrieve the list of all Tasks in the workspace
- * with the specified priority.
- * @param string $assignmentStatus Returns the list of all Tasks in the
- * workspace with the specified
- * AssignmentStatus.
- * @param string $workflowSid Returns the list of Tasks that are being
- * controlled by the Workflow with the specified Sid
- * value.
- * @param string $workflowName Returns the list of Tasks that are being
- * controlled by the Workflow with the specified
- * FriendlyName value.
- * @param string $taskQueueSid Returns the list of Tasks that are currently
- * waiting in the TaskQueue identified by the Sid
- * specified.
- * @param string $taskQueueName Returns the list of Tasks that are currently
- * waiting in the TaskQueue identified by the
- * FriendlyName specified.
- * @param string $evaluateTaskAttributes Provide a task attributes expression,
- * and this will return tasks which match
- * the attributes.
- * @param string $ordering Use this parameter to control the order of the Tasks
- * returned.
- * @param boolean $hasAddons The has_addons
- */
- public function __construct($priority = Values::NONE, $assignmentStatus = Values::NONE, $workflowSid = Values::NONE, $workflowName = Values::NONE, $taskQueueSid = Values::NONE, $taskQueueName = Values::NONE, $evaluateTaskAttributes = Values::NONE, $ordering = Values::NONE, $hasAddons = Values::NONE) {
- $this->options['priority'] = $priority;
- $this->options['assignmentStatus'] = $assignmentStatus;
- $this->options['workflowSid'] = $workflowSid;
- $this->options['workflowName'] = $workflowName;
- $this->options['taskQueueSid'] = $taskQueueSid;
- $this->options['taskQueueName'] = $taskQueueName;
- $this->options['evaluateTaskAttributes'] = $evaluateTaskAttributes;
- $this->options['ordering'] = $ordering;
- $this->options['hasAddons'] = $hasAddons;
- }
-
- /**
- * Retrieve the list of all Tasks in the workspace with the specified priority.
- *
- * @param integer $priority Retrieve the list of all Tasks in the workspace
- * with the specified priority.
- * @return $this Fluent Builder
- */
- public function setPriority($priority) {
- $this->options['priority'] = $priority;
- return $this;
- }
-
- /**
- * Returns the list of all Tasks in the workspace with the specified AssignmentStatus. Allowed AssignmentStatus values are pending, reserved, assigned, canceled, and completed.
- *
- * @param string $assignmentStatus Returns the list of all Tasks in the
- * workspace with the specified
- * AssignmentStatus.
- * @return $this Fluent Builder
- */
- public function setAssignmentStatus($assignmentStatus) {
- $this->options['assignmentStatus'] = $assignmentStatus;
- return $this;
- }
-
- /**
- * Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value.
- *
- * @param string $workflowSid Returns the list of Tasks that are being
- * controlled by the Workflow with the specified Sid
- * value.
- * @return $this Fluent Builder
- */
- public function setWorkflowSid($workflowSid) {
- $this->options['workflowSid'] = $workflowSid;
- return $this;
- }
-
- /**
- * Returns the list of Tasks that are being controlled by the Workflow with the specified FriendlyName value.
- *
- * @param string $workflowName Returns the list of Tasks that are being
- * controlled by the Workflow with the specified
- * FriendlyName value.
- * @return $this Fluent Builder
- */
- public function setWorkflowName($workflowName) {
- $this->options['workflowName'] = $workflowName;
- return $this;
- }
-
- /**
- * Returns the list of Tasks that are currently waiting in the TaskQueue identified by the Sid specified.
- *
- * @param string $taskQueueSid Returns the list of Tasks that are currently
- * waiting in the TaskQueue identified by the Sid
- * specified.
- * @return $this Fluent Builder
- */
- public function setTaskQueueSid($taskQueueSid) {
- $this->options['taskQueueSid'] = $taskQueueSid;
- return $this;
- }
-
- /**
- * Returns the list of Tasks that are currently waiting in the TaskQueue identified by the FriendlyName specified.
- *
- * @param string $taskQueueName Returns the list of Tasks that are currently
- * waiting in the TaskQueue identified by the
- * FriendlyName specified.
- * @return $this Fluent Builder
- */
- public function setTaskQueueName($taskQueueName) {
- $this->options['taskQueueName'] = $taskQueueName;
- return $this;
- }
-
- /**
- * Provide a task attributes expression, and this will return tasks which match the attributes.
- *
- * @param string $evaluateTaskAttributes Provide a task attributes expression,
- * and this will return tasks which match
- * the attributes.
- * @return $this Fluent Builder
- */
- public function setEvaluateTaskAttributes($evaluateTaskAttributes) {
- $this->options['evaluateTaskAttributes'] = $evaluateTaskAttributes;
- return $this;
- }
-
- /**
- * Use this parameter to control the order of the Tasks returned. The value should be passed in `Attribute:Order` format, where Attribute can be either `Priority` or `DateCreated` and Order can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered by Priority in descending order. To sort the Tasks by Priority and DateCreated pass `Priority:desc,DateCreated:asc`. By Default Tasks are returned sorted by DateCreated in ascending order.
- *
- * @param string $ordering Use this parameter to control the order of the Tasks
- * returned.
- * @return $this Fluent Builder
- */
- public function setOrdering($ordering) {
- $this->options['ordering'] = $ordering;
- return $this;
- }
-
- /**
- * The has_addons
- *
- * @param boolean $hasAddons The has_addons
- * @return $this Fluent Builder
- */
- public function setHasAddons($hasAddons) {
- $this->options['hasAddons'] = $hasAddons;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadTaskOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateTaskOptions extends Options {
- /**
- * @param integer $timeout The amount of time in seconds the task is allowed to
- * live up to a maximum of 2 weeks.
- * @param integer $priority Override priority for the Task.
- * @param string $taskChannel When MultiTasking is enabled specify the type of
- * the task by passing either TaskChannel Unique
- * Name or Task Channel Sid.
- * @param string $workflowSid The WorkflowSid for the Workflow that you would
- * like to handle routing for this Task.
- * @param string $attributes Url-encoded JSON string describing the attributes
- * of this task.
- */
- public function __construct($timeout = Values::NONE, $priority = Values::NONE, $taskChannel = Values::NONE, $workflowSid = Values::NONE, $attributes = Values::NONE) {
- $this->options['timeout'] = $timeout;
- $this->options['priority'] = $priority;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['workflowSid'] = $workflowSid;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * The amount of time in seconds the task is allowed to live up to a maximum of 2 weeks. Defaults to 24 hours. On timeout, `task.canceled` event will fire with description "Task TTL Exceeded".
- *
- * @param integer $timeout The amount of time in seconds the task is allowed to
- * live up to a maximum of 2 weeks.
- * @return $this Fluent Builder
- */
- public function setTimeout($timeout) {
- $this->options['timeout'] = $timeout;
- return $this;
- }
-
- /**
- * Override priority for the Task. When supplied, the Task will take on the given priority unless it matches a Workflow Target with a Priority set. When not supplied, the Task will take on the priority of the matching Workflow Target.
- *
- * @param integer $priority Override priority for the Task.
- * @return $this Fluent Builder
- */
- public function setPriority($priority) {
- $this->options['priority'] = $priority;
- return $this;
- }
-
- /**
- * When MultiTasking is enabled specify the type of the task by passing either TaskChannel Unique Name or Task Channel Sid. Default value is "default"
- *
- * @param string $taskChannel When MultiTasking is enabled specify the type of
- * the task by passing either TaskChannel Unique
- * Name or Task Channel Sid.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * The WorkflowSid for the Workflow that you would like to handle routing for this Task. If there is only one Workflow defined for the Workspace that you are posting a task to, then this is an optional parameter, and that single workflow will be used.
- *
- * @param string $workflowSid The WorkflowSid for the Workflow that you would
- * like to handle routing for this Task.
- * @return $this Fluent Builder
- */
- public function setWorkflowSid($workflowSid) {
- $this->options['workflowSid'] = $workflowSid;
- return $this;
- }
-
- /**
- * Url-encoded JSON string describing the attributes of this task. This data will be passed back to the Workflow's AssignmentCallbackURL when the Task is assigned to a Worker. An example task: `{ "task_type": "call", "twilio_call_sid": "CAxxx", "customer_ticket_number": "12345" }`
- *
- * @param string $attributes Url-encoded JSON string describing the attributes
- * of this task.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.CreateTaskOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskPage.php
deleted file mode 100644
index 3359e3a..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsContext.php
deleted file mode 100644
index c6ca446..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskQueues/' . rawurlencode($taskQueueSid) . '/CumulativeStatistics';
- }
-
- /**
- * Fetch a TaskQueueCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueCumulativeStatisticsInstance Fetched
- * TaskQueueCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskQueueCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueCumulativeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsInstance.php
deleted file mode 100644
index f41da2b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsInstance.php
+++ /dev/null
@@ -1,146 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'avgTaskAcceptanceTime' => Values::array_get($payload, 'avg_task_acceptance_time'),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'reservationsCreated' => Values::array_get($payload, 'reservations_created'),
- 'reservationsAccepted' => Values::array_get($payload, 'reservations_accepted'),
- 'reservationsRejected' => Values::array_get($payload, 'reservations_rejected'),
- 'reservationsTimedOut' => Values::array_get($payload, 'reservations_timed_out'),
- 'reservationsCanceled' => Values::array_get($payload, 'reservations_canceled'),
- 'reservationsRescinded' => Values::array_get($payload, 'reservations_rescinded'),
- 'splitByWaitTime' => Values::array_get($payload, 'split_by_wait_time'),
- 'taskQueueSid' => Values::array_get($payload, 'task_queue_sid'),
- 'waitDurationUntilAccepted' => Values::array_get($payload, 'wait_duration_until_accepted'),
- 'waitDurationUntilCanceled' => Values::array_get($payload, 'wait_duration_until_canceled'),
- 'tasksCanceled' => Values::array_get($payload, 'tasks_canceled'),
- 'tasksCompleted' => Values::array_get($payload, 'tasks_completed'),
- 'tasksDeleted' => Values::array_get($payload, 'tasks_deleted'),
- 'tasksEntered' => Values::array_get($payload, 'tasks_entered'),
- 'tasksMoved' => Values::array_get($payload, 'tasks_moved'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueCumulativeStatisticsContext Context for this
- * TaskQueueCumulativeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskQueueCumulativeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskQueueCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueCumulativeStatisticsInstance Fetched
- * TaskQueueCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueCumulativeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsList.php
deleted file mode 100644
index c649ac6..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
- }
-
- /**
- * Constructs a TaskQueueCumulativeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueCumulativeStatisticsContext
- */
- public function getContext() {
- return new TaskQueueCumulativeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueCumulativeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.php
deleted file mode 100644
index 2dbbda8..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchTaskQueueCumulativeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsPage.php
deleted file mode 100644
index 0026a34..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskQueueCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueCumulativeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsContext.php
deleted file mode 100644
index 1b488f0..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsContext.php
+++ /dev/null
@@ -1,74 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskQueues/' . rawurlencode($taskQueueSid) . '/RealTimeStatistics';
- }
-
- /**
- * Fetch a TaskQueueRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueRealTimeStatisticsInstance Fetched
- * TaskQueueRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array('TaskChannel' => $options['taskChannel'], ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskQueueRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueRealTimeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsInstance.php
deleted file mode 100644
index 49813fa..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsInstance.php
+++ /dev/null
@@ -1,125 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'activityStatistics' => Values::array_get($payload, 'activity_statistics'),
- 'longestTaskWaitingAge' => Values::array_get($payload, 'longest_task_waiting_age'),
- 'taskQueueSid' => Values::array_get($payload, 'task_queue_sid'),
- 'tasksByPriority' => Values::array_get($payload, 'tasks_by_priority'),
- 'tasksByStatus' => Values::array_get($payload, 'tasks_by_status'),
- 'totalAvailableWorkers' => Values::array_get($payload, 'total_available_workers'),
- 'totalEligibleWorkers' => Values::array_get($payload, 'total_eligible_workers'),
- 'totalTasks' => Values::array_get($payload, 'total_tasks'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueRealTimeStatisticsContext Context for this
- * TaskQueueRealTimeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskQueueRealTimeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskQueueRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueRealTimeStatisticsInstance Fetched
- * TaskQueueRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueRealTimeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsList.php
deleted file mode 100644
index 018cc5e..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
- }
-
- /**
- * Constructs a TaskQueueRealTimeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueRealTimeStatisticsContext
- */
- public function getContext() {
- return new TaskQueueRealTimeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueRealTimeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.php
deleted file mode 100644
index b832a64..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchTaskQueueRealTimeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsPage.php
deleted file mode 100644
index 635fa41..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskQueueRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueRealTimeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsContext.php
deleted file mode 100644
index 8578061..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsContext.php
+++ /dev/null
@@ -1,80 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskQueues/' . rawurlencode($taskQueueSid) . '/Statistics';
- }
-
- /**
- * Fetch a TaskQueueStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueStatisticsInstance Fetched TaskQueueStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskQueueStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsInstance.php
deleted file mode 100644
index a6e8a19..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsInstance.php
+++ /dev/null
@@ -1,114 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'cumulative' => Values::array_get($payload, 'cumulative'),
- 'realtime' => Values::array_get($payload, 'realtime'),
- 'taskQueueSid' => Values::array_get($payload, 'task_queue_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueStatisticsContext Context for this
- * TaskQueueStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskQueueStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskQueueStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueStatisticsInstance Fetched TaskQueueStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsList.php
deleted file mode 100644
index 1b81888..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'taskQueueSid' => $taskQueueSid, );
- }
-
- /**
- * Constructs a TaskQueueStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueStatisticsContext
- */
- public function getContext() {
- return new TaskQueueStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.php
deleted file mode 100644
index 25a325e..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchTaskQueueStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsPage.php
deleted file mode 100644
index e7ad5d9..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskQueueStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['taskQueueSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsInstance.php
deleted file mode 100644
index 35a92fb..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsInstance.php
+++ /dev/null
@@ -1,76 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'cumulative' => Values::array_get($payload, 'cumulative'),
- 'realtime' => Values::array_get($payload, 'realtime'),
- 'taskQueueSid' => Values::array_get($payload, 'task_queue_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueuesStatisticsInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsList.php
deleted file mode 100644
index 5c37de6..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsList.php
+++ /dev/null
@@ -1,141 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskQueues/Statistics';
- }
-
- /**
- * Streams TaskQueuesStatisticsInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TaskQueuesStatisticsInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TaskQueuesStatisticsInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TaskQueuesStatisticsInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TaskQueuesStatisticsInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'FriendlyName' => $options['friendlyName'],
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskQueuesStatisticsPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TaskQueuesStatisticsInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TaskQueuesStatisticsInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TaskQueuesStatisticsPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueuesStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.php
deleted file mode 100644
index 40da9f9..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.php
+++ /dev/null
@@ -1,143 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter the TaskQueue stats based on a TaskQueue's name (only for list resource)
- *
- * @param string $friendlyName Filter the TaskQueue stats based on a
- * TaskQueue's name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp.
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadTaskQueuesStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsPage.php
deleted file mode 100644
index b27bd92..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskQueuesStatisticsInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueuesStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php
deleted file mode 100644
index f865532..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php
+++ /dev/null
@@ -1,214 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskQueues/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a TaskQueueInstance
- *
- * @return TaskQueueInstance Fetched TaskQueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskQueueInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the TaskQueueInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueInstance Updated TaskQueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'TargetWorkers' => $options['targetWorkers'],
- 'ReservationActivitySid' => $options['reservationActivitySid'],
- 'AssignmentActivitySid' => $options['assignmentActivitySid'],
- 'MaxReservedWorkers' => $options['maxReservedWorkers'],
- 'TaskOrder' => $options['taskOrder'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskQueueInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the TaskQueueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueStatisticsList
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new TaskQueueStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_statistics;
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- if (!$this->_realTimeStatistics) {
- $this->_realTimeStatistics = new TaskQueueRealTimeStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- if (!$this->_cumulativeStatistics) {
- $this->_cumulativeStatistics = new TaskQueueCumulativeStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_cumulativeStatistics;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueInstance.php
deleted file mode 100644
index 7cd5b27..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueInstance.php
+++ /dev/null
@@ -1,185 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assignmentActivitySid' => Values::array_get($payload, 'assignment_activity_sid'),
- 'assignmentActivityName' => Values::array_get($payload, 'assignment_activity_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'maxReservedWorkers' => Values::array_get($payload, 'max_reserved_workers'),
- 'reservationActivitySid' => Values::array_get($payload, 'reservation_activity_sid'),
- 'reservationActivityName' => Values::array_get($payload, 'reservation_activity_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'targetWorkers' => Values::array_get($payload, 'target_workers'),
- 'taskOrder' => Values::array_get($payload, 'task_order'),
- 'url' => Values::array_get($payload, 'url'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueueContext Context for
- * this
- * TaskQueueInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TaskQueueContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TaskQueueInstance
- *
- * @return TaskQueueInstance Fetched TaskQueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the TaskQueueInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TaskQueueInstance Updated TaskQueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the TaskQueueInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueStatisticsList
- */
- protected function getStatistics() {
- return $this->proxy()->statistics;
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- return $this->proxy()->realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- return $this->proxy()->cumulativeStatistics;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.TaskQueueInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueList.php
deleted file mode 100644
index 0ce5c63..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueList.php
+++ /dev/null
@@ -1,226 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/TaskQueues';
- }
-
- /**
- * Streams TaskQueueInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TaskQueueInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TaskQueueInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TaskQueueInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TaskQueueInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'EvaluateWorkerAttributes' => $options['evaluateWorkerAttributes'],
- 'WorkerSid' => $options['workerSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TaskQueuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TaskQueueInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TaskQueueInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TaskQueuePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new TaskQueueInstance
- *
- * @param string $friendlyName Human readable description of this TaskQueue
- * @param array|Options $options Optional Arguments
- * @return TaskQueueInstance Newly created TaskQueueInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'TargetWorkers' => $options['targetWorkers'],
- 'MaxReservedWorkers' => $options['maxReservedWorkers'],
- 'TaskOrder' => $options['taskOrder'],
- 'ReservationActivitySid' => $options['reservationActivitySid'],
- 'AssignmentActivitySid' => $options['assignmentActivitySid'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TaskQueueInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Access the statistics
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new TaskQueuesStatisticsList($this->version, $this->solution['workspaceSid']);
- }
-
- return $this->_statistics;
- }
-
- /**
- * Constructs a TaskQueueContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueueContext
- */
- public function getContext($sid) {
- return new TaskQueueContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueueList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.php
deleted file mode 100644
index dc65d8d..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.php
+++ /dev/null
@@ -1,361 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['targetWorkers'] = $targetWorkers;
- $this->options['reservationActivitySid'] = $reservationActivitySid;
- $this->options['assignmentActivitySid'] = $assignmentActivitySid;
- $this->options['maxReservedWorkers'] = $maxReservedWorkers;
- $this->options['taskOrder'] = $taskOrder;
- }
-
- /**
- * Human readable description of this TaskQueue (for example "Support – Tier 1", "Sales" or "Escalation")
- *
- * @param string $friendlyName Human readable description of this TaskQueue
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A string describing the Worker selection criteria for any Tasks that enter this TaskQueue. For example '"language" == "spanish"' If no TargetWorkers parameter is provided, Tasks will wait in this queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below.
- *
- * @param string $targetWorkers A string describing the Worker selection
- * criteria for any Tasks that enter this
- * TaskQueue.
- * @return $this Fluent Builder
- */
- public function setTargetWorkers($targetWorkers) {
- $this->options['targetWorkers'] = $targetWorkers;
- return $this;
- }
-
- /**
- * ActivitySID that will be assigned to Workers when they are reserved for a task from this TaskQueue.
- *
- * @param string $reservationActivitySid ActivitySID that will be assigned to
- * Workers when they are reserved for a
- * task from this TaskQueue.
- * @return $this Fluent Builder
- */
- public function setReservationActivitySid($reservationActivitySid) {
- $this->options['reservationActivitySid'] = $reservationActivitySid;
- return $this;
- }
-
- /**
- * ActivitySID that will be assigned to Workers when they are assigned a task from this TaskQueue.
- *
- * @param string $assignmentActivitySid ActivitySID that will be assigned to
- * Workers when they are assigned a task
- * from this TaskQueue.
- * @return $this Fluent Builder
- */
- public function setAssignmentActivitySid($assignmentActivitySid) {
- $this->options['assignmentActivitySid'] = $assignmentActivitySid;
- return $this;
- }
-
- /**
- * The maximum amount of workers to create reservations for the assignment of a task while in this queue. Maximum of 50.
- *
- * @param integer $maxReservedWorkers The maximum amount of workers to create
- * reservations for the assignment of a task
- * while in this queue.
- * @return $this Fluent Builder
- */
- public function setMaxReservedWorkers($maxReservedWorkers) {
- $this->options['maxReservedWorkers'] = $maxReservedWorkers;
- return $this;
- }
-
- /**
- * TaskOrder will determine which order the Tasks will be assigned to Workers. Set this parameter to LIFO to assign most recently created Task first or FIFO to assign the oldest Task. Default is FIFO. [Click here](https://www.twilio.com/docs/api/taskrouter/last-first-out-lifo) to learn more.
- *
- * @param string $taskOrder TaskOrder will determine which order the Tasks will
- * be assigned to Workers.
- * @return $this Fluent Builder
- */
- public function setTaskOrder($taskOrder) {
- $this->options['taskOrder'] = $taskOrder;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateTaskQueueOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadTaskQueueOptions extends Options {
- /**
- * @param string $friendlyName Filter by a human readable description of a
- * TaskQueue
- * @param string $evaluateWorkerAttributes Provide a Worker attributes
- * expression, and this will return the
- * list of TaskQueues that would
- * distribute tasks to a worker with
- * these attributes.
- * @param string $workerSid The worker_sid
- */
- public function __construct($friendlyName = Values::NONE, $evaluateWorkerAttributes = Values::NONE, $workerSid = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['evaluateWorkerAttributes'] = $evaluateWorkerAttributes;
- $this->options['workerSid'] = $workerSid;
- }
-
- /**
- * Filter by a human readable description of a TaskQueue (for example "Customer Support" or "2014 Election Campaign")
- *
- * @param string $friendlyName Filter by a human readable description of a
- * TaskQueue
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a Worker attributes expression, and this will return the list of TaskQueues that would distribute tasks to a worker with these attributes.
- *
- * @param string $evaluateWorkerAttributes Provide a Worker attributes
- * expression, and this will return the
- * list of TaskQueues that would
- * distribute tasks to a worker with
- * these attributes.
- * @return $this Fluent Builder
- */
- public function setEvaluateWorkerAttributes($evaluateWorkerAttributes) {
- $this->options['evaluateWorkerAttributes'] = $evaluateWorkerAttributes;
- return $this;
- }
-
- /**
- * The worker_sid
- *
- * @param string $workerSid The worker_sid
- * @return $this Fluent Builder
- */
- public function setWorkerSid($workerSid) {
- $this->options['workerSid'] = $workerSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadTaskQueueOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateTaskQueueOptions extends Options {
- /**
- * @param string $targetWorkers A string describing the Worker selection
- * criteria for any Tasks that enter this
- * TaskQueue.
- * @param integer $maxReservedWorkers The maximum amount of workers to create
- * reservations for the assignment of a task
- * while in this queue.
- * @param string $taskOrder TaskOrder will determine which order the Tasks will
- * be assigned to Workers.
- * @param string $reservationActivitySid ActivitySID to assign workers once a
- * task is reserved for them
- * @param string $assignmentActivitySid ActivitySID to assign workers once a
- * task is assigned for them
- */
- public function __construct($targetWorkers = Values::NONE, $maxReservedWorkers = Values::NONE, $taskOrder = Values::NONE, $reservationActivitySid = Values::NONE, $assignmentActivitySid = Values::NONE) {
- $this->options['targetWorkers'] = $targetWorkers;
- $this->options['maxReservedWorkers'] = $maxReservedWorkers;
- $this->options['taskOrder'] = $taskOrder;
- $this->options['reservationActivitySid'] = $reservationActivitySid;
- $this->options['assignmentActivitySid'] = $assignmentActivitySid;
- }
-
- /**
- * A string describing the Worker selection criteria for any Tasks that enter this TaskQueue. For example `'"language" == "spanish"'` If no TargetWorkers parameter is provided, Tasks will wait in this TaskQueue until they are either deleted or moved to another TaskQueue. Additional examples on how to describing Worker selection criteria below. Defaults to 1==1.
- *
- * @param string $targetWorkers A string describing the Worker selection
- * criteria for any Tasks that enter this
- * TaskQueue.
- * @return $this Fluent Builder
- */
- public function setTargetWorkers($targetWorkers) {
- $this->options['targetWorkers'] = $targetWorkers;
- return $this;
- }
-
- /**
- * The maximum amount of workers to create reservations for the assignment of a task while in this queue. Defaults to 1, with a Maximum of 50.
- *
- * @param integer $maxReservedWorkers The maximum amount of workers to create
- * reservations for the assignment of a task
- * while in this queue.
- * @return $this Fluent Builder
- */
- public function setMaxReservedWorkers($maxReservedWorkers) {
- $this->options['maxReservedWorkers'] = $maxReservedWorkers;
- return $this;
- }
-
- /**
- * TaskOrder will determine which order the Tasks will be assigned to Workers. Set this parameter to LIFO to assign most recently created Task first or FIFO to assign the oldest Task. Default is FIFO. [Click here](https://www.twilio.com/docs/api/taskrouter/last-first-out-lifo) to learn more.
- *
- * @param string $taskOrder TaskOrder will determine which order the Tasks will
- * be assigned to Workers.
- * @return $this Fluent Builder
- */
- public function setTaskOrder($taskOrder) {
- $this->options['taskOrder'] = $taskOrder;
- return $this;
- }
-
- /**
- * ActivitySID to assign workers once a task is reserved for them
- *
- * @param string $reservationActivitySid ActivitySID to assign workers once a
- * task is reserved for them
- * @return $this Fluent Builder
- */
- public function setReservationActivitySid($reservationActivitySid) {
- $this->options['reservationActivitySid'] = $reservationActivitySid;
- return $this;
- }
-
- /**
- * ActivitySID to assign workers once a task is assigned for them
- *
- * @param string $assignmentActivitySid ActivitySID to assign workers once a
- * task is assigned for them
- * @return $this Fluent Builder
- */
- public function setAssignmentActivitySid($assignmentActivitySid) {
- $this->options['assignmentActivitySid'] = $assignmentActivitySid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.CreateTaskQueueOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueuePage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueuePage.php
deleted file mode 100644
index 7e587c9..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueuePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TaskQueueInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.TaskQueuePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationContext.php
deleted file mode 100644
index d78fe31..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationContext.php
+++ /dev/null
@@ -1,151 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/' . rawurlencode($workerSid) . '/Reservations/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ReservationInstance
- *
- * @return ReservationInstance Fetched ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ReservationInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ReservationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ReservationInstance Updated ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'ReservationStatus' => $options['reservationStatus'],
- 'WorkerActivitySid' => $options['workerActivitySid'],
- 'Instruction' => $options['instruction'],
- 'DequeuePostWorkActivitySid' => $options['dequeuePostWorkActivitySid'],
- 'DequeueFrom' => $options['dequeueFrom'],
- 'DequeueRecord' => $options['dequeueRecord'],
- 'DequeueTimeout' => $options['dequeueTimeout'],
- 'DequeueTo' => $options['dequeueTo'],
- 'DequeueStatusCallbackUrl' => $options['dequeueStatusCallbackUrl'],
- 'CallFrom' => $options['callFrom'],
- 'CallRecord' => $options['callRecord'],
- 'CallTimeout' => $options['callTimeout'],
- 'CallTo' => $options['callTo'],
- 'CallUrl' => $options['callUrl'],
- 'CallStatusCallbackUrl' => $options['callStatusCallbackUrl'],
- 'CallAccept' => Serialize::booleanToString($options['callAccept']),
- 'RedirectCallSid' => $options['redirectCallSid'],
- 'RedirectAccept' => Serialize::booleanToString($options['redirectAccept']),
- 'RedirectUrl' => $options['redirectUrl'],
- 'To' => $options['to'],
- 'From' => $options['from'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }),
- 'Timeout' => $options['timeout'],
- 'Record' => Serialize::booleanToString($options['record']),
- 'Muted' => Serialize::booleanToString($options['muted']),
- 'Beep' => $options['beep'],
- 'StartConferenceOnEnter' => Serialize::booleanToString($options['startConferenceOnEnter']),
- 'EndConferenceOnExit' => Serialize::booleanToString($options['endConferenceOnExit']),
- 'WaitUrl' => $options['waitUrl'],
- 'WaitMethod' => $options['waitMethod'],
- 'EarlyMedia' => Serialize::booleanToString($options['earlyMedia']),
- 'MaxParticipants' => $options['maxParticipants'],
- 'ConferenceStatusCallback' => $options['conferenceStatusCallback'],
- 'ConferenceStatusCallbackMethod' => $options['conferenceStatusCallbackMethod'],
- 'ConferenceStatusCallbackEvent' => Serialize::map($options['conferenceStatusCallbackEvent'], function($e) { return $e; }),
- 'ConferenceRecord' => $options['conferenceRecord'],
- 'ConferenceTrim' => $options['conferenceTrim'],
- 'RecordingChannels' => $options['recordingChannels'],
- 'RecordingStatusCallback' => $options['recordingStatusCallback'],
- 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'],
- 'ConferenceRecordingStatusCallback' => $options['conferenceRecordingStatusCallback'],
- 'ConferenceRecordingStatusCallbackMethod' => $options['conferenceRecordingStatusCallbackMethod'],
- 'Region' => $options['region'],
- 'SipAuthUsername' => $options['sipAuthUsername'],
- 'SipAuthPassword' => $options['sipAuthPassword'],
- 'DequeueStatusCallbackEvent' => Serialize::map($options['dequeueStatusCallbackEvent'], function($e) { return $e; }),
- 'PostWorkActivitySid' => $options['postWorkActivitySid'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ReservationInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.ReservationContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationInstance.php
deleted file mode 100644
index 4b70438..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationInstance.php
+++ /dev/null
@@ -1,140 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'reservationStatus' => Values::array_get($payload, 'reservation_status'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taskSid' => Values::array_get($payload, 'task_sid'),
- 'workerName' => Values::array_get($payload, 'worker_name'),
- 'workerSid' => Values::array_get($payload, 'worker_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array(
- 'workspaceSid' => $workspaceSid,
- 'workerSid' => $workerSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\ReservationContext Context for this ReservationInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ReservationContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ReservationInstance
- *
- * @return ReservationInstance Fetched ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ReservationInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ReservationInstance Updated ReservationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.ReservationInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationList.php
deleted file mode 100644
index a4e5fd7..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationList.php
+++ /dev/null
@@ -1,149 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/' . rawurlencode($workerSid) . '/Reservations';
- }
-
- /**
- * Streams ReservationInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ReservationInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ReservationInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ReservationInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ReservationInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'ReservationStatus' => $options['reservationStatus'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ReservationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ReservationInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ReservationInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ReservationPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ReservationContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\ReservationContext
- */
- public function getContext($sid) {
- return new ReservationContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.ReservationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.php
deleted file mode 100644
index 7aa1dad..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.php
+++ /dev/null
@@ -1,788 +0,0 @@
-options['reservationStatus'] = $reservationStatus;
- }
-
- /**
- * Filter by a worker's reservation status (pending, accepted, rejected, timeout, canceled, rescinded)
- *
- * @param string $reservationStatus Filter by a worker's reservation status
- * @return $this Fluent Builder
- */
- public function setReservationStatus($reservationStatus) {
- $this->options['reservationStatus'] = $reservationStatus;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadReservationOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateReservationOptions extends Options {
- /**
- * @param string $reservationStatus Yes
- * @param string $workerActivitySid No
- * @param string $instruction Yes
- * @param string $dequeuePostWorkActivitySid No
- * @param string $dequeueFrom Yes
- * @param string $dequeueRecord The dequeue_record
- * @param integer $dequeueTimeout The dequeue_timeout
- * @param string $dequeueTo The dequeue_to
- * @param string $dequeueStatusCallbackUrl The dequeue_status_callback_url
- * @param string $callFrom Yes
- * @param string $callRecord The call_record
- * @param integer $callTimeout The call_timeout
- * @param string $callTo The call_to
- * @param string $callUrl Yes
- * @param string $callStatusCallbackUrl No
- * @param boolean $callAccept No
- * @param string $redirectCallSid The redirect_call_sid
- * @param boolean $redirectAccept The redirect_accept
- * @param string $redirectUrl The redirect_url
- * @param string $to The to
- * @param string $from The from
- * @param string $statusCallback The status_callback
- * @param string $statusCallbackMethod The status_callback_method
- * @param string $statusCallbackEvent The status_callback_event
- * @param integer $timeout The timeout
- * @param boolean $record The record
- * @param boolean $muted The muted
- * @param string $beep The beep
- * @param boolean $startConferenceOnEnter The start_conference_on_enter
- * @param boolean $endConferenceOnExit The end_conference_on_exit
- * @param string $waitUrl The wait_url
- * @param string $waitMethod The wait_method
- * @param boolean $earlyMedia The early_media
- * @param integer $maxParticipants The max_participants
- * @param string $conferenceStatusCallback The conference_status_callback
- * @param string $conferenceStatusCallbackMethod The
- * conference_status_callback_method
- * @param string $conferenceStatusCallbackEvent The
- * conference_status_callback_event
- * @param string $conferenceRecord The conference_record
- * @param string $conferenceTrim The conference_trim
- * @param string $recordingChannels The recording_channels
- * @param string $recordingStatusCallback The recording_status_callback
- * @param string $recordingStatusCallbackMethod The
- * recording_status_callback_method
- * @param string $conferenceRecordingStatusCallback The
- * conference_recording_status_callback
- * @param string $conferenceRecordingStatusCallbackMethod The
- * conference_recording_status_callback_method
- * @param string $region The region
- * @param string $sipAuthUsername The sip_auth_username
- * @param string $sipAuthPassword The sip_auth_password
- * @param string $dequeueStatusCallbackEvent The dequeue_status_callback_event
- * @param string $postWorkActivitySid The post_work_activity_sid
- */
- public function __construct($reservationStatus = Values::NONE, $workerActivitySid = Values::NONE, $instruction = Values::NONE, $dequeuePostWorkActivitySid = Values::NONE, $dequeueFrom = Values::NONE, $dequeueRecord = Values::NONE, $dequeueTimeout = Values::NONE, $dequeueTo = Values::NONE, $dequeueStatusCallbackUrl = Values::NONE, $callFrom = Values::NONE, $callRecord = Values::NONE, $callTimeout = Values::NONE, $callTo = Values::NONE, $callUrl = Values::NONE, $callStatusCallbackUrl = Values::NONE, $callAccept = Values::NONE, $redirectCallSid = Values::NONE, $redirectAccept = Values::NONE, $redirectUrl = Values::NONE, $to = Values::NONE, $from = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $statusCallbackEvent = Values::NONE, $timeout = Values::NONE, $record = Values::NONE, $muted = Values::NONE, $beep = Values::NONE, $startConferenceOnEnter = Values::NONE, $endConferenceOnExit = Values::NONE, $waitUrl = Values::NONE, $waitMethod = Values::NONE, $earlyMedia = Values::NONE, $maxParticipants = Values::NONE, $conferenceStatusCallback = Values::NONE, $conferenceStatusCallbackMethod = Values::NONE, $conferenceStatusCallbackEvent = Values::NONE, $conferenceRecord = Values::NONE, $conferenceTrim = Values::NONE, $recordingChannels = Values::NONE, $recordingStatusCallback = Values::NONE, $recordingStatusCallbackMethod = Values::NONE, $conferenceRecordingStatusCallback = Values::NONE, $conferenceRecordingStatusCallbackMethod = Values::NONE, $region = Values::NONE, $sipAuthUsername = Values::NONE, $sipAuthPassword = Values::NONE, $dequeueStatusCallbackEvent = Values::NONE, $postWorkActivitySid = Values::NONE) {
- $this->options['reservationStatus'] = $reservationStatus;
- $this->options['workerActivitySid'] = $workerActivitySid;
- $this->options['instruction'] = $instruction;
- $this->options['dequeuePostWorkActivitySid'] = $dequeuePostWorkActivitySid;
- $this->options['dequeueFrom'] = $dequeueFrom;
- $this->options['dequeueRecord'] = $dequeueRecord;
- $this->options['dequeueTimeout'] = $dequeueTimeout;
- $this->options['dequeueTo'] = $dequeueTo;
- $this->options['dequeueStatusCallbackUrl'] = $dequeueStatusCallbackUrl;
- $this->options['callFrom'] = $callFrom;
- $this->options['callRecord'] = $callRecord;
- $this->options['callTimeout'] = $callTimeout;
- $this->options['callTo'] = $callTo;
- $this->options['callUrl'] = $callUrl;
- $this->options['callStatusCallbackUrl'] = $callStatusCallbackUrl;
- $this->options['callAccept'] = $callAccept;
- $this->options['redirectCallSid'] = $redirectCallSid;
- $this->options['redirectAccept'] = $redirectAccept;
- $this->options['redirectUrl'] = $redirectUrl;
- $this->options['to'] = $to;
- $this->options['from'] = $from;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- $this->options['timeout'] = $timeout;
- $this->options['record'] = $record;
- $this->options['muted'] = $muted;
- $this->options['beep'] = $beep;
- $this->options['startConferenceOnEnter'] = $startConferenceOnEnter;
- $this->options['endConferenceOnExit'] = $endConferenceOnExit;
- $this->options['waitUrl'] = $waitUrl;
- $this->options['waitMethod'] = $waitMethod;
- $this->options['earlyMedia'] = $earlyMedia;
- $this->options['maxParticipants'] = $maxParticipants;
- $this->options['conferenceStatusCallback'] = $conferenceStatusCallback;
- $this->options['conferenceStatusCallbackMethod'] = $conferenceStatusCallbackMethod;
- $this->options['conferenceStatusCallbackEvent'] = $conferenceStatusCallbackEvent;
- $this->options['conferenceRecord'] = $conferenceRecord;
- $this->options['conferenceTrim'] = $conferenceTrim;
- $this->options['recordingChannels'] = $recordingChannels;
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- $this->options['conferenceRecordingStatusCallback'] = $conferenceRecordingStatusCallback;
- $this->options['conferenceRecordingStatusCallbackMethod'] = $conferenceRecordingStatusCallbackMethod;
- $this->options['region'] = $region;
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- $this->options['dequeueStatusCallbackEvent'] = $dequeueStatusCallbackEvent;
- $this->options['postWorkActivitySid'] = $postWorkActivitySid;
- }
-
- /**
- * Yes
- *
- * @param string $reservationStatus Yes
- * @return $this Fluent Builder
- */
- public function setReservationStatus($reservationStatus) {
- $this->options['reservationStatus'] = $reservationStatus;
- return $this;
- }
-
- /**
- * No
- *
- * @param string $workerActivitySid No
- * @return $this Fluent Builder
- */
- public function setWorkerActivitySid($workerActivitySid) {
- $this->options['workerActivitySid'] = $workerActivitySid;
- return $this;
- }
-
- /**
- * Yes
- *
- * @param string $instruction Yes
- * @return $this Fluent Builder
- */
- public function setInstruction($instruction) {
- $this->options['instruction'] = $instruction;
- return $this;
- }
-
- /**
- * No
- *
- * @param string $dequeuePostWorkActivitySid No
- * @return $this Fluent Builder
- */
- public function setDequeuePostWorkActivitySid($dequeuePostWorkActivitySid) {
- $this->options['dequeuePostWorkActivitySid'] = $dequeuePostWorkActivitySid;
- return $this;
- }
-
- /**
- * Yes
- *
- * @param string $dequeueFrom Yes
- * @return $this Fluent Builder
- */
- public function setDequeueFrom($dequeueFrom) {
- $this->options['dequeueFrom'] = $dequeueFrom;
- return $this;
- }
-
- /**
- * The dequeue_record
- *
- * @param string $dequeueRecord The dequeue_record
- * @return $this Fluent Builder
- */
- public function setDequeueRecord($dequeueRecord) {
- $this->options['dequeueRecord'] = $dequeueRecord;
- return $this;
- }
-
- /**
- * The dequeue_timeout
- *
- * @param integer $dequeueTimeout The dequeue_timeout
- * @return $this Fluent Builder
- */
- public function setDequeueTimeout($dequeueTimeout) {
- $this->options['dequeueTimeout'] = $dequeueTimeout;
- return $this;
- }
-
- /**
- * The dequeue_to
- *
- * @param string $dequeueTo The dequeue_to
- * @return $this Fluent Builder
- */
- public function setDequeueTo($dequeueTo) {
- $this->options['dequeueTo'] = $dequeueTo;
- return $this;
- }
-
- /**
- * The dequeue_status_callback_url
- *
- * @param string $dequeueStatusCallbackUrl The dequeue_status_callback_url
- * @return $this Fluent Builder
- */
- public function setDequeueStatusCallbackUrl($dequeueStatusCallbackUrl) {
- $this->options['dequeueStatusCallbackUrl'] = $dequeueStatusCallbackUrl;
- return $this;
- }
-
- /**
- * Yes
- *
- * @param string $callFrom Yes
- * @return $this Fluent Builder
- */
- public function setCallFrom($callFrom) {
- $this->options['callFrom'] = $callFrom;
- return $this;
- }
-
- /**
- * The call_record
- *
- * @param string $callRecord The call_record
- * @return $this Fluent Builder
- */
- public function setCallRecord($callRecord) {
- $this->options['callRecord'] = $callRecord;
- return $this;
- }
-
- /**
- * The call_timeout
- *
- * @param integer $callTimeout The call_timeout
- * @return $this Fluent Builder
- */
- public function setCallTimeout($callTimeout) {
- $this->options['callTimeout'] = $callTimeout;
- return $this;
- }
-
- /**
- * The call_to
- *
- * @param string $callTo The call_to
- * @return $this Fluent Builder
- */
- public function setCallTo($callTo) {
- $this->options['callTo'] = $callTo;
- return $this;
- }
-
- /**
- * Yes
- *
- * @param string $callUrl Yes
- * @return $this Fluent Builder
- */
- public function setCallUrl($callUrl) {
- $this->options['callUrl'] = $callUrl;
- return $this;
- }
-
- /**
- * No
- *
- * @param string $callStatusCallbackUrl No
- * @return $this Fluent Builder
- */
- public function setCallStatusCallbackUrl($callStatusCallbackUrl) {
- $this->options['callStatusCallbackUrl'] = $callStatusCallbackUrl;
- return $this;
- }
-
- /**
- * No
- *
- * @param boolean $callAccept No
- * @return $this Fluent Builder
- */
- public function setCallAccept($callAccept) {
- $this->options['callAccept'] = $callAccept;
- return $this;
- }
-
- /**
- * The redirect_call_sid
- *
- * @param string $redirectCallSid The redirect_call_sid
- * @return $this Fluent Builder
- */
- public function setRedirectCallSid($redirectCallSid) {
- $this->options['redirectCallSid'] = $redirectCallSid;
- return $this;
- }
-
- /**
- * The redirect_accept
- *
- * @param boolean $redirectAccept The redirect_accept
- * @return $this Fluent Builder
- */
- public function setRedirectAccept($redirectAccept) {
- $this->options['redirectAccept'] = $redirectAccept;
- return $this;
- }
-
- /**
- * The redirect_url
- *
- * @param string $redirectUrl The redirect_url
- * @return $this Fluent Builder
- */
- public function setRedirectUrl($redirectUrl) {
- $this->options['redirectUrl'] = $redirectUrl;
- return $this;
- }
-
- /**
- * The to
- *
- * @param string $to The to
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * The from
- *
- * @param string $from The from
- * @return $this Fluent Builder
- */
- public function setFrom($from) {
- $this->options['from'] = $from;
- return $this;
- }
-
- /**
- * The status_callback
- *
- * @param string $statusCallback The status_callback
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * The status_callback_method
- *
- * @param string $statusCallbackMethod The status_callback_method
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * The status_callback_event
- *
- * @param string $statusCallbackEvent The status_callback_event
- * @return $this Fluent Builder
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- $this->options['statusCallbackEvent'] = $statusCallbackEvent;
- return $this;
- }
-
- /**
- * The timeout
- *
- * @param integer $timeout The timeout
- * @return $this Fluent Builder
- */
- public function setTimeout($timeout) {
- $this->options['timeout'] = $timeout;
- return $this;
- }
-
- /**
- * The record
- *
- * @param boolean $record The record
- * @return $this Fluent Builder
- */
- public function setRecord($record) {
- $this->options['record'] = $record;
- return $this;
- }
-
- /**
- * The muted
- *
- * @param boolean $muted The muted
- * @return $this Fluent Builder
- */
- public function setMuted($muted) {
- $this->options['muted'] = $muted;
- return $this;
- }
-
- /**
- * The beep
- *
- * @param string $beep The beep
- * @return $this Fluent Builder
- */
- public function setBeep($beep) {
- $this->options['beep'] = $beep;
- return $this;
- }
-
- /**
- * The start_conference_on_enter
- *
- * @param boolean $startConferenceOnEnter The start_conference_on_enter
- * @return $this Fluent Builder
- */
- public function setStartConferenceOnEnter($startConferenceOnEnter) {
- $this->options['startConferenceOnEnter'] = $startConferenceOnEnter;
- return $this;
- }
-
- /**
- * The end_conference_on_exit
- *
- * @param boolean $endConferenceOnExit The end_conference_on_exit
- * @return $this Fluent Builder
- */
- public function setEndConferenceOnExit($endConferenceOnExit) {
- $this->options['endConferenceOnExit'] = $endConferenceOnExit;
- return $this;
- }
-
- /**
- * The wait_url
- *
- * @param string $waitUrl The wait_url
- * @return $this Fluent Builder
- */
- public function setWaitUrl($waitUrl) {
- $this->options['waitUrl'] = $waitUrl;
- return $this;
- }
-
- /**
- * The wait_method
- *
- * @param string $waitMethod The wait_method
- * @return $this Fluent Builder
- */
- public function setWaitMethod($waitMethod) {
- $this->options['waitMethod'] = $waitMethod;
- return $this;
- }
-
- /**
- * The early_media
- *
- * @param boolean $earlyMedia The early_media
- * @return $this Fluent Builder
- */
- public function setEarlyMedia($earlyMedia) {
- $this->options['earlyMedia'] = $earlyMedia;
- return $this;
- }
-
- /**
- * The max_participants
- *
- * @param integer $maxParticipants The max_participants
- * @return $this Fluent Builder
- */
- public function setMaxParticipants($maxParticipants) {
- $this->options['maxParticipants'] = $maxParticipants;
- return $this;
- }
-
- /**
- * The conference_status_callback
- *
- * @param string $conferenceStatusCallback The conference_status_callback
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallback($conferenceStatusCallback) {
- $this->options['conferenceStatusCallback'] = $conferenceStatusCallback;
- return $this;
- }
-
- /**
- * The conference_status_callback_method
- *
- * @param string $conferenceStatusCallbackMethod The
- * conference_status_callback_method
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallbackMethod($conferenceStatusCallbackMethod) {
- $this->options['conferenceStatusCallbackMethod'] = $conferenceStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The conference_status_callback_event
- *
- * @param string $conferenceStatusCallbackEvent The
- * conference_status_callback_event
- * @return $this Fluent Builder
- */
- public function setConferenceStatusCallbackEvent($conferenceStatusCallbackEvent) {
- $this->options['conferenceStatusCallbackEvent'] = $conferenceStatusCallbackEvent;
- return $this;
- }
-
- /**
- * The conference_record
- *
- * @param string $conferenceRecord The conference_record
- * @return $this Fluent Builder
- */
- public function setConferenceRecord($conferenceRecord) {
- $this->options['conferenceRecord'] = $conferenceRecord;
- return $this;
- }
-
- /**
- * The conference_trim
- *
- * @param string $conferenceTrim The conference_trim
- * @return $this Fluent Builder
- */
- public function setConferenceTrim($conferenceTrim) {
- $this->options['conferenceTrim'] = $conferenceTrim;
- return $this;
- }
-
- /**
- * The recording_channels
- *
- * @param string $recordingChannels The recording_channels
- * @return $this Fluent Builder
- */
- public function setRecordingChannels($recordingChannels) {
- $this->options['recordingChannels'] = $recordingChannels;
- return $this;
- }
-
- /**
- * The recording_status_callback
- *
- * @param string $recordingStatusCallback The recording_status_callback
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- $this->options['recordingStatusCallback'] = $recordingStatusCallback;
- return $this;
- }
-
- /**
- * The recording_status_callback_method
- *
- * @param string $recordingStatusCallbackMethod The
- * recording_status_callback_method
- * @return $this Fluent Builder
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- $this->options['recordingStatusCallbackMethod'] = $recordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The conference_recording_status_callback
- *
- * @param string $conferenceRecordingStatusCallback The
- * conference_recording_status_callback
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallback($conferenceRecordingStatusCallback) {
- $this->options['conferenceRecordingStatusCallback'] = $conferenceRecordingStatusCallback;
- return $this;
- }
-
- /**
- * The conference_recording_status_callback_method
- *
- * @param string $conferenceRecordingStatusCallbackMethod The
- * conference_recording_status_callback_method
- * @return $this Fluent Builder
- */
- public function setConferenceRecordingStatusCallbackMethod($conferenceRecordingStatusCallbackMethod) {
- $this->options['conferenceRecordingStatusCallbackMethod'] = $conferenceRecordingStatusCallbackMethod;
- return $this;
- }
-
- /**
- * The region
- *
- * @param string $region The region
- * @return $this Fluent Builder
- */
- public function setRegion($region) {
- $this->options['region'] = $region;
- return $this;
- }
-
- /**
- * The sip_auth_username
- *
- * @param string $sipAuthUsername The sip_auth_username
- * @return $this Fluent Builder
- */
- public function setSipAuthUsername($sipAuthUsername) {
- $this->options['sipAuthUsername'] = $sipAuthUsername;
- return $this;
- }
-
- /**
- * The sip_auth_password
- *
- * @param string $sipAuthPassword The sip_auth_password
- * @return $this Fluent Builder
- */
- public function setSipAuthPassword($sipAuthPassword) {
- $this->options['sipAuthPassword'] = $sipAuthPassword;
- return $this;
- }
-
- /**
- * The dequeue_status_callback_event
- *
- * @param string $dequeueStatusCallbackEvent The dequeue_status_callback_event
- * @return $this Fluent Builder
- */
- public function setDequeueStatusCallbackEvent($dequeueStatusCallbackEvent) {
- $this->options['dequeueStatusCallbackEvent'] = $dequeueStatusCallbackEvent;
- return $this;
- }
-
- /**
- * The post_work_activity_sid
- *
- * @param string $postWorkActivitySid The post_work_activity_sid
- * @return $this Fluent Builder
- */
- public function setPostWorkActivitySid($postWorkActivitySid) {
- $this->options['postWorkActivitySid'] = $postWorkActivitySid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateReservationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationPage.php
deleted file mode 100644
index 5e4d44b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ReservationInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.ReservationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelContext.php
deleted file mode 100644
index 8cbc67b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelContext.php
+++ /dev/null
@@ -1,104 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/' . rawurlencode($workerSid) . '/Channels/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a WorkerChannelInstance
- *
- * @return WorkerChannelInstance Fetched WorkerChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkerChannelInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the WorkerChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkerChannelInstance Updated WorkerChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Capacity' => $options['capacity'],
- 'Available' => Serialize::booleanToString($options['available']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkerChannelInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkerChannelContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelInstance.php
deleted file mode 100644
index 0ea28cd..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelInstance.php
+++ /dev/null
@@ -1,146 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assignedTasks' => Values::array_get($payload, 'assigned_tasks'),
- 'available' => Values::array_get($payload, 'available'),
- 'availableCapacityPercentage' => Values::array_get($payload, 'available_capacity_percentage'),
- 'configuredCapacity' => Values::array_get($payload, 'configured_capacity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taskChannelSid' => Values::array_get($payload, 'task_channel_sid'),
- 'taskChannelUniqueName' => Values::array_get($payload, 'task_channel_unique_name'),
- 'workerSid' => Values::array_get($payload, 'worker_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'workspaceSid' => $workspaceSid,
- 'workerSid' => $workerSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelContext Context for this WorkerChannelInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkerChannelContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkerChannelInstance
- *
- * @return WorkerChannelInstance Fetched WorkerChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the WorkerChannelInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkerChannelInstance Updated WorkerChannelInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkerChannelInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelList.php
deleted file mode 100644
index e10bb38..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelList.php
+++ /dev/null
@@ -1,145 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/' . rawurlencode($workerSid) . '/Channels';
- }
-
- /**
- * Streams WorkerChannelInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads WorkerChannelInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return WorkerChannelInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of WorkerChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of WorkerChannelInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkerChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of WorkerChannelInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of WorkerChannelInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new WorkerChannelPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a WorkerChannelContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelContext
- */
- public function getContext($sid) {
- return new WorkerChannelContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workerSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkerChannelList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.php
deleted file mode 100644
index 3ed9779..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.php
+++ /dev/null
@@ -1,75 +0,0 @@
-options['capacity'] = $capacity;
- $this->options['available'] = $available;
- }
-
- /**
- * The total number of Tasks worker should handle for this TaskChannel type. TaskRouter will only create reservations for Tasks of this TaskChannel type up to the capacity configured. If the capacity is 0, no new reservations will be created
- *
- * @param integer $capacity The total number of Tasks worker should handle for
- * this TaskChannel type.
- * @return $this Fluent Builder
- */
- public function setCapacity($capacity) {
- $this->options['capacity'] = $capacity;
- return $this;
- }
-
- /**
- * Toggle the availability of the WorkerChannel. Set this to 'False' to make worker unavailable to receive any new Tasks of this TaskChannel type.
- *
- * @param boolean $available Toggle the availability of the WorkerChannel.
- * @return $this Fluent Builder
- */
- public function setAvailable($available) {
- $this->options['available'] = $available;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateWorkerChannelOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelPage.php
deleted file mode 100644
index f6a33ca..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkerChannelInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkerChannelPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php
deleted file mode 100644
index 1297d9a..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/' . rawurlencode($workerSid) . '/Statistics';
- }
-
- /**
- * Fetch a WorkerStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkerStatisticsInstance Fetched WorkerStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'TaskChannel' => $options['taskChannel'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkerStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkerStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsInstance.php
deleted file mode 100644
index c83792f..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsInstance.php
+++ /dev/null
@@ -1,111 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'cumulative' => Values::array_get($payload, 'cumulative'),
- 'workerSid' => Values::array_get($payload, 'worker_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerStatisticsContext Context for this WorkerStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkerStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workerSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkerStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkerStatisticsInstance Fetched WorkerStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkerStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsList.php
deleted file mode 100644
index 20ec094..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workerSid' => $workerSid, );
- }
-
- /**
- * Constructs a WorkerStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerStatisticsContext
- */
- public function getContext() {
- return new WorkerStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workerSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkerStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.php
deleted file mode 100644
index ed40564..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.php
+++ /dev/null
@@ -1,103 +0,0 @@
-options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'.
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a end date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'.
- *
- * @param \DateTime $endDate Filter cumulative statistics by a end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter cumulative statistics by TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkerStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsPage.php
deleted file mode 100644
index e532956..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkerStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workerSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkerStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsContext.php
deleted file mode 100644
index 9b058fc..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsContext.php
+++ /dev/null
@@ -1,78 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/CumulativeStatistics';
- }
-
- /**
- * Fetch a WorkersCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkersCumulativeStatisticsInstance Fetched
- * WorkersCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskChannel' => $options['taskChannel'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkersCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkersCumulativeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsInstance.php
deleted file mode 100644
index 53b8c28..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsInstance.php
+++ /dev/null
@@ -1,126 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'activityDurations' => Values::array_get($payload, 'activity_durations'),
- 'reservationsCreated' => Values::array_get($payload, 'reservations_created'),
- 'reservationsAccepted' => Values::array_get($payload, 'reservations_accepted'),
- 'reservationsRejected' => Values::array_get($payload, 'reservations_rejected'),
- 'reservationsTimedOut' => Values::array_get($payload, 'reservations_timed_out'),
- 'reservationsCanceled' => Values::array_get($payload, 'reservations_canceled'),
- 'reservationsRescinded' => Values::array_get($payload, 'reservations_rescinded'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersCumulativeStatisticsContext Context for this
- * WorkersCumulativeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkersCumulativeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkersCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkersCumulativeStatisticsInstance Fetched
- * WorkersCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkersCumulativeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsList.php
deleted file mode 100644
index f191177..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Constructs a WorkersCumulativeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersCumulativeStatisticsContext
- */
- public function getContext() {
- return new WorkersCumulativeStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkersCumulativeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.php
deleted file mode 100644
index 700794f..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.php
+++ /dev/null
@@ -1,103 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter cumulative statistics by a end date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'.
- *
- * @param \DateTime $endDate Filter cumulative statistics by a end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'.
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter cumulative statistics by TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkersCumulativeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsPage.php
deleted file mode 100644
index ae90bfb..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsPage.php
+++ /dev/null
@@ -1,38 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkersCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkersCumulativeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsContext.php
deleted file mode 100644
index d7e5e59..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/RealTimeStatistics';
- }
-
- /**
- * Fetch a WorkersRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkersRealTimeStatisticsInstance Fetched
- * WorkersRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array('TaskChannel' => $options['taskChannel'], ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkersRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkersRealTimeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsInstance.php
deleted file mode 100644
index f004452..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsInstance.php
+++ /dev/null
@@ -1,111 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'activityStatistics' => Values::array_get($payload, 'activity_statistics'),
- 'totalWorkers' => Values::array_get($payload, 'total_workers'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersRealTimeStatisticsContext Context for this
- * WorkersRealTimeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkersRealTimeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkersRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkersRealTimeStatisticsInstance Fetched
- * WorkersRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkersRealTimeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsList.php
deleted file mode 100644
index c650bf8..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Constructs a WorkersRealTimeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersRealTimeStatisticsContext
- */
- public function getContext() {
- return new WorkersRealTimeStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkersRealTimeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.php
deleted file mode 100644
index 5e19221..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.php
+++ /dev/null
@@ -1,58 +0,0 @@
-options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter cumulative statistics by TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkersRealTimeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsPage.php
deleted file mode 100644
index f13baed..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsPage.php
+++ /dev/null
@@ -1,38 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkersRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkersRealTimeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsContext.php
deleted file mode 100644
index 391b7d6..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsContext.php
+++ /dev/null
@@ -1,76 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/Statistics';
- }
-
- /**
- * Fetch a WorkersStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkersStatisticsInstance Fetched WorkersStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'TaskQueueSid' => $options['taskQueueSid'],
- 'TaskQueueName' => $options['taskQueueName'],
- 'FriendlyName' => $options['friendlyName'],
- 'TaskChannel' => $options['taskChannel'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkersStatisticsInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkersStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsInstance.php
deleted file mode 100644
index 8f2e44c..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsInstance.php
+++ /dev/null
@@ -1,107 +0,0 @@
-properties = array(
- 'realtime' => Values::array_get($payload, 'realtime'),
- 'cumulative' => Values::array_get($payload, 'cumulative'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersStatisticsContext Context for this WorkersStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkersStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkersStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkersStatisticsInstance Fetched WorkersStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkersStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsList.php
deleted file mode 100644
index 6c2b14b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsList.php
+++ /dev/null
@@ -1,48 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Constructs a WorkersStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersStatisticsContext
- */
- public function getContext() {
- return new WorkersStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkersStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.php
deleted file mode 100644
index 629e470..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.php
+++ /dev/null
@@ -1,151 +0,0 @@
-options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['taskQueueSid'] = $taskQueueSid;
- $this->options['taskQueueName'] = $taskQueueName;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'.
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a end date. This is helpful for defining a range of statistics to capture. Input is a string of the format: yyyy-MM-dd'T'HH:mm:ss'Z'.
- *
- * @param \DateTime $endDate Filter cumulative statistics by a end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter the real-time and cumulative statistics based on Workers tied to a particular queue
- *
- * @param string $taskQueueSid Filter the real-time and cumulative statistics
- * based on Workers tied to a particular queue
- * @return $this Fluent Builder
- */
- public function setTaskQueueSid($taskQueueSid) {
- $this->options['taskQueueSid'] = $taskQueueSid;
- return $this;
- }
-
- /**
- * Filter the real-time and cumulative statistics based on Workers tied to a particular queue
- *
- * @param string $taskQueueName Filter the real-time and cumulative statistics
- * based on Workers tied to a particular queue
- * @return $this Fluent Builder
- */
- public function setTaskQueueName($taskQueueName) {
- $this->options['taskQueueName'] = $taskQueueName;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter cumulative statistics by TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkersStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsPage.php
deleted file mode 100644
index 5356f01..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkersStatisticsInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkersStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php
deleted file mode 100644
index 3e08cb9..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php
+++ /dev/null
@@ -1,251 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a WorkerInstance
- *
- * @return WorkerInstance Fetched WorkerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkerInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the WorkerInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkerInstance Updated WorkerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'ActivitySid' => $options['activitySid'],
- 'Attributes' => $options['attributes'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkerInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the WorkerInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- if (!$this->_realTimeStatistics) {
- $this->_realTimeStatistics = new WorkersRealTimeStatisticsList(
- $this->version,
- $this->solution['workspaceSid']
- );
- }
-
- return $this->_realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- if (!$this->_cumulativeStatistics) {
- $this->_cumulativeStatistics = new WorkersCumulativeStatisticsList(
- $this->version,
- $this->solution['workspaceSid']
- );
- }
-
- return $this->_cumulativeStatistics;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerStatisticsList
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new WorkerStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_statistics;
- }
-
- /**
- * Access the reservations
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\ReservationList
- */
- protected function getReservations() {
- if (!$this->_reservations) {
- $this->_reservations = new ReservationList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_reservations;
- }
-
- /**
- * Access the workerChannels
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelList
- */
- protected function getWorkerChannels() {
- if (!$this->_workerChannels) {
- $this->_workerChannels = new WorkerChannelList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_workerChannels;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkerContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerInstance.php
deleted file mode 100644
index d2062a8..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerInstance.php
+++ /dev/null
@@ -1,201 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'activityName' => Values::array_get($payload, 'activity_name'),
- 'activitySid' => Values::array_get($payload, 'activity_sid'),
- 'attributes' => Values::array_get($payload, 'attributes'),
- 'available' => Values::array_get($payload, 'available'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateStatusChanged' => Deserialize::dateTime(Values::array_get($payload, 'date_status_changed')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkerContext Context for this
- * WorkerInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkerContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkerInstance
- *
- * @return WorkerInstance Fetched WorkerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the WorkerInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkerInstance Updated WorkerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the WorkerInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- return $this->proxy()->realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- return $this->proxy()->cumulativeStatistics;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerStatisticsList
- */
- protected function getStatistics() {
- return $this->proxy()->statistics;
- }
-
- /**
- * Access the reservations
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\ReservationList
- */
- protected function getReservations() {
- return $this->proxy()->reservations;
- }
-
- /**
- * Access the workerChannels
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelList
- */
- protected function getWorkerChannels() {
- return $this->proxy()->workerChannels;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkerInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerList.php
deleted file mode 100644
index 0e46da0..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerList.php
+++ /dev/null
@@ -1,230 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workers';
- }
-
- /**
- * Streams WorkerInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads WorkerInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return WorkerInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of WorkerInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of WorkerInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'ActivityName' => $options['activityName'],
- 'ActivitySid' => $options['activitySid'],
- 'Available' => $options['available'],
- 'FriendlyName' => $options['friendlyName'],
- 'TargetWorkersExpression' => $options['targetWorkersExpression'],
- 'TaskQueueName' => $options['taskQueueName'],
- 'TaskQueueSid' => $options['taskQueueSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkerPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of WorkerInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of WorkerInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new WorkerPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new WorkerInstance
- *
- * @param string $friendlyName String representing user-friendly name for the
- * Worker.
- * @param array|Options $options Optional Arguments
- * @return WorkerInstance Newly created WorkerInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'ActivitySid' => $options['activitySid'],
- 'Attributes' => $options['attributes'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkerInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Access the statistics
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new WorkersStatisticsList($this->version, $this->solution['workspaceSid']);
- }
-
- return $this->_statistics;
- }
-
- /**
- * Constructs a WorkerContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkerContext
- */
- public function getContext($sid) {
- return new WorkerContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkerList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.php
deleted file mode 100644
index 4b572a6..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.php
+++ /dev/null
@@ -1,288 +0,0 @@
-options['activityName'] = $activityName;
- $this->options['activitySid'] = $activitySid;
- $this->options['available'] = $available;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['targetWorkersExpression'] = $targetWorkersExpression;
- $this->options['taskQueueName'] = $taskQueueName;
- $this->options['taskQueueSid'] = $taskQueueSid;
- }
-
- /**
- * Filter by workers that are in a particular Activity by Friendly Name
- *
- * @param string $activityName Filter by workers that are in a particular
- * Activity by Friendly Name
- * @return $this Fluent Builder
- */
- public function setActivityName($activityName) {
- $this->options['activityName'] = $activityName;
- return $this;
- }
-
- /**
- * Filter by workers that are in a particular Activity by SID
- *
- * @param string $activitySid Filter by workers that are in a particular
- * Activity by SID
- * @return $this Fluent Builder
- */
- public function setActivitySid($activitySid) {
- $this->options['activitySid'] = $activitySid;
- return $this;
- }
-
- /**
- * Filter by workers that are available or unavailable. (Note: This can be 'true', '1' or 'yes' to indicate a true value. All other values will represent false)
- *
- * @param string $available Filter by workers that are available or unavailable.
- * @return $this Fluent Builder
- */
- public function setAvailable($available) {
- $this->options['available'] = $available;
- return $this;
- }
-
- /**
- * Filter by a worker's friendly name
- *
- * @param string $friendlyName Filter by a worker's friendly name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Filter by workers that would match an expression on a TaskQueue. This is helpful for debugging which workers would match a potential queue.
- *
- * @param string $targetWorkersExpression Filter by workers that would match an
- * expression on a TaskQueue.
- * @return $this Fluent Builder
- */
- public function setTargetWorkersExpression($targetWorkersExpression) {
- $this->options['targetWorkersExpression'] = $targetWorkersExpression;
- return $this;
- }
-
- /**
- * Filter by workers that are eligible for a TaskQueue by Friendly Name
- *
- * @param string $taskQueueName Filter by workers that are eligible for a
- * TaskQueue by Friendly Name
- * @return $this Fluent Builder
- */
- public function setTaskQueueName($taskQueueName) {
- $this->options['taskQueueName'] = $taskQueueName;
- return $this;
- }
-
- /**
- * Filter by workers that are eligible for a TaskQueue by SID
- *
- * @param string $taskQueueSid Filter by workers that are eligible for a
- * TaskQueue by SID
- * @return $this Fluent Builder
- */
- public function setTaskQueueSid($taskQueueSid) {
- $this->options['taskQueueSid'] = $taskQueueSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadWorkerOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateWorkerOptions extends Options {
- /**
- * @param string $activitySid A valid Activity describing the worker's initial
- * state.
- * @param string $attributes JSON object describing this worker.
- */
- public function __construct($activitySid = Values::NONE, $attributes = Values::NONE) {
- $this->options['activitySid'] = $activitySid;
- $this->options['attributes'] = $attributes;
- }
-
- /**
- * A valid Activity describing the worker's initial state. See Activities for more information. If not provided, new Workers will be use the DefaultActivitySid configured on the Workspace.
- *
- * @param string $activitySid A valid Activity describing the worker's initial
- * state.
- * @return $this Fluent Builder
- */
- public function setActivitySid($activitySid) {
- $this->options['activitySid'] = $activitySid;
- return $this;
- }
-
- /**
- * JSON object describing this worker. For example: `{ 'email: 'Bob@foo.com', 'phone': '8675309' }`. This data will be passed to the Assignment Callback URL whenever TaskRouter assigns a Task to this worker. Defaults to {}.
- *
- * @param string $attributes JSON object describing this worker.
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.CreateWorkerOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateWorkerOptions extends Options {
- /**
- * @param string $activitySid The activity_sid
- * @param string $attributes The attributes
- * @param string $friendlyName The friendly_name
- */
- public function __construct($activitySid = Values::NONE, $attributes = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['activitySid'] = $activitySid;
- $this->options['attributes'] = $attributes;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * The activity_sid
- *
- * @param string $activitySid The activity_sid
- * @return $this Fluent Builder
- */
- public function setActivitySid($activitySid) {
- $this->options['activitySid'] = $activitySid;
- return $this;
- }
-
- /**
- * The attributes
- *
- * @param string $attributes The attributes
- * @return $this Fluent Builder
- */
- public function setAttributes($attributes) {
- $this->options['attributes'] = $attributes;
- return $this;
- }
-
- /**
- * The friendly_name
- *
- * @param string $friendlyName The friendly_name
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateWorkerOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerPage.php
deleted file mode 100644
index 282e252..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkerPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkerInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkerPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsContext.php
deleted file mode 100644
index 85eebf6..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsContext.php
+++ /dev/null
@@ -1,81 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workflows/' . rawurlencode($workflowSid) . '/CumulativeStatistics';
- }
-
- /**
- * Fetch a WorkflowCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowCumulativeStatisticsInstance Fetched
- * WorkflowCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkflowCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowCumulativeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsInstance.php
deleted file mode 100644
index 0f0cc5b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsInstance.php
+++ /dev/null
@@ -1,148 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'avgTaskAcceptanceTime' => Values::array_get($payload, 'avg_task_acceptance_time'),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'reservationsCreated' => Values::array_get($payload, 'reservations_created'),
- 'reservationsAccepted' => Values::array_get($payload, 'reservations_accepted'),
- 'reservationsRejected' => Values::array_get($payload, 'reservations_rejected'),
- 'reservationsTimedOut' => Values::array_get($payload, 'reservations_timed_out'),
- 'reservationsCanceled' => Values::array_get($payload, 'reservations_canceled'),
- 'reservationsRescinded' => Values::array_get($payload, 'reservations_rescinded'),
- 'splitByWaitTime' => Values::array_get($payload, 'split_by_wait_time'),
- 'waitDurationUntilAccepted' => Values::array_get($payload, 'wait_duration_until_accepted'),
- 'waitDurationUntilCanceled' => Values::array_get($payload, 'wait_duration_until_canceled'),
- 'tasksCanceled' => Values::array_get($payload, 'tasks_canceled'),
- 'tasksCompleted' => Values::array_get($payload, 'tasks_completed'),
- 'tasksEntered' => Values::array_get($payload, 'tasks_entered'),
- 'tasksDeleted' => Values::array_get($payload, 'tasks_deleted'),
- 'tasksMoved' => Values::array_get($payload, 'tasks_moved'),
- 'tasksTimedOutInWorkflow' => Values::array_get($payload, 'tasks_timed_out_in_workflow'),
- 'workflowSid' => Values::array_get($payload, 'workflow_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowCumulativeStatisticsContext Context for this
- * WorkflowCumulativeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkflowCumulativeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkflowCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowCumulativeStatisticsInstance Fetched
- * WorkflowCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowCumulativeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsList.php
deleted file mode 100644
index c3b6dc5..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
- }
-
- /**
- * Constructs a WorkflowCumulativeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowCumulativeStatisticsContext
- */
- public function getContext() {
- return new WorkflowCumulativeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowCumulativeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.php
deleted file mode 100644
index a077be4..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkflowCumulativeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsPage.php
deleted file mode 100644
index aa10add..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkflowCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowCumulativeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsContext.php
deleted file mode 100644
index 47fe0a3..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsContext.php
+++ /dev/null
@@ -1,74 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workflows/' . rawurlencode($workflowSid) . '/RealTimeStatistics';
- }
-
- /**
- * Fetch a WorkflowRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowRealTimeStatisticsInstance Fetched
- * WorkflowRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array('TaskChannel' => $options['taskChannel'], ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkflowRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowRealTimeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsInstance.php
deleted file mode 100644
index eb6e31c..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsInstance.php
+++ /dev/null
@@ -1,119 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'longestTaskWaitingAge' => Values::array_get($payload, 'longest_task_waiting_age'),
- 'tasksByPriority' => Values::array_get($payload, 'tasks_by_priority'),
- 'tasksByStatus' => Values::array_get($payload, 'tasks_by_status'),
- 'totalTasks' => Values::array_get($payload, 'total_tasks'),
- 'workflowSid' => Values::array_get($payload, 'workflow_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowRealTimeStatisticsContext Context for this
- * WorkflowRealTimeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkflowRealTimeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkflowRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowRealTimeStatisticsInstance Fetched
- * WorkflowRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowRealTimeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsList.php
deleted file mode 100644
index 132a9c6..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
- }
-
- /**
- * Constructs a WorkflowRealTimeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowRealTimeStatisticsContext
- */
- public function getContext() {
- return new WorkflowRealTimeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowRealTimeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.php
deleted file mode 100644
index 5438305..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkflowRealTimeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsPage.php
deleted file mode 100644
index 6ebb1fa..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkflowRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowRealTimeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsContext.php
deleted file mode 100644
index 86ded94..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsContext.php
+++ /dev/null
@@ -1,80 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workflows/' . rawurlencode($workflowSid) . '/Statistics';
- }
-
- /**
- * Fetch a WorkflowStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowStatisticsInstance Fetched WorkflowStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkflowStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsInstance.php
deleted file mode 100644
index ca4d807..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsInstance.php
+++ /dev/null
@@ -1,114 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'cumulative' => Values::array_get($payload, 'cumulative'),
- 'realtime' => Values::array_get($payload, 'realtime'),
- 'workflowSid' => Values::array_get($payload, 'workflow_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowStatisticsContext Context for this
- * WorkflowStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkflowStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkflowStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowStatisticsInstance Fetched WorkflowStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsList.php
deleted file mode 100644
index 0d2f3a0..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'workflowSid' => $workflowSid, );
- }
-
- /**
- * Constructs a WorkflowStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowStatisticsContext
- */
- public function getContext() {
- return new WorkflowStatisticsContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.php
deleted file mode 100644
index 07cbb47..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkflowStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsPage.php
deleted file mode 100644
index ef4ccf7..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkflowStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['workflowSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
deleted file mode 100644
index d9cc0ab..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
+++ /dev/null
@@ -1,213 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workflows/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a WorkflowInstance
- *
- * @return WorkflowInstance Fetched WorkflowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkflowInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the WorkflowInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowInstance Updated WorkflowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'AssignmentCallbackUrl' => $options['assignmentCallbackUrl'],
- 'FallbackAssignmentCallbackUrl' => $options['fallbackAssignmentCallbackUrl'],
- 'Configuration' => $options['configuration'],
- 'TaskReservationTimeout' => $options['taskReservationTimeout'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkflowInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the WorkflowInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowStatisticsList
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new WorkflowStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_statistics;
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- if (!$this->_realTimeStatistics) {
- $this->_realTimeStatistics = new WorkflowRealTimeStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- if (!$this->_cumulativeStatistics) {
- $this->_cumulativeStatistics = new WorkflowCumulativeStatisticsList(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_cumulativeStatistics;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowInstance.php
deleted file mode 100644
index 0d32e1b..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowInstance.php
+++ /dev/null
@@ -1,182 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'assignmentCallbackUrl' => Values::array_get($payload, 'assignment_callback_url'),
- 'configuration' => Values::array_get($payload, 'configuration'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'documentContentType' => Values::array_get($payload, 'document_content_type'),
- 'fallbackAssignmentCallbackUrl' => Values::array_get($payload, 'fallback_assignment_callback_url'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'taskReservationTimeout' => Values::array_get($payload, 'task_reservation_timeout'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkflowContext Context for
- * this
- * WorkflowInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkflowContext(
- $this->version,
- $this->solution['workspaceSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkflowInstance
- *
- * @return WorkflowInstance Fetched WorkflowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the WorkflowInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkflowInstance Updated WorkflowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the WorkflowInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowStatisticsList
- */
- protected function getStatistics() {
- return $this->proxy()->statistics;
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- return $this->proxy()->realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- return $this->proxy()->cumulativeStatistics;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkflowInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowList.php
deleted file mode 100644
index 67c6fef..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowList.php
+++ /dev/null
@@ -1,176 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Workflows';
- }
-
- /**
- * Streams WorkflowInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads WorkflowInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return WorkflowInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of WorkflowInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of WorkflowInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkflowPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of WorkflowInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of WorkflowInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new WorkflowPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new WorkflowInstance
- *
- * @param string $friendlyName A string representing a human readable name for
- * this Workflow.
- * @param string $configuration JSON document configuring the rules for this
- * Workflow.
- * @param array|Options $options Optional Arguments
- * @return WorkflowInstance Newly created WorkflowInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $configuration, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Configuration' => $configuration,
- 'AssignmentCallbackUrl' => $options['assignmentCallbackUrl'],
- 'FallbackAssignmentCallbackUrl' => $options['fallbackAssignmentCallbackUrl'],
- 'TaskReservationTimeout' => $options['taskReservationTimeout'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkflowInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Constructs a WorkflowContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkflowContext
- */
- public function getContext($sid) {
- return new WorkflowContext($this->version, $this->solution['workspaceSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.php
deleted file mode 100644
index 5800344..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.php
+++ /dev/null
@@ -1,282 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['assignmentCallbackUrl'] = $assignmentCallbackUrl;
- $this->options['fallbackAssignmentCallbackUrl'] = $fallbackAssignmentCallbackUrl;
- $this->options['configuration'] = $configuration;
- $this->options['taskReservationTimeout'] = $taskReservationTimeout;
- }
-
- /**
- * A string representing a human readable name for this Workflow. Examples include 'Customer Support' or 'Sales Team'.
- *
- * @param string $friendlyName A string representing a human readable name for
- * this Workflow.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * A valid URL for the application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details.
- *
- * @param string $assignmentCallbackUrl A valid URL for the application that
- * will process task assignment events.
- * @return $this Fluent Builder
- */
- public function setAssignmentCallbackUrl($assignmentCallbackUrl) {
- $this->options['assignmentCallbackUrl'] = $assignmentCallbackUrl;
- return $this;
- }
-
- /**
- * If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
- *
- * @param string $fallbackAssignmentCallbackUrl If the request to the
- * AssignmentCallbackUrl fails,
- * the assignment callback will be
- * made to this URL.
- * @return $this Fluent Builder
- */
- public function setFallbackAssignmentCallbackUrl($fallbackAssignmentCallbackUrl) {
- $this->options['fallbackAssignmentCallbackUrl'] = $fallbackAssignmentCallbackUrl;
- return $this;
- }
-
- /**
- * JSON document configuring the rules for this Workflow. See [Configuring Workflows](https://www.twilio.com/docs/api/taskrouter/workflow-configuration) for more information.
- *
- * @param string $configuration JSON document configuring the rules for this
- * Workflow.
- * @return $this Fluent Builder
- */
- public function setConfiguration($configuration) {
- $this->options['configuration'] = $configuration;
- return $this;
- }
-
- /**
- * An integer value controlling how long in seconds TaskRouter will wait for a confirmation response from your application after assigning a Task to a worker. Defaults to 120 seconds. Maximum value is 86400 (24 hours)
- *
- * @param integer $taskReservationTimeout An integer value controlling how long
- * in seconds TaskRouter will wait for a
- * confirmation response from your
- * application after assigning a Task to
- * a worker.
- * @return $this Fluent Builder
- */
- public function setTaskReservationTimeout($taskReservationTimeout) {
- $this->options['taskReservationTimeout'] = $taskReservationTimeout;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateWorkflowOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadWorkflowOptions extends Options {
- /**
- * @param string $friendlyName Human readable description of this Workflow
- */
- public function __construct($friendlyName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * Human readable description of this Workflow (for example "Customer Support" or "2014 Election Campaign")
- *
- * @param string $friendlyName Human readable description of this Workflow
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadWorkflowOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateWorkflowOptions extends Options {
- /**
- * @param string $assignmentCallbackUrl A valid URL for the application that
- * will process task assignment events.
- * @param string $fallbackAssignmentCallbackUrl If the request to the
- * AssignmentCallbackUrl fails,
- * the assignment callback will be
- * made to this URL.
- * @param integer $taskReservationTimeout An integer value controlling how long
- * in seconds TaskRouter will wait for a
- * confirmation response from your
- * application after assigning a Task to
- * a worker.
- */
- public function __construct($assignmentCallbackUrl = Values::NONE, $fallbackAssignmentCallbackUrl = Values::NONE, $taskReservationTimeout = Values::NONE) {
- $this->options['assignmentCallbackUrl'] = $assignmentCallbackUrl;
- $this->options['fallbackAssignmentCallbackUrl'] = $fallbackAssignmentCallbackUrl;
- $this->options['taskReservationTimeout'] = $taskReservationTimeout;
- }
-
- /**
- * A valid URL for the application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details.
- *
- * @param string $assignmentCallbackUrl A valid URL for the application that
- * will process task assignment events.
- * @return $this Fluent Builder
- */
- public function setAssignmentCallbackUrl($assignmentCallbackUrl) {
- $this->options['assignmentCallbackUrl'] = $assignmentCallbackUrl;
- return $this;
- }
-
- /**
- * If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
- *
- * @param string $fallbackAssignmentCallbackUrl If the request to the
- * AssignmentCallbackUrl fails,
- * the assignment callback will be
- * made to this URL.
- * @return $this Fluent Builder
- */
- public function setFallbackAssignmentCallbackUrl($fallbackAssignmentCallbackUrl) {
- $this->options['fallbackAssignmentCallbackUrl'] = $fallbackAssignmentCallbackUrl;
- return $this;
- }
-
- /**
- * An integer value controlling how long in seconds TaskRouter will wait for a confirmation response from your application after assigning a Task to a worker. See Task Assignment Callback for more information. Defaults to 120 seconds. Maximum value is 86400 (24 hours)
- *
- * @param integer $taskReservationTimeout An integer value controlling how long
- * in seconds TaskRouter will wait for a
- * confirmation response from your
- * application after assigning a Task to
- * a worker.
- * @return $this Fluent Builder
- */
- public function setTaskReservationTimeout($taskReservationTimeout) {
- $this->options['taskReservationTimeout'] = $taskReservationTimeout;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.CreateWorkflowOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowPage.php
deleted file mode 100644
index a42fded..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkflowInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkflowPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsContext.php
deleted file mode 100644
index 0a0ee58..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/CumulativeStatistics';
- }
-
- /**
- * Fetch a WorkspaceCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceCumulativeStatisticsInstance Fetched
- * WorkspaceCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkspaceCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceCumulativeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsInstance.php
deleted file mode 100644
index a9518e0..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsInstance.php
+++ /dev/null
@@ -1,144 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'avgTaskAcceptanceTime' => Values::array_get($payload, 'avg_task_acceptance_time'),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'reservationsCreated' => Values::array_get($payload, 'reservations_created'),
- 'reservationsAccepted' => Values::array_get($payload, 'reservations_accepted'),
- 'reservationsRejected' => Values::array_get($payload, 'reservations_rejected'),
- 'reservationsTimedOut' => Values::array_get($payload, 'reservations_timed_out'),
- 'reservationsCanceled' => Values::array_get($payload, 'reservations_canceled'),
- 'reservationsRescinded' => Values::array_get($payload, 'reservations_rescinded'),
- 'splitByWaitTime' => Values::array_get($payload, 'split_by_wait_time'),
- 'waitDurationUntilAccepted' => Values::array_get($payload, 'wait_duration_until_accepted'),
- 'waitDurationUntilCanceled' => Values::array_get($payload, 'wait_duration_until_canceled'),
- 'tasksCanceled' => Values::array_get($payload, 'tasks_canceled'),
- 'tasksCompleted' => Values::array_get($payload, 'tasks_completed'),
- 'tasksCreated' => Values::array_get($payload, 'tasks_created'),
- 'tasksDeleted' => Values::array_get($payload, 'tasks_deleted'),
- 'tasksMoved' => Values::array_get($payload, 'tasks_moved'),
- 'tasksTimedOutInWorkflow' => Values::array_get($payload, 'tasks_timed_out_in_workflow'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceCumulativeStatisticsContext Context for this
- * WorkspaceCumulativeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkspaceCumulativeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkspaceCumulativeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceCumulativeStatisticsInstance Fetched
- * WorkspaceCumulativeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceCumulativeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsList.php
deleted file mode 100644
index 955c666..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Constructs a WorkspaceCumulativeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceCumulativeStatisticsContext
- */
- public function getContext() {
- return new WorkspaceCumulativeStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceCumulativeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.php
deleted file mode 100644
index 85a40e0..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['endDate'] = $endDate;
- $this->options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkspaceCumulativeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsPage.php
deleted file mode 100644
index 08398f1..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsPage.php
+++ /dev/null
@@ -1,38 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkspaceCumulativeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceCumulativeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsContext.php
deleted file mode 100644
index 9148e74..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsContext.php
+++ /dev/null
@@ -1,72 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/RealTimeStatistics';
- }
-
- /**
- * Fetch a WorkspaceRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceRealTimeStatisticsInstance Fetched
- * WorkspaceRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array('TaskChannel' => $options['taskChannel'], ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkspaceRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceRealTimeStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsInstance.php
deleted file mode 100644
index 42fb5c8..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsInstance.php
+++ /dev/null
@@ -1,119 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'activityStatistics' => Values::array_get($payload, 'activity_statistics'),
- 'longestTaskWaitingAge' => Values::array_get($payload, 'longest_task_waiting_age'),
- 'tasksByPriority' => Values::array_get($payload, 'tasks_by_priority'),
- 'tasksByStatus' => Values::array_get($payload, 'tasks_by_status'),
- 'totalTasks' => Values::array_get($payload, 'total_tasks'),
- 'totalWorkers' => Values::array_get($payload, 'total_workers'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceRealTimeStatisticsContext Context for this
- * WorkspaceRealTimeStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkspaceRealTimeStatisticsContext(
- $this->version,
- $this->solution['workspaceSid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkspaceRealTimeStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceRealTimeStatisticsInstance Fetched
- * WorkspaceRealTimeStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceRealTimeStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsList.php
deleted file mode 100644
index d55f5d5..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Constructs a WorkspaceRealTimeStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceRealTimeStatisticsContext
- */
- public function getContext() {
- return new WorkspaceRealTimeStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceRealTimeStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.php
deleted file mode 100644
index db82c35..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['taskChannel'] = $taskChannel;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkspaceRealTimeStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsPage.php
deleted file mode 100644
index b823d20..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsPage.php
+++ /dev/null
@@ -1,38 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkspaceRealTimeStatisticsInstance(
- $this->version,
- $payload,
- $this->solution['workspaceSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceRealTimeStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsContext.php
deleted file mode 100644
index 7cfc9ca..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsContext.php
+++ /dev/null
@@ -1,74 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($workspaceSid) . '/Statistics';
- }
-
- /**
- * Fetch a WorkspaceStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceStatisticsInstance Fetched WorkspaceStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- $options = new Values($options);
-
- $params = Values::of(array(
- 'Minutes' => $options['minutes'],
- 'StartDate' => Serialize::iso8601DateTime($options['startDate']),
- 'EndDate' => Serialize::iso8601DateTime($options['endDate']),
- 'TaskChannel' => $options['taskChannel'],
- 'SplitByWaitTime' => $options['splitByWaitTime'],
- ));
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkspaceStatisticsInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceStatisticsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsInstance.php
deleted file mode 100644
index 52920c0..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsInstance.php
+++ /dev/null
@@ -1,106 +0,0 @@
-properties = array(
- 'realtime' => Values::array_get($payload, 'realtime'),
- 'cumulative' => Values::array_get($payload, 'cumulative'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'workspaceSid' => Values::array_get($payload, 'workspace_sid'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceStatisticsContext Context for this WorkspaceStatisticsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkspaceStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkspaceStatisticsInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceStatisticsInstance Fetched WorkspaceStatisticsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch($options = array()) {
- return $this->proxy()->fetch($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceStatisticsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsList.php
deleted file mode 100644
index cda7899..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsList.php
+++ /dev/null
@@ -1,47 +0,0 @@
-solution = array('workspaceSid' => $workspaceSid, );
- }
-
- /**
- * Constructs a WorkspaceStatisticsContext
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceStatisticsContext
- */
- public function getContext() {
- return new WorkspaceStatisticsContext($this->version, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceStatisticsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.php
deleted file mode 100644
index 0bbbf92..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['minutes'] = $minutes;
- $this->options['startDate'] = $startDate;
- $this->options['endDate'] = $endDate;
- $this->options['taskChannel'] = $taskChannel;
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- }
-
- /**
- * Filter cumulative statistics by up to 'x' minutes in the past. This is helpful for statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. Defaults to 15 minutes.
- *
- * @param integer $minutes Filter cumulative statistics by up to 'x' minutes in
- * the past.
- * @return $this Fluent Builder
- */
- public function setMinutes($minutes) {
- $this->options['minutes'] = $minutes;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by a start date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $startDate Filter cumulative statistics by a start date.
- * @return $this Fluent Builder
- */
- public function setStartDate($startDate) {
- $this->options['startDate'] = $startDate;
- return $this;
- }
-
- /**
- * Filter cumulative statistics by an end date. This is helpful for defining a range of statistics to capture. Input is a GMT ISO 8601 Timestamp
- *
- * @param \DateTime $endDate Filter cumulative statistics by an end date.
- * @return $this Fluent Builder
- */
- public function setEndDate($endDate) {
- $this->options['endDate'] = $endDate;
- return $this;
- }
-
- /**
- * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
- *
- * @param string $taskChannel Filter real-time and cumulative statistics by
- * TaskChannel.
- * @return $this Fluent Builder
- */
- public function setTaskChannel($taskChannel) {
- $this->options['taskChannel'] = $taskChannel;
- return $this;
- }
-
- /**
- * A comma separated values for viewing splits of tasks canceled and accepted above the given threshold in seconds. Ex: "5,30" would show splits of tasks that were canceled or accepted before or after 5 seconds and respectively, 30 seconds. This is great for showing short abandoned tasks or tasks that failed to meet your SLA.
- *
- * @param string $splitByWaitTime A comma separated values for viewing splits
- * of tasks canceled and accepted above the
- * given threshold in seconds.
- * @return $this Fluent Builder
- */
- public function setSplitByWaitTime($splitByWaitTime) {
- $this->options['splitByWaitTime'] = $splitByWaitTime;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.FetchWorkspaceStatisticsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsPage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsPage.php
deleted file mode 100644
index dbdf462..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkspaceStatisticsInstance($this->version, $payload, $this->solution['workspaceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceStatisticsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
deleted file mode 100644
index 0239a97..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
+++ /dev/null
@@ -1,318 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Workspaces/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a WorkspaceInstance
- *
- * @return WorkspaceInstance Fetched WorkspaceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkspaceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the WorkspaceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceInstance Updated WorkspaceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'DefaultActivitySid' => $options['defaultActivitySid'],
- 'EventCallbackUrl' => $options['eventCallbackUrl'],
- 'EventsFilter' => $options['eventsFilter'],
- 'FriendlyName' => $options['friendlyName'],
- 'MultiTaskEnabled' => Serialize::booleanToString($options['multiTaskEnabled']),
- 'TimeoutActivitySid' => $options['timeoutActivitySid'],
- 'PrioritizeQueueOrder' => $options['prioritizeQueueOrder'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkspaceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the WorkspaceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Access the activities
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\ActivityList
- */
- protected function getActivities() {
- if (!$this->_activities) {
- $this->_activities = new ActivityList($this->version, $this->solution['sid']);
- }
-
- return $this->_activities;
- }
-
- /**
- * Access the events
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\EventList
- */
- protected function getEvents() {
- if (!$this->_events) {
- $this->_events = new EventList($this->version, $this->solution['sid']);
- }
-
- return $this->_events;
- }
-
- /**
- * Access the tasks
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskList
- */
- protected function getTasks() {
- if (!$this->_tasks) {
- $this->_tasks = new TaskList($this->version, $this->solution['sid']);
- }
-
- return $this->_tasks;
- }
-
- /**
- * Access the taskQueues
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueueList
- */
- protected function getTaskQueues() {
- if (!$this->_taskQueues) {
- $this->_taskQueues = new TaskQueueList($this->version, $this->solution['sid']);
- }
-
- return $this->_taskQueues;
- }
-
- /**
- * Access the workers
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkerList
- */
- protected function getWorkers() {
- if (!$this->_workers) {
- $this->_workers = new WorkerList($this->version, $this->solution['sid']);
- }
-
- return $this->_workers;
- }
-
- /**
- * Access the workflows
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkflowList
- */
- protected function getWorkflows() {
- if (!$this->_workflows) {
- $this->_workflows = new WorkflowList($this->version, $this->solution['sid']);
- }
-
- return $this->_workflows;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceStatisticsList
- */
- protected function getStatistics() {
- if (!$this->_statistics) {
- $this->_statistics = new WorkspaceStatisticsList($this->version, $this->solution['sid']);
- }
-
- return $this->_statistics;
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- if (!$this->_realTimeStatistics) {
- $this->_realTimeStatistics = new WorkspaceRealTimeStatisticsList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- if (!$this->_cumulativeStatistics) {
- $this->_cumulativeStatistics = new WorkspaceCumulativeStatisticsList(
- $this->version,
- $this->solution['sid']
- );
- }
-
- return $this->_cumulativeStatistics;
- }
-
- /**
- * Access the taskChannels
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskChannelList
- */
- protected function getTaskChannels() {
- if (!$this->_taskChannels) {
- $this->_taskChannels = new TaskChannelList($this->version, $this->solution['sid']);
- }
-
- return $this->_taskChannels;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceInstance.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceInstance.php
deleted file mode 100644
index 09397ae..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceInstance.php
+++ /dev/null
@@ -1,249 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'defaultActivityName' => Values::array_get($payload, 'default_activity_name'),
- 'defaultActivitySid' => Values::array_get($payload, 'default_activity_sid'),
- 'eventCallbackUrl' => Values::array_get($payload, 'event_callback_url'),
- 'eventsFilter' => Values::array_get($payload, 'events_filter'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'multiTaskEnabled' => Values::array_get($payload, 'multi_task_enabled'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'timeoutActivityName' => Values::array_get($payload, 'timeout_activity_name'),
- 'timeoutActivitySid' => Values::array_get($payload, 'timeout_activity_sid'),
- 'prioritizeQueueOrder' => Values::array_get($payload, 'prioritize_queue_order'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Taskrouter\V1\WorkspaceContext Context for this
- * WorkspaceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new WorkspaceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a WorkspaceInstance
- *
- * @return WorkspaceInstance Fetched WorkspaceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the WorkspaceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return WorkspaceInstance Updated WorkspaceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the WorkspaceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Access the activities
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\ActivityList
- */
- protected function getActivities() {
- return $this->proxy()->activities;
- }
-
- /**
- * Access the events
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\EventList
- */
- protected function getEvents() {
- return $this->proxy()->events;
- }
-
- /**
- * Access the tasks
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskList
- */
- protected function getTasks() {
- return $this->proxy()->tasks;
- }
-
- /**
- * Access the taskQueues
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueueList
- */
- protected function getTaskQueues() {
- return $this->proxy()->taskQueues;
- }
-
- /**
- * Access the workers
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkerList
- */
- protected function getWorkers() {
- return $this->proxy()->workers;
- }
-
- /**
- * Access the workflows
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkflowList
- */
- protected function getWorkflows() {
- return $this->proxy()->workflows;
- }
-
- /**
- * Access the statistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceStatisticsList
- */
- protected function getStatistics() {
- return $this->proxy()->statistics;
- }
-
- /**
- * Access the realTimeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceRealTimeStatisticsList
- */
- protected function getRealTimeStatistics() {
- return $this->proxy()->realTimeStatistics;
- }
-
- /**
- * Access the cumulativeStatistics
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceCumulativeStatisticsList
- */
- protected function getCumulativeStatistics() {
- return $this->proxy()->cumulativeStatistics;
- }
-
- /**
- * Access the taskChannels
- *
- * @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskChannelList
- */
- protected function getTaskChannels() {
- return $this->proxy()->taskChannels;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Taskrouter.V1.WorkspaceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceList.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceList.php
deleted file mode 100644
index 3030488..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array();
-
- $this->uri = '/Workspaces';
- }
-
- /**
- * Streams WorkspaceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads WorkspaceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return WorkspaceInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of WorkspaceInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of WorkspaceInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new WorkspacePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of WorkspaceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of WorkspaceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new WorkspacePage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new WorkspaceInstance
- *
- * @param string $friendlyName Human readable description of this workspace
- * @param array|Options $options Optional Arguments
- * @return WorkspaceInstance Newly created WorkspaceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'EventCallbackUrl' => $options['eventCallbackUrl'],
- 'EventsFilter' => $options['eventsFilter'],
- 'MultiTaskEnabled' => Serialize::booleanToString($options['multiTaskEnabled']),
- 'Template' => $options['template'],
- 'PrioritizeQueueOrder' => $options['prioritizeQueueOrder'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new WorkspaceInstance($this->version, $payload);
- }
-
- /**
- * Constructs a WorkspaceContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Taskrouter\V1\WorkspaceContext
- */
- public function getContext($sid) {
- return new WorkspaceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspaceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.php
deleted file mode 100644
index cb75f09..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.php
+++ /dev/null
@@ -1,338 +0,0 @@
-options['defaultActivitySid'] = $defaultActivitySid;
- $this->options['eventCallbackUrl'] = $eventCallbackUrl;
- $this->options['eventsFilter'] = $eventsFilter;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['multiTaskEnabled'] = $multiTaskEnabled;
- $this->options['timeoutActivitySid'] = $timeoutActivitySid;
- $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
- }
-
- /**
- * The ID of the Activity that will be used when new Workers are created in this Workspace.
- *
- * @param string $defaultActivitySid The ID of the Activity that will be used
- * when new Workers are created in this
- * Workspace.
- * @return $this Fluent Builder
- */
- public function setDefaultActivitySid($defaultActivitySid) {
- $this->options['defaultActivitySid'] = $defaultActivitySid;
- return $this;
- }
-
- /**
- * The Workspace will publish events to this URL. You can use this to gather data for reporting. See [Events][/docs/taskrouter/api/events] for more information.
- *
- * @param string $eventCallbackUrl The Workspace will publish events to this
- * URL.
- * @return $this Fluent Builder
- */
- public function setEventCallbackUrl($eventCallbackUrl) {
- $this->options['eventCallbackUrl'] = $eventCallbackUrl;
- return $this;
- }
-
- /**
- * Use this parameter to receive webhooks on EventCallbackUrl for specific events on a workspace. For example if 'EventsFilter=task.created,task.canceled,worker.activity.update', then TaskRouter will webhook to EventCallbackUrl only when a task is created, canceled or a worker activity is updated.
- *
- * @param string $eventsFilter Use this parameter to receive webhooks on
- * EventCallbackUrl for specific events on a
- * workspace.
- * @return $this Fluent Builder
- */
- public function setEventsFilter($eventsFilter) {
- $this->options['eventsFilter'] = $eventsFilter;
- return $this;
- }
-
- /**
- * Human readable description of this workspace (for example "Sales Call Center" or "Customer Support Team")
- *
- * @param string $friendlyName Human readable description of this workspace
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Enable or Disable Multitasking by passing either *true* or *False* with the POST request. Learn more by visiting [Multitasking][/docs/taskrouter/multitasking].
- *
- * @param boolean $multiTaskEnabled Enable or Disable Multitasking by passing
- * either true or False with the POST request.
- * @return $this Fluent Builder
- */
- public function setMultiTaskEnabled($multiTaskEnabled) {
- $this->options['multiTaskEnabled'] = $multiTaskEnabled;
- return $this;
- }
-
- /**
- * The ID of the Activity that will be assigned to a Worker when a Task reservation times out without a response.
- *
- * @param string $timeoutActivitySid The ID of the Activity that will be
- * assigned to a Worker when a Task
- * reservation times out without a response.
- * @return $this Fluent Builder
- */
- public function setTimeoutActivitySid($timeoutActivitySid) {
- $this->options['timeoutActivitySid'] = $timeoutActivitySid;
- return $this;
- }
-
- /**
- * Use this parameter to configure whether to prioritize LIFO or FIFO when workers are receiving Tasks from combination of LIFO and FIFO TaskQueues. Default is FIFO. [Click here][/docs/taskrouter/queue-ordering-last-first-out-lifo] to learn more about LIFO and the use of the parameter.
- *
- * @param string $prioritizeQueueOrder Use this parameter to configure whether
- * to prioritize LIFO or FIFO when workers
- * are receiving Tasks from combination of
- * LIFO and FIFO TaskQueues.
- * @return $this Fluent Builder
- */
- public function setPrioritizeQueueOrder($prioritizeQueueOrder) {
- $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.UpdateWorkspaceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadWorkspaceOptions extends Options {
- /**
- * @param string $friendlyName Filter by a workspace's friendly name.
- */
- public function __construct($friendlyName = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * Filter by a workspace's friendly name. This is a human readable description of this Workspace (for example "Customer Support" or "2014 Election Campaign")
- *
- * @param string $friendlyName Filter by a workspace's friendly name.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.ReadWorkspaceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateWorkspaceOptions extends Options {
- /**
- * @param string $eventCallbackUrl If provided, the Workspace will publish
- * events to this URL.
- * @param string $eventsFilter Use this parameter to receive webhooks on
- * EventCallbackUrl for specific events on a
- * workspace.
- * @param boolean $multiTaskEnabled Multi tasking allows workers to handle
- * multiple tasks simultaneously.
- * @param string $template One of the available template names.
- * @param string $prioritizeQueueOrder Use this parameter to configure whether
- * to prioritize LIFO or FIFO when workers
- * are receiving Tasks from combination of
- * LIFO and FIFO TaskQueues.
- */
- public function __construct($eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $multiTaskEnabled = Values::NONE, $template = Values::NONE, $prioritizeQueueOrder = Values::NONE) {
- $this->options['eventCallbackUrl'] = $eventCallbackUrl;
- $this->options['eventsFilter'] = $eventsFilter;
- $this->options['multiTaskEnabled'] = $multiTaskEnabled;
- $this->options['template'] = $template;
- $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
- }
-
- /**
- * If provided, the Workspace will publish events to this URL. You can use this to gather data for reporting. See Workspace Events for more information.
- *
- * @param string $eventCallbackUrl If provided, the Workspace will publish
- * events to this URL.
- * @return $this Fluent Builder
- */
- public function setEventCallbackUrl($eventCallbackUrl) {
- $this->options['eventCallbackUrl'] = $eventCallbackUrl;
- return $this;
- }
-
- /**
- * Use this parameter to receive webhooks on EventCallbackUrl for specific events on a workspace. For example if 'EventsFilter=task.created,task.canceled,worker.activity.update', then TaskRouter will webhook to EventCallbackUrl only when a task is created, canceled or a worker activity is updated.
- *
- * @param string $eventsFilter Use this parameter to receive webhooks on
- * EventCallbackUrl for specific events on a
- * workspace.
- * @return $this Fluent Builder
- */
- public function setEventsFilter($eventsFilter) {
- $this->options['eventsFilter'] = $eventsFilter;
- return $this;
- }
-
- /**
- * Multi tasking allows workers to handle multiple tasks simultaneously. When enabled (MultiTaskEnabled=true), each worker will be eligible to receive parallel reservations up to the per-channel maximums defined in the Workers section. Default is disabled (MultiTaskEnabled=false), where each worker will only receive a new reservation when the previous task is completed. Learn more by visiting [Multitasking][/docs/taskrouter/multitasking].
- *
- * @param boolean $multiTaskEnabled Multi tasking allows workers to handle
- * multiple tasks simultaneously.
- * @return $this Fluent Builder
- */
- public function setMultiTaskEnabled($multiTaskEnabled) {
- $this->options['multiTaskEnabled'] = $multiTaskEnabled;
- return $this;
- }
-
- /**
- * One of the available template names. Will pre-configure this Workspace with the Workflow and Activities specified in the template. "NONE" will create a Workspace with a set of default activities and nothing else. "FIFO" will configure TaskRouter with a set of default activities and a single task queue for first-in, first-out distribution, useful if you want to see a simple TaskRouter configuration when getting started. Defaults to "NONE".
- *
- * @param string $template One of the available template names.
- * @return $this Fluent Builder
- */
- public function setTemplate($template) {
- $this->options['template'] = $template;
- return $this;
- }
-
- /**
- * Use this parameter to configure whether to prioritize LIFO or FIFO when workers are receiving Tasks from combination of LIFO and FIFO TaskQueues. Default is FIFO. [Click here][/docs/taskrouter/queue-ordering-last-first-out-lifo] to learn more about LIFO and the use of the parameter.
- *
- * @param string $prioritizeQueueOrder Use this parameter to configure whether
- * to prioritize LIFO or FIFO when workers
- * are receiving Tasks from combination of
- * LIFO and FIFO TaskQueues.
- * @return $this Fluent Builder
- */
- public function setPrioritizeQueueOrder($prioritizeQueueOrder) {
- $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Taskrouter.V1.CreateWorkspaceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspacePage.php b/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspacePage.php
deleted file mode 100644
index 78900f4..0000000
--- a/public/twilio-php/Twilio/Rest/Taskrouter/V1/WorkspacePage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new WorkspaceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Taskrouter.V1.WorkspacePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking.php b/public/twilio-php/Twilio/Rest/Trunking.php
deleted file mode 100644
index cc52192..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://trunking.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Trunking\V1 Version v1 of trunking
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Trunking\V1\TrunkList
- */
- protected function getTrunks() {
- return $this->v1->trunks;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Trunking\V1\TrunkContext
- */
- protected function contextTrunks($sid) {
- return $this->v1->trunks($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1.php b/public/twilio-php/Twilio/Rest/Trunking/V1.php
deleted file mode 100644
index ffc45ae..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Trunking\V1\TrunkList
- */
- protected function getTrunks() {
- if (!$this->_trunks) {
- $this->_trunks = new TrunkList($this);
- }
- return $this->_trunks;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListContext.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListContext.php
deleted file mode 100644
index 832bc66..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('trunkSid' => $trunkSid, 'sid' => $sid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/CredentialLists/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CredentialListInstance
- *
- * @return CredentialListInstance Fetched CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialListInstance(
- $this->version,
- $payload,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the CredentialListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.CredentialListContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListInstance.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListInstance.php
deleted file mode 100644
index cd2f1ec..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListInstance.php
+++ /dev/null
@@ -1,126 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('trunkSid' => $trunkSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\CredentialListContext Context for
- * this
- * CredentialListInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CredentialListContext(
- $this->version,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CredentialListInstance
- *
- * @return CredentialListInstance Fetched CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the CredentialListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.CredentialListInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListList.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListList.php
deleted file mode 100644
index e6d4117..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListList.php
+++ /dev/null
@@ -1,161 +0,0 @@
-solution = array('trunkSid' => $trunkSid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/CredentialLists';
- }
-
- /**
- * Create a new CredentialListInstance
- *
- * @param string $credentialListSid The SID of the Credential List that you
- * want to associate with this trunk. Once
- * associated, Twilio will start
- * authenticating access to the trunk against
- * this list.
- * @return CredentialListInstance Newly created CredentialListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($credentialListSid) {
- $data = Values::of(array('CredentialListSid' => $credentialListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CredentialListInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Streams CredentialListInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CredentialListInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CredentialListInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CredentialListInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CredentialListInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CredentialListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CredentialListInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CredentialListInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CredentialListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CredentialListContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Trunking\V1\Trunk\CredentialListContext
- */
- public function getContext($sid) {
- return new CredentialListContext($this->version, $this->solution['trunkSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.CredentialListList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListPage.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListPage.php
deleted file mode 100644
index d770da1..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/CredentialListPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CredentialListInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.CredentialListPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListContext.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListContext.php
deleted file mode 100644
index 84b7dfb..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('trunkSid' => $trunkSid, 'sid' => $sid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/IpAccessControlLists/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a IpAccessControlListInstance
- *
- * @return IpAccessControlListInstance Fetched IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAccessControlListInstance(
- $this->version,
- $payload,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the IpAccessControlListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.IpAccessControlListContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListInstance.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListInstance.php
deleted file mode 100644
index 6aa45e7..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListInstance.php
+++ /dev/null
@@ -1,126 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('trunkSid' => $trunkSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\IpAccessControlListContext Context
- * for this
- * IpAccessControlListInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new IpAccessControlListContext(
- $this->version,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a IpAccessControlListInstance
- *
- * @return IpAccessControlListInstance Fetched IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the IpAccessControlListInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.IpAccessControlListInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListList.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListList.php
deleted file mode 100644
index 8d9fc3e..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListList.php
+++ /dev/null
@@ -1,160 +0,0 @@
-solution = array('trunkSid' => $trunkSid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/IpAccessControlLists';
- }
-
- /**
- * Create a new IpAccessControlListInstance
- *
- * @param string $ipAccessControlListSid The SID of the IP Access Control List
- * that you want to associate with this
- * trunk.
- * @return IpAccessControlListInstance Newly created IpAccessControlListInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($ipAccessControlListSid) {
- $data = Values::of(array('IpAccessControlListSid' => $ipAccessControlListSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new IpAccessControlListInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Streams IpAccessControlListInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads IpAccessControlListInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return IpAccessControlListInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of IpAccessControlListInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of IpAccessControlListInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new IpAccessControlListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of IpAccessControlListInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of IpAccessControlListInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new IpAccessControlListPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a IpAccessControlListContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Trunking\V1\Trunk\IpAccessControlListContext
- */
- public function getContext($sid) {
- return new IpAccessControlListContext($this->version, $this->solution['trunkSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.IpAccessControlListList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListPage.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListPage.php
deleted file mode 100644
index ee2979b..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new IpAccessControlListInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.IpAccessControlListPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlContext.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlContext.php
deleted file mode 100644
index b53db16..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlContext.php
+++ /dev/null
@@ -1,114 +0,0 @@
-solution = array('trunkSid' => $trunkSid, 'sid' => $sid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/OriginationUrls/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a OriginationUrlInstance
- *
- * @return OriginationUrlInstance Fetched OriginationUrlInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new OriginationUrlInstance(
- $this->version,
- $payload,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the OriginationUrlInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the OriginationUrlInstance
- *
- * @param array|Options $options Optional Arguments
- * @return OriginationUrlInstance Updated OriginationUrlInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Weight' => $options['weight'],
- 'Priority' => $options['priority'],
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- 'FriendlyName' => $options['friendlyName'],
- 'SipUrl' => $options['sipUrl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new OriginationUrlInstance(
- $this->version,
- $payload,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.OriginationUrlContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlInstance.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlInstance.php
deleted file mode 100644
index c222c75..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlInstance.php
+++ /dev/null
@@ -1,147 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'weight' => Values::array_get($payload, 'weight'),
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'sipUrl' => Values::array_get($payload, 'sip_url'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'priority' => Values::array_get($payload, 'priority'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('trunkSid' => $trunkSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\OriginationUrlContext Context for
- * this
- * OriginationUrlInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new OriginationUrlContext(
- $this->version,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a OriginationUrlInstance
- *
- * @return OriginationUrlInstance Fetched OriginationUrlInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the OriginationUrlInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the OriginationUrlInstance
- *
- * @param array|Options $options Optional Arguments
- * @return OriginationUrlInstance Updated OriginationUrlInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.OriginationUrlInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlList.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlList.php
deleted file mode 100644
index 7db6a59..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlList.php
+++ /dev/null
@@ -1,173 +0,0 @@
-solution = array('trunkSid' => $trunkSid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/OriginationUrls';
- }
-
- /**
- * Create a new OriginationUrlInstance
- *
- * @param integer $weight Weight is used to determine the share of load when
- * more than one URI has the same priority.
- * @param integer $priority Priority ranks the importance of the URI.
- * @param boolean $enabled A boolean value indicating whether the URL is
- * enabled or disabled.
- * @param string $friendlyName A human readable descriptive text, up to 64
- * characters long.
- * @param string $sipUrl The SIP address you want Twilio to route your
- * Origination calls to.
- * @return OriginationUrlInstance Newly created OriginationUrlInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($weight, $priority, $enabled, $friendlyName, $sipUrl) {
- $data = Values::of(array(
- 'Weight' => $weight,
- 'Priority' => $priority,
- 'Enabled' => Serialize::booleanToString($enabled),
- 'FriendlyName' => $friendlyName,
- 'SipUrl' => $sipUrl,
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new OriginationUrlInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Streams OriginationUrlInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads OriginationUrlInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return OriginationUrlInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of OriginationUrlInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of OriginationUrlInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new OriginationUrlPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of OriginationUrlInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of OriginationUrlInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new OriginationUrlPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a OriginationUrlContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Trunking\V1\Trunk\OriginationUrlContext
- */
- public function getContext($sid) {
- return new OriginationUrlContext($this->version, $this->solution['trunkSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.OriginationUrlList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.php
deleted file mode 100644
index 08ea011..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.php
+++ /dev/null
@@ -1,126 +0,0 @@
-options['weight'] = $weight;
- $this->options['priority'] = $priority;
- $this->options['enabled'] = $enabled;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['sipUrl'] = $sipUrl;
- }
-
- /**
- * Weight is used to determine the share of load when more than one URI has the same priority. Its values range from 1 to 65535. The higher the value, the more load a URI is given. Defaults to 10.
- *
- * @param integer $weight Weight is used to determine the share of load when
- * more than one URI has the same priority.
- * @return $this Fluent Builder
- */
- public function setWeight($weight) {
- $this->options['weight'] = $weight;
- return $this;
- }
-
- /**
- * Priority ranks the importance of the URI. Values range from 0 to 65535, where the lowest number represents the highest importance. Defaults to 10.
- *
- * @param integer $priority Priority ranks the importance of the URI.
- * @return $this Fluent Builder
- */
- public function setPriority($priority) {
- $this->options['priority'] = $priority;
- return $this;
- }
-
- /**
- * A boolean value indicating whether the URL is enabled or disabled. Defaults to true.
- *
- * @param boolean $enabled A boolean value indicating whether the URL is
- * enabled or disabled.
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * A human readable descriptive text, up to 64 characters long.
- *
- * @param string $friendlyName A human readable descriptive text, up to 64
- * characters long.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported
- *
- * @param string $sipUrl The SIP address you want Twilio to route your
- * Origination calls to.
- * @return $this Fluent Builder
- */
- public function setSipUrl($sipUrl) {
- $this->options['sipUrl'] = $sipUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Trunking.V1.UpdateOriginationUrlOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlPage.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlPage.php
deleted file mode 100644
index df7a4dc..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new OriginationUrlInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.OriginationUrlPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberContext.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberContext.php
deleted file mode 100644
index 5fa4dd1..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('trunkSid' => $trunkSid, 'sid' => $sid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/PhoneNumbers/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberInstance(
- $this->version,
- $payload,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the PhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.PhoneNumberContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberInstance.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberInstance.php
deleted file mode 100644
index 7715eb3..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberInstance.php
+++ /dev/null
@@ -1,163 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'addressRequirements' => Values::array_get($payload, 'address_requirements'),
- 'apiVersion' => Values::array_get($payload, 'api_version'),
- 'beta' => Values::array_get($payload, 'beta'),
- 'capabilities' => Values::array_get($payload, 'capabilities'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'links' => Values::array_get($payload, 'links'),
- 'phoneNumber' => Values::array_get($payload, 'phone_number'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'smsApplicationSid' => Values::array_get($payload, 'sms_application_sid'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'trunkSid' => Values::array_get($payload, 'trunk_sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'voiceApplicationSid' => Values::array_get($payload, 'voice_application_sid'),
- 'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- );
-
- $this->solution = array('trunkSid' => $trunkSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\PhoneNumberContext Context for this
- * PhoneNumberInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PhoneNumberContext(
- $this->version,
- $this->solution['trunkSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a PhoneNumberInstance
- *
- * @return PhoneNumberInstance Fetched PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the PhoneNumberInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.PhoneNumberInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberList.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberList.php
deleted file mode 100644
index f46df01..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberList.php
+++ /dev/null
@@ -1,158 +0,0 @@
-solution = array('trunkSid' => $trunkSid, );
-
- $this->uri = '/Trunks/' . rawurlencode($trunkSid) . '/PhoneNumbers';
- }
-
- /**
- * Create a new PhoneNumberInstance
- *
- * @param string $phoneNumberSid The SID of the Incoming Phone Number that you
- * want to associate with this trunk.
- * @return PhoneNumberInstance Newly created PhoneNumberInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($phoneNumberSid) {
- $data = Values::of(array('PhoneNumberSid' => $phoneNumberSid, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new PhoneNumberInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Streams PhoneNumberInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads PhoneNumberInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return PhoneNumberInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of PhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of PhoneNumberInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of PhoneNumberInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of PhoneNumberInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new PhoneNumberPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a PhoneNumberContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Trunking\V1\Trunk\PhoneNumberContext
- */
- public function getContext($sid) {
- return new PhoneNumberContext($this->version, $this->solution['trunkSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.PhoneNumberList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberPage.php b/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberPage.php
deleted file mode 100644
index 3178cce..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PhoneNumberInstance($this->version, $payload, $this->solution['trunkSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.PhoneNumberPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkContext.php b/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkContext.php
deleted file mode 100644
index 1cc7642..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkContext.php
+++ /dev/null
@@ -1,210 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Trunks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a TrunkInstance
- *
- * @return TrunkInstance Fetched TrunkInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TrunkInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the TrunkInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the TrunkInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TrunkInstance Updated TrunkInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DomainName' => $options['domainName'],
- 'DisasterRecoveryUrl' => $options['disasterRecoveryUrl'],
- 'DisasterRecoveryMethod' => $options['disasterRecoveryMethod'],
- 'Recording' => $options['recording'],
- 'Secure' => Serialize::booleanToString($options['secure']),
- 'CnamLookupEnabled' => Serialize::booleanToString($options['cnamLookupEnabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TrunkInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the originationUrls
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\OriginationUrlList
- */
- protected function getOriginationUrls() {
- if (!$this->_originationUrls) {
- $this->_originationUrls = new OriginationUrlList($this->version, $this->solution['sid']);
- }
-
- return $this->_originationUrls;
- }
-
- /**
- * Access the credentialsLists
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\CredentialListList
- */
- protected function getCredentialsLists() {
- if (!$this->_credentialsLists) {
- $this->_credentialsLists = new CredentialListList($this->version, $this->solution['sid']);
- }
-
- return $this->_credentialsLists;
- }
-
- /**
- * Access the ipAccessControlLists
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\IpAccessControlListList
- */
- protected function getIpAccessControlLists() {
- if (!$this->_ipAccessControlLists) {
- $this->_ipAccessControlLists = new IpAccessControlListList($this->version, $this->solution['sid']);
- }
-
- return $this->_ipAccessControlLists;
- }
-
- /**
- * Access the phoneNumbers
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- if (!$this->_phoneNumbers) {
- $this->_phoneNumbers = new PhoneNumberList($this->version, $this->solution['sid']);
- }
-
- return $this->_phoneNumbers;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.TrunkContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkInstance.php b/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkInstance.php
deleted file mode 100644
index 81d1d6e..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkInstance.php
+++ /dev/null
@@ -1,188 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'domainName' => Values::array_get($payload, 'domain_name'),
- 'disasterRecoveryMethod' => Values::array_get($payload, 'disaster_recovery_method'),
- 'disasterRecoveryUrl' => Values::array_get($payload, 'disaster_recovery_url'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'secure' => Values::array_get($payload, 'secure'),
- 'recording' => Values::array_get($payload, 'recording'),
- 'cnamLookupEnabled' => Values::array_get($payload, 'cnam_lookup_enabled'),
- 'authType' => Values::array_get($payload, 'auth_type'),
- 'authTypeSet' => Values::array_get($payload, 'auth_type_set'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'sid' => Values::array_get($payload, 'sid'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Trunking\V1\TrunkContext Context for this TrunkInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new TrunkContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a TrunkInstance
- *
- * @return TrunkInstance Fetched TrunkInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the TrunkInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the TrunkInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TrunkInstance Updated TrunkInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the originationUrls
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\OriginationUrlList
- */
- protected function getOriginationUrls() {
- return $this->proxy()->originationUrls;
- }
-
- /**
- * Access the credentialsLists
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\CredentialListList
- */
- protected function getCredentialsLists() {
- return $this->proxy()->credentialsLists;
- }
-
- /**
- * Access the ipAccessControlLists
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\IpAccessControlListList
- */
- protected function getIpAccessControlLists() {
- return $this->proxy()->ipAccessControlLists;
- }
-
- /**
- * Access the phoneNumbers
- *
- * @return \Twilio\Rest\Trunking\V1\Trunk\PhoneNumberList
- */
- protected function getPhoneNumbers() {
- return $this->proxy()->phoneNumbers;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Trunking.V1.TrunkInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkList.php b/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkList.php
deleted file mode 100644
index 42aa692..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array();
-
- $this->uri = '/Trunks';
- }
-
- /**
- * Create a new TrunkInstance
- *
- * @param array|Options $options Optional Arguments
- * @return TrunkInstance Newly created TrunkInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'DomainName' => $options['domainName'],
- 'DisasterRecoveryUrl' => $options['disasterRecoveryUrl'],
- 'DisasterRecoveryMethod' => $options['disasterRecoveryMethod'],
- 'Recording' => $options['recording'],
- 'Secure' => Serialize::booleanToString($options['secure']),
- 'CnamLookupEnabled' => Serialize::booleanToString($options['cnamLookupEnabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new TrunkInstance($this->version, $payload);
- }
-
- /**
- * Streams TrunkInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads TrunkInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return TrunkInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of TrunkInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of TrunkInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new TrunkPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of TrunkInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of TrunkInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new TrunkPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a TrunkContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Trunking\V1\TrunkContext
- */
- public function getContext($sid) {
- return new TrunkContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.TrunkList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkOptions.php b/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkOptions.php
deleted file mode 100644
index 8325a80..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkOptions.php
+++ /dev/null
@@ -1,299 +0,0 @@
-options['friendlyName'] = $friendlyName;
- $this->options['domainName'] = $domainName;
- $this->options['disasterRecoveryUrl'] = $disasterRecoveryUrl;
- $this->options['disasterRecoveryMethod'] = $disasterRecoveryMethod;
- $this->options['recording'] = $recording;
- $this->options['secure'] = $secure;
- $this->options['cnamLookupEnabled'] = $cnamLookupEnabled;
- }
-
- /**
- * A human-readable name for the Trunk.
- *
- * @param string $friendlyName A human-readable name for the Trunk.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must always end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination) for more information.
- *
- * @param string $domainName The unique address you reserve on Twilio to which
- * you route your SIP traffic.
- * @return $this Fluent Builder
- */
- public function setDomainName($domainName) {
- $this->options['domainName'] = $domainName;
- return $this;
- }
-
- /**
- * The HTTP URL that Twilio will request if an error occurs while sending SIP traffic towards your configured Origination URL. Twilio will retrieve TwiML from this URL and execute those instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
- *
- * @param string $disasterRecoveryUrl The HTTP URL that Twilio will request if
- * an error occurs while sending SIP traffic
- * towards your configured Origination URL.
- * @return $this Fluent Builder
- */
- public function setDisasterRecoveryUrl($disasterRecoveryUrl) {
- $this->options['disasterRecoveryUrl'] = $disasterRecoveryUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
- *
- * @param string $disasterRecoveryMethod The HTTP method Twilio will use when
- * requesting the DisasterRecoveryUrl.
- * @return $this Fluent Builder
- */
- public function setDisasterRecoveryMethod($disasterRecoveryMethod) {
- $this->options['disasterRecoveryMethod'] = $disasterRecoveryMethod;
- return $this;
- }
-
- /**
- * The recording settings for this trunk. If turned on, all calls going through this trunk will be recorded and the recording can either start when the call is ringing or when the call is answered. See [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording) for more information.
- *
- * @param string $recording The recording settings for this trunk.
- * @return $this Fluent Builder
- */
- public function setRecording($recording) {
- $this->options['recording'] = $recording;
- return $this;
- }
-
- /**
- * The Secure Trunking settings for this trunk. If turned on, all calls going through this trunk will be secure using SRTP for media and TLS for signalling. If turned off, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
- *
- * @param boolean $secure The Secure Trunking settings for this trunk.
- * @return $this Fluent Builder
- */
- public function setSecure($secure) {
- $this->options['secure'] = $secure;
- return $this;
- }
-
- /**
- * The Caller ID Name (CNAM) lookup setting for this trunk. If turned on, all inbound calls to this SIP Trunk from the United States and Canada will automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM](https://www.twilio.com/docs/sip-trunking#CNAM) Lookups for more information.
- *
- * @param boolean $cnamLookupEnabled The Caller ID Name (CNAM) lookup setting
- * for this trunk.
- * @return $this Fluent Builder
- */
- public function setCnamLookupEnabled($cnamLookupEnabled) {
- $this->options['cnamLookupEnabled'] = $cnamLookupEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Trunking.V1.CreateTrunkOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateTrunkOptions extends Options {
- /**
- * @param string $friendlyName A human-readable name for the Trunk.
- * @param string $domainName The unique address you reserve on Twilio to which
- * you route your SIP traffic.
- * @param string $disasterRecoveryUrl The HTTP URL that Twilio will request if
- * an error occurs while sending SIP traffic
- * towards your configured Origination URL.
- * @param string $disasterRecoveryMethod The HTTP method Twilio will use when
- * requesting the DisasterRecoveryUrl.
- * @param string $recording The recording settings for this trunk.
- * @param boolean $secure The Secure Trunking settings for this trunk.
- * @param boolean $cnamLookupEnabled The Caller ID Name (CNAM) lookup setting
- * for this trunk.
- */
- public function __construct($friendlyName = Values::NONE, $domainName = Values::NONE, $disasterRecoveryUrl = Values::NONE, $disasterRecoveryMethod = Values::NONE, $recording = Values::NONE, $secure = Values::NONE, $cnamLookupEnabled = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['domainName'] = $domainName;
- $this->options['disasterRecoveryUrl'] = $disasterRecoveryUrl;
- $this->options['disasterRecoveryMethod'] = $disasterRecoveryMethod;
- $this->options['recording'] = $recording;
- $this->options['secure'] = $secure;
- $this->options['cnamLookupEnabled'] = $cnamLookupEnabled;
- }
-
- /**
- * A human-readable name for the Trunk.
- *
- * @param string $friendlyName A human-readable name for the Trunk.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must always end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination) for more information.
- *
- * @param string $domainName The unique address you reserve on Twilio to which
- * you route your SIP traffic.
- * @return $this Fluent Builder
- */
- public function setDomainName($domainName) {
- $this->options['domainName'] = $domainName;
- return $this;
- }
-
- /**
- * The HTTP URL that Twilio will request if an error occurs while sending SIP traffic towards your configured Origination URL. Twilio will retrieve TwiML from this URL and execute those instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
- *
- * @param string $disasterRecoveryUrl The HTTP URL that Twilio will request if
- * an error occurs while sending SIP traffic
- * towards your configured Origination URL.
- * @return $this Fluent Builder
- */
- public function setDisasterRecoveryUrl($disasterRecoveryUrl) {
- $this->options['disasterRecoveryUrl'] = $disasterRecoveryUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
- *
- * @param string $disasterRecoveryMethod The HTTP method Twilio will use when
- * requesting the DisasterRecoveryUrl.
- * @return $this Fluent Builder
- */
- public function setDisasterRecoveryMethod($disasterRecoveryMethod) {
- $this->options['disasterRecoveryMethod'] = $disasterRecoveryMethod;
- return $this;
- }
-
- /**
- * The recording settings for this trunk. If turned on, all calls going through this trunk will be recorded and the recording can either start when the call is ringing or when the call is answered. See [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording) for more information.
- *
- * @param string $recording The recording settings for this trunk.
- * @return $this Fluent Builder
- */
- public function setRecording($recording) {
- $this->options['recording'] = $recording;
- return $this;
- }
-
- /**
- * The Secure Trunking settings for this trunk. If turned on, all calls going through this trunk will be secure using SRTP for media and TLS for signalling. If turned off, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
- *
- * @param boolean $secure The Secure Trunking settings for this trunk.
- * @return $this Fluent Builder
- */
- public function setSecure($secure) {
- $this->options['secure'] = $secure;
- return $this;
- }
-
- /**
- * The Caller ID Name (CNAM) lookup setting for this trunk. If turned on, all inbound calls to this SIP Trunk from the United States and Canada will automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM](https://www.twilio.com/docs/sip-trunking#CNAM) Lookups for more information.
- *
- * @param boolean $cnamLookupEnabled The Caller ID Name (CNAM) lookup setting
- * for this trunk.
- * @return $this Fluent Builder
- */
- public function setCnamLookupEnabled($cnamLookupEnabled) {
- $this->options['cnamLookupEnabled'] = $cnamLookupEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Trunking.V1.UpdateTrunkOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkPage.php b/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkPage.php
deleted file mode 100644
index 9be3dd0..0000000
--- a/public/twilio-php/Twilio/Rest/Trunking/V1/TrunkPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new TrunkInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Trunking.V1.TrunkPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify.php b/public/twilio-php/Twilio/Rest/Verify.php
deleted file mode 100644
index 0f9fcd9..0000000
--- a/public/twilio-php/Twilio/Rest/Verify.php
+++ /dev/null
@@ -1,103 +0,0 @@
-baseUrl = 'https://verify.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Verify\V1 Version v1 of verify
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Verify\V1\ServiceList
- */
- protected function getServices() {
- return $this->v1->services;
- }
-
- /**
- * @param string $sid Verification Service Instance SID.
- * @return \Twilio\Rest\Verify\V1\ServiceContext
- */
- protected function contextServices($sid) {
- return $this->v1->services($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1.php b/public/twilio-php/Twilio/Rest/Verify/V1.php
deleted file mode 100644
index a91c6cb..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1.php
+++ /dev/null
@@ -1,86 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Verify\V1\ServiceList
- */
- protected function getServices() {
- if (!$this->_services) {
- $this->_services = new ServiceList($this);
- }
- return $this->_services;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckInstance.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckInstance.php
deleted file mode 100644
index 08b7c39..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckInstance.php
+++ /dev/null
@@ -1,87 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channel' => Values::array_get($payload, 'channel'),
- 'status' => Values::array_get($payload, 'status'),
- 'valid' => Values::array_get($payload, 'valid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.VerificationCheckInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckList.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckList.php
deleted file mode 100644
index a692d6f..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckList.php
+++ /dev/null
@@ -1,68 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/VerificationCheck';
- }
-
- /**
- * Create a new VerificationCheckInstance
- *
- * @param string $code The verification string
- * @param array|Options $options Optional Arguments
- * @return VerificationCheckInstance Newly created VerificationCheckInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($code, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Code' => $code, 'To' => $options['to'], ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new VerificationCheckInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.VerificationCheckList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckOptions.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckOptions.php
deleted file mode 100644
index bee3168..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckOptions.php
+++ /dev/null
@@ -1,61 +0,0 @@
-options['to'] = $to;
- }
-
- /**
- * The To phonenumber of the phone being verified
- *
- * @param string $to To phonenumber
- * @return $this Fluent Builder
- */
- public function setTo($to) {
- $this->options['to'] = $to;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Verify.V1.CreateVerificationCheckOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckPage.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckPage.php
deleted file mode 100644
index b59853a..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationCheckPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VerificationCheckInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.VerificationCheckPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationInstance.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationInstance.php
deleted file mode 100644
index 52275db..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationInstance.php
+++ /dev/null
@@ -1,87 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'serviceSid' => Values::array_get($payload, 'service_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'to' => Values::array_get($payload, 'to'),
- 'channel' => Values::array_get($payload, 'channel'),
- 'status' => Values::array_get($payload, 'status'),
- 'valid' => Values::array_get($payload, 'valid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- );
-
- $this->solution = array('serviceSid' => $serviceSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.VerificationInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationList.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationList.php
deleted file mode 100644
index bd738df..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationList.php
+++ /dev/null
@@ -1,75 +0,0 @@
-solution = array('serviceSid' => $serviceSid, );
-
- $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Verifications';
- }
-
- /**
- * Create a new VerificationInstance
- *
- * @param string $to To phonenumber
- * @param string $channel sms or call
- * @param array|Options $options Optional Arguments
- * @return VerificationInstance Newly created VerificationInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($to, $channel, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'To' => $to,
- 'Channel' => $channel,
- 'CustomMessage' => $options['customMessage'],
- 'SendDigits' => $options['sendDigits'],
- 'Locale' => $options['locale'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.VerificationList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationOptions.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationOptions.php
deleted file mode 100644
index bb826ae..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationOptions.php
+++ /dev/null
@@ -1,89 +0,0 @@
-options['customMessage'] = $customMessage;
- $this->options['sendDigits'] = $sendDigits;
- $this->options['locale'] = $locale;
- }
-
- /**
- * A character string containing a custom message for this verification
- *
- * @param string $customMessage A custom message for this verification
- * @return $this Fluent Builder
- */
- public function setCustomMessage($customMessage) {
- $this->options['customMessage'] = $customMessage;
- return $this;
- }
-
- /**
- * Digits to send when a phone call is started, same parameters as in Programmable Voice are supported
- *
- * @param string $sendDigits Digits to send when a phone call is started
- * @return $this Fluent Builder
- */
- public function setSendDigits($sendDigits) {
- $this->options['sendDigits'] = $sendDigits;
- return $this;
- }
-
- /**
- * Supported values are af, ar, ca, cs, da, de, el, en, es, fi, fr, he, hi, hr, hu, id, it, ja, ko, ms, nb, nl, pl, pt, pr-BR, ro, ru, sv, th, tl, tr, vi, zh, zh-CN, zh-HK
- *
- * @param string $locale Locale used in the sms or call.
- * @return $this Fluent Builder
- */
- public function setLocale($locale) {
- $this->options['locale'] = $locale;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Verify.V1.CreateVerificationOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationPage.php b/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationPage.php
deleted file mode 100644
index e2a700e..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/Service/VerificationPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.VerificationPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceContext.php b/public/twilio-php/Twilio/Rest/Verify/V1/ServiceContext.php
deleted file mode 100644
index ed14341..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceContext.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Services/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $options['friendlyName'],
- 'CodeLength' => $options['codeLength'],
- 'LookupEnabled' => Serialize::booleanToString($options['lookupEnabled']),
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the verifications
- *
- * @return \Twilio\Rest\Verify\V1\Service\VerificationList
- */
- protected function getVerifications() {
- if (!$this->_verifications) {
- $this->_verifications = new VerificationList($this->version, $this->solution['sid']);
- }
-
- return $this->_verifications;
- }
-
- /**
- * Access the verificationChecks
- *
- * @return \Twilio\Rest\Verify\V1\Service\VerificationCheckList
- */
- protected function getVerificationChecks() {
- if (!$this->_verificationChecks) {
- $this->_verificationChecks = new VerificationCheckList($this->version, $this->solution['sid']);
- }
-
- return $this->_verificationChecks;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Verify.V1.ServiceContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceInstance.php b/public/twilio-php/Twilio/Rest/Verify/V1/ServiceInstance.php
deleted file mode 100644
index 68a081f..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceInstance.php
+++ /dev/null
@@ -1,159 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'codeLength' => Values::array_get($payload, 'code_length'),
- 'lookupEnabled' => Values::array_get($payload, 'lookup_enabled'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Verify\V1\ServiceContext Context for this
- * ServiceInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ServiceContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ServiceInstance
- *
- * @return ServiceInstance Fetched ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the ServiceInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the ServiceInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Updated ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the verifications
- *
- * @return \Twilio\Rest\Verify\V1\Service\VerificationList
- */
- protected function getVerifications() {
- return $this->proxy()->verifications;
- }
-
- /**
- * Access the verificationChecks
- *
- * @return \Twilio\Rest\Verify\V1\Service\VerificationCheckList
- */
- protected function getVerificationChecks() {
- return $this->proxy()->verificationChecks;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Verify.V1.ServiceInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceList.php b/public/twilio-php/Twilio/Rest/Verify/V1/ServiceList.php
deleted file mode 100644
index 1b3cadc..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceList.php
+++ /dev/null
@@ -1,168 +0,0 @@
-solution = array();
-
- $this->uri = '/Services';
- }
-
- /**
- * Create a new ServiceInstance
- *
- * @param string $friendlyName Friendly name of the service
- * @param array|Options $options Optional Arguments
- * @return ServiceInstance Newly created ServiceInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'CodeLength' => $options['codeLength'],
- 'LookupEnabled' => Serialize::booleanToString($options['lookupEnabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Streams ServiceInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ServiceInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ServiceInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ServiceInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ServiceInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ServicePage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ServiceContext
- *
- * @param string $sid Verification Service Instance SID.
- * @return \Twilio\Rest\Verify\V1\ServiceContext
- */
- public function getContext($sid) {
- return new ServiceContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.ServiceList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceOptions.php b/public/twilio-php/Twilio/Rest/Verify/V1/ServiceOptions.php
deleted file mode 100644
index 559a2c5..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/ServiceOptions.php
+++ /dev/null
@@ -1,152 +0,0 @@
-options['codeLength'] = $codeLength;
- $this->options['lookupEnabled'] = $lookupEnabled;
- }
-
- /**
- * The length of the verification code to be generated. Must be an integer value between 4-10
- *
- * @param integer $codeLength Length of verification code. Valid values are 4-10
- * @return $this Fluent Builder
- */
- public function setCodeLength($codeLength) {
- $this->options['codeLength'] = $codeLength;
- return $this;
- }
-
- /**
- * Boolean value that indicates if a lookup should be performed with each verification started and associated info returned
- *
- * @param boolean $lookupEnabled Indicates whether or not to perform a lookup
- * with each verification started
- * @return $this Fluent Builder
- */
- public function setLookupEnabled($lookupEnabled) {
- $this->options['lookupEnabled'] = $lookupEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Verify.V1.CreateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateServiceOptions extends Options {
- /**
- * @param string $friendlyName Friendly name of the service
- * @param integer $codeLength Length of verification code. Valid values are 4-10
- * @param boolean $lookupEnabled Indicates whether or not to perform a lookup
- * with each verification started
- */
- public function __construct($friendlyName = Values::NONE, $codeLength = Values::NONE, $lookupEnabled = Values::NONE) {
- $this->options['friendlyName'] = $friendlyName;
- $this->options['codeLength'] = $codeLength;
- $this->options['lookupEnabled'] = $lookupEnabled;
- }
-
- /**
- * A 1-64 character string with friendly name of service
- *
- * @param string $friendlyName Friendly name of the service
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The length of the verification code to be generated. Must be an integer value between 4-10
- *
- * @param integer $codeLength Length of verification code. Valid values are 4-10
- * @return $this Fluent Builder
- */
- public function setCodeLength($codeLength) {
- $this->options['codeLength'] = $codeLength;
- return $this;
- }
-
- /**
- * Boolean value that indicates if a lookup should be performed with each verification started and associated info returned
- *
- * @param boolean $lookupEnabled Indicates whether or not to perform a lookup
- * with each verification started
- * @return $this Fluent Builder
- */
- public function setLookupEnabled($lookupEnabled) {
- $this->options['lookupEnabled'] = $lookupEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Verify.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Verify/V1/ServicePage.php b/public/twilio-php/Twilio/Rest/Verify/V1/ServicePage.php
deleted file mode 100644
index 793a0af..0000000
--- a/public/twilio-php/Twilio/Rest/Verify/V1/ServicePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ServiceInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Verify.V1.ServicePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video.php b/public/twilio-php/Twilio/Rest/Video.php
deleted file mode 100644
index 376ed40..0000000
--- a/public/twilio-php/Twilio/Rest/Video.php
+++ /dev/null
@@ -1,190 +0,0 @@
-baseUrl = 'https://video.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Video\V1 Version v1 of video
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionList
- */
- protected function getCompositions() {
- return $this->v1->compositions;
- }
-
- /**
- * @param string $sid The Composition Sid that uniquely identifies the
- * Composition to fetch.
- * @return \Twilio\Rest\Video\V1\CompositionContext
- */
- protected function contextCompositions($sid) {
- return $this->v1->compositions($sid);
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionHookList
- */
- protected function getCompositionHooks() {
- return $this->v1->compositionHooks;
- }
-
- /**
- * @param string $sid The Composition Hook Sid that uniquely identifies the
- * Composition Hook to fetch.
- * @return \Twilio\Rest\Video\V1\CompositionHookContext
- */
- protected function contextCompositionHooks($sid) {
- return $this->v1->compositionHooks($sid);
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionSettingsList
- */
- protected function getCompositionSettings() {
- return $this->v1->compositionSettings;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionSettingsContext
- */
- protected function contextCompositionSettings() {
- return $this->v1->compositionSettings();
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RecordingList
- */
- protected function getRecordings() {
- return $this->v1->recordings;
- }
-
- /**
- * @param string $sid The Recording Sid that uniquely identifies the Recording
- * to fetch.
- * @return \Twilio\Rest\Video\V1\RecordingContext
- */
- protected function contextRecordings($sid) {
- return $this->v1->recordings($sid);
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RecordingSettingsList
- */
- protected function getRecordingSettings() {
- return $this->v1->recordingSettings;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RecordingSettingsContext
- */
- protected function contextRecordingSettings() {
- return $this->v1->recordingSettings();
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RoomList
- */
- protected function getRooms() {
- return $this->v1->rooms;
- }
-
- /**
- * @param string $sid The Room Sid or name that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Video\V1\RoomContext
- */
- protected function contextRooms($sid) {
- return $this->v1->rooms($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1.php b/public/twilio-php/Twilio/Rest/Video/V1.php
deleted file mode 100644
index a0a147c..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1.php
+++ /dev/null
@@ -1,154 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionList
- */
- protected function getCompositions() {
- if (!$this->_compositions) {
- $this->_compositions = new CompositionList($this);
- }
- return $this->_compositions;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionHookList
- */
- protected function getCompositionHooks() {
- if (!$this->_compositionHooks) {
- $this->_compositionHooks = new CompositionHookList($this);
- }
- return $this->_compositionHooks;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\CompositionSettingsList
- */
- protected function getCompositionSettings() {
- if (!$this->_compositionSettings) {
- $this->_compositionSettings = new CompositionSettingsList($this);
- }
- return $this->_compositionSettings;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RecordingList
- */
- protected function getRecordings() {
- if (!$this->_recordings) {
- $this->_recordings = new RecordingList($this);
- }
- return $this->_recordings;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RecordingSettingsList
- */
- protected function getRecordingSettings() {
- if (!$this->_recordingSettings) {
- $this->_recordingSettings = new RecordingSettingsList($this);
- }
- return $this->_recordingSettings;
- }
-
- /**
- * @return \Twilio\Rest\Video\V1\RoomList
- */
- protected function getRooms() {
- if (!$this->_rooms) {
- $this->_rooms = new RoomList($this);
- }
- return $this->_rooms;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionContext.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionContext.php
deleted file mode 100644
index ca184cf..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionContext.php
+++ /dev/null
@@ -1,77 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Compositions/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CompositionInstance
- *
- * @return CompositionInstance Fetched CompositionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CompositionInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CompositionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.CompositionContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookContext.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookContext.php
deleted file mode 100644
index 331140a..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookContext.php
+++ /dev/null
@@ -1,114 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/CompositionHooks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CompositionHookInstance
- *
- * @return CompositionHookInstance Fetched CompositionHookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CompositionHookInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the CompositionHookInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Update the CompositionHookInstance
- *
- * @param string $friendlyName Friendly name of the Composition Hook to be
- * shown in the console.
- * @param array|Options $options Optional Arguments
- * @return CompositionHookInstance Updated CompositionHookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- 'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
- 'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
- 'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
- 'Trim' => Serialize::booleanToString($options['trim']),
- 'Format' => $options['format'],
- 'Resolution' => $options['resolution'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CompositionHookInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.CompositionHookContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookInstance.php
deleted file mode 100644
index 425151e..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookInstance.php
+++ /dev/null
@@ -1,153 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Values::array_get($payload, 'date_updated'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'audioSources' => Values::array_get($payload, 'audio_sources'),
- 'audioSourcesExcluded' => Values::array_get($payload, 'audio_sources_excluded'),
- 'videoLayout' => Values::array_get($payload, 'video_layout'),
- 'resolution' => Values::array_get($payload, 'resolution'),
- 'trim' => Values::array_get($payload, 'trim'),
- 'format' => Values::array_get($payload, 'format'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\CompositionHookContext Context for this
- * CompositionHookInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CompositionHookContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CompositionHookInstance
- *
- * @return CompositionHookInstance Fetched CompositionHookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the CompositionHookInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Update the CompositionHookInstance
- *
- * @param string $friendlyName Friendly name of the Composition Hook to be
- * shown in the console.
- * @param array|Options $options Optional Arguments
- * @return CompositionHookInstance Updated CompositionHookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($friendlyName, $options = array()) {
- return $this->proxy()->update($friendlyName, $options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.CompositionHookInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookList.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookList.php
deleted file mode 100644
index 21c39a9..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookList.php
+++ /dev/null
@@ -1,184 +0,0 @@
-solution = array();
-
- $this->uri = '/CompositionHooks';
- }
-
- /**
- * Streams CompositionHookInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CompositionHookInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CompositionHookInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CompositionHookInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CompositionHookInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CompositionHookPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CompositionHookInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CompositionHookInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CompositionHookPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CompositionHookInstance
- *
- * @param string $friendlyName Friendly name of the Composition Hook to be
- * shown in the console.
- * @param array|Options $options Optional Arguments
- * @return CompositionHookInstance Newly created CompositionHookInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'Enabled' => Serialize::booleanToString($options['enabled']),
- 'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
- 'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
- 'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
- 'Resolution' => $options['resolution'],
- 'Format' => $options['format'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'Trim' => Serialize::booleanToString($options['trim']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CompositionHookInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CompositionHookContext
- *
- * @param string $sid The Composition Hook Sid that uniquely identifies the
- * Composition Hook to fetch.
- * @return \Twilio\Rest\Video\V1\CompositionHookContext
- */
- public function getContext($sid) {
- return new CompositionHookContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.CompositionHookList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookOptions.php
deleted file mode 100644
index 1dd5039..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookOptions.php
+++ /dev/null
@@ -1,457 +0,0 @@
-options['enabled'] = $enabled;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- }
-
- /**
- * Only show Composition Hooks that are enabled or disabled.
- *
- * @param boolean $enabled Only show Composition Hooks enabled or disabled.
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * Only show Composition Hooks created on or after this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
- *
- * @param \DateTime $dateCreatedAfter Only show Composition Hooks created on or
- * after this ISO8601 date-time.
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show Composition Hooks created before this this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
- *
- * @param \DateTime $dateCreatedBefore Only show Composition Hooks created
- * before this this ISO8601 date-time.
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadCompositionHookOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateCompositionHookOptions extends Options {
- /**
- * @param boolean $enabled Boolean flag for activating the Composition Hook.
- * @param array $videoLayout The JSON video layout description.
- * @param string $audioSources A list of audio sources related to this
- * Composition Hook.
- * @param string $audioSourcesExcluded A list of audio sources excluded related
- * to this Composition Hook.
- * @param string $resolution Pixel resolution of the composed video.
- * @param string $format Container format of the Composition Hook media file.
- * Any of the following: `mp4`, `webm`.
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every composition event.
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- * @param boolean $trim Boolean flag for clipping intervals that have no media.
- */
- public function __construct($enabled = Values::NONE, $videoLayout = Values::NONE, $audioSources = Values::NONE, $audioSourcesExcluded = Values::NONE, $resolution = Values::NONE, $format = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $trim = Values::NONE) {
- $this->options['enabled'] = $enabled;
- $this->options['videoLayout'] = $videoLayout;
- $this->options['audioSources'] = $audioSources;
- $this->options['audioSourcesExcluded'] = $audioSourcesExcluded;
- $this->options['resolution'] = $resolution;
- $this->options['format'] = $format;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['trim'] = $trim;
- }
-
- /**
- * When activated, the Composition Hook is enabled and a composition will be triggered for every Video room completed by this account from this point onwards; `false` indicates the Composition Hook is left inactive.
- *
- * @param boolean $enabled Boolean flag for activating the Composition Hook.
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * A JSON object defining the video layout of the Composition Hook in terms of regions. See the section [Managing Video Layouts](#managing-video-layouts) below for further information.
- *
- * @param array $videoLayout The JSON video layout description.
- * @return $this Fluent Builder
- */
- public function setVideoLayout($videoLayout) {
- $this->options['videoLayout'] = $videoLayout;
- return $this;
- }
-
- /**
- * An array of audio sources to merge. All the specified sources must belong to the same Group Room. It can include:
- * Zero or more Track names. These can be specified using wildcards (e.g. `student*`). The use of `[*]` has semantics "all if any" meaning zero or more (i.e. all) depending on whether the Group Room had audio tracks.
- *
- * @param string $audioSources A list of audio sources related to this
- * Composition Hook.
- * @return $this Fluent Builder
- */
- public function setAudioSources($audioSources) {
- $this->options['audioSources'] = $audioSources;
- return $this;
- }
-
- /**
- * An array of audio sources to exclude from the Composition Hook. Any new Composition triggered by the Composition Hook shall include all audio sources specified in `AudioSources` except for the ones specified in `AudioSourcesExcluded`. This parameter may include:
- * Zero or more Track names. These can be specified using wildcards (e.g. `student*`)
- *
- * @param string $audioSourcesExcluded A list of audio sources excluded related
- * to this Composition Hook.
- * @return $this Fluent Builder
- */
- public function setAudioSourcesExcluded($audioSourcesExcluded) {
- $this->options['audioSourcesExcluded'] = $audioSourcesExcluded;
- return $this;
- }
-
- /**
- * A string representing the numbers of pixels for rows (width) and columns (height) of the generated composed video. This string must have the format `{width}x{height}`. This parameter must comply with the following constraints:
- * `width >= 16 && width <= 1280`
- * `height >= 16 && height <= 1280`
- * `width * height <= 921,600`
- Typical values are:
- * HD = `1280x720`
- * PAL = `1024x576`
- * VGA = `640x480`
- * CIF = `320x240`
- Note that the `Resolution` implicitly imposes an aspect ratio to the resulting composition. When the original video tracks get constrained by this aspect ratio they are scaled-down to fit. You can find detailed information in the [Managing Video Layouts](#managing-video-layouts) section. Defaults to `640x480`.
- *
- * @param string $resolution Pixel resolution of the composed video.
- * @return $this Fluent Builder
- */
- public function setResolution($resolution) {
- $this->options['resolution'] = $resolution;
- return $this;
- }
-
- /**
- * Container format of the Composition media files created by the Composition Hook. Can be any of the following: `mp4`, `webm`. The use of `mp4` or `webm` makes mandatory the specification of `AudioSources` and/or one `VideoLayout` element containing a valid `video_sources` list, otherwise an error is fired. Defaults to `webm`.
- *
- * @param string $format Container format of the Composition Hook media file.
- * Any of the following: `mp4`, `webm`.
- * @return $this Fluent Builder
- */
- public function setFormat($format) {
- $this->options['format'] = $format;
- return $this;
- }
-
- /**
- * A URL that Twilio sends asynchronous webhook requests to on every composition event. If not provided, status callback events will not be dispatched.
- *
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every composition event.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * HTTP method Twilio should use when requesting the above URL. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * When activated, clips all the intervals where there is no active media in the Compositions triggered by the Composition Hook. This results in shorter compositions in cases when the Room was created but no Participant joined for some time, or if all the Participants left the room and joined at a later stage, as those gaps will be removed. You can find further information in the [Managing Video Layouts](#managing-video-layouts) section. Defaults to `true`.
- *
- * @param boolean $trim Boolean flag for clipping intervals that have no media.
- * @return $this Fluent Builder
- */
- public function setTrim($trim) {
- $this->options['trim'] = $trim;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.CreateCompositionHookOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateCompositionHookOptions extends Options {
- /**
- * @param boolean $enabled Boolean flag for activating the Composition Hook.
- * @param array $videoLayout The JSON video layout description.
- * @param string $audioSources A list of audio sources related to this
- * Composition Hook.
- * @param string $audioSourcesExcluded A list of audio sources excluded related
- * to this Composition Hook.
- * @param boolean $trim Boolean flag for clipping intervals that have no media.
- * @param string $format Container format of the Composition Hook media file.
- * Any of the following: `mp4`, `webm`.
- * @param string $resolution Pixel resolution of the composed video.
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every composition event.
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- */
- public function __construct($enabled = Values::NONE, $videoLayout = Values::NONE, $audioSources = Values::NONE, $audioSourcesExcluded = Values::NONE, $trim = Values::NONE, $format = Values::NONE, $resolution = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE) {
- $this->options['enabled'] = $enabled;
- $this->options['videoLayout'] = $videoLayout;
- $this->options['audioSources'] = $audioSources;
- $this->options['audioSourcesExcluded'] = $audioSourcesExcluded;
- $this->options['trim'] = $trim;
- $this->options['format'] = $format;
- $this->options['resolution'] = $resolution;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- }
-
- /**
- * When activated, the Composition Hook is enabled and a composition will be triggered for every Video room completed by this account from this point onwards; `false` indicates the Composition Hook is left inactive.
- *
- * @param boolean $enabled Boolean flag for activating the Composition Hook.
- * @return $this Fluent Builder
- */
- public function setEnabled($enabled) {
- $this->options['enabled'] = $enabled;
- return $this;
- }
-
- /**
- * A JSON object defining the video layout of the Composition Hook in terms of regions. See the section [Managing Video Layouts](#managing-video-layouts) below for further information.
- *
- * @param array $videoLayout The JSON video layout description.
- * @return $this Fluent Builder
- */
- public function setVideoLayout($videoLayout) {
- $this->options['videoLayout'] = $videoLayout;
- return $this;
- }
-
- /**
- * An array of audio sources to merge. All the specified sources must belong to the same Group Room. It can include:
- * Zero or more Track names. These can be specified using wildcards (e.g. `student*`). The use of `[*]` has semantics "all if any" meaning zero or more (i.e. all) depending on whether the Group Room had audio tracks.
- *
- * @param string $audioSources A list of audio sources related to this
- * Composition Hook.
- * @return $this Fluent Builder
- */
- public function setAudioSources($audioSources) {
- $this->options['audioSources'] = $audioSources;
- return $this;
- }
-
- /**
- * An array of audio sources to exclude from the Composition Hook. Any new Composition triggered by the Composition Hook shall include all audio sources specified in `AudioSources` except for the ones specified in `AudioSourcesExcluded`. This parameter may include:
- * Zero or more Track names. These can be specified using wildcards (e.g. `student*`)
- *
- * @param string $audioSourcesExcluded A list of audio sources excluded related
- * to this Composition Hook.
- * @return $this Fluent Builder
- */
- public function setAudioSourcesExcluded($audioSourcesExcluded) {
- $this->options['audioSourcesExcluded'] = $audioSourcesExcluded;
- return $this;
- }
-
- /**
- * When activated, clips all the intervals where there is no active media in the Compositions triggered by the Composition Hook. This results in shorter compositions in cases when the Room was created but no Participant joined for some time, or if all the Participants left the room and joined at a later stage, as those gaps will be removed. You can find further information in the [Managing Video Layouts](#managing-video-layouts) section. Defaults to `true`.
- *
- * @param boolean $trim Boolean flag for clipping intervals that have no media.
- * @return $this Fluent Builder
- */
- public function setTrim($trim) {
- $this->options['trim'] = $trim;
- return $this;
- }
-
- /**
- * Container format of the Composition media files created by the Composition Hook. Can be any of the following: `mp4`, `webm`. The use of `mp4` or `webm` makes mandatory the specification of `AudioSources` and/or one `VideoLayout` element containing a valid `video_sources` list, otherwise an error is fired. Defaults to `webm`.
- *
- * @param string $format Container format of the Composition Hook media file.
- * Any of the following: `mp4`, `webm`.
- * @return $this Fluent Builder
- */
- public function setFormat($format) {
- $this->options['format'] = $format;
- return $this;
- }
-
- /**
- * A string representing the numbers of pixels for rows (width) and columns (height) of the generated composed video. This string must have the format `{width}x{height}`. This parameter must comply with the following constraints:
- * `width >= 16 && width <= 1280`
- * `height >= 16 && height <= 1280`
- * `width * height <= 921,600`
- Typical values are:
- * HD = `1280x720`
- * PAL = `1024x576`
- * VGA = `640x480`
- * CIF = `320x240`
- Note that the `Resolution` implicitly imposes an aspect ratio to the resulting composition. When the original video tracks get constrained by this aspect ratio they are scaled-down to fit. You can find detailed information in the [Managing Video Layouts](#managing-video-layouts) section. Defaults to `640x480`.
- *
- * @param string $resolution Pixel resolution of the composed video.
- * @return $this Fluent Builder
- */
- public function setResolution($resolution) {
- $this->options['resolution'] = $resolution;
- return $this;
- }
-
- /**
- * A URL that Twilio sends asynchronous webhook requests to on every composition event. If not provided, status callback events will not be dispatched.
- *
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every composition event.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * HTTP method Twilio should use when requesting the above URL. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.UpdateCompositionHookOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookPage.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookPage.php
deleted file mode 100644
index 7c4c661..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionHookPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CompositionHookInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.CompositionHookPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionInstance.php
deleted file mode 100644
index 0210ca8..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionInstance.php
+++ /dev/null
@@ -1,145 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateCompleted' => Values::array_get($payload, 'date_completed'),
- 'dateDeleted' => Values::array_get($payload, 'date_deleted'),
- 'sid' => Values::array_get($payload, 'sid'),
- 'roomSid' => Values::array_get($payload, 'room_sid'),
- 'audioSources' => Values::array_get($payload, 'audio_sources'),
- 'audioSourcesExcluded' => Values::array_get($payload, 'audio_sources_excluded'),
- 'videoLayout' => Values::array_get($payload, 'video_layout'),
- 'resolution' => Values::array_get($payload, 'resolution'),
- 'trim' => Values::array_get($payload, 'trim'),
- 'format' => Values::array_get($payload, 'format'),
- 'bitrate' => Values::array_get($payload, 'bitrate'),
- 'size' => Values::array_get($payload, 'size'),
- 'duration' => Values::array_get($payload, 'duration'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\CompositionContext Context for this
- * CompositionInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CompositionContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CompositionInstance
- *
- * @return CompositionInstance Fetched CompositionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the CompositionInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.CompositionInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionList.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionList.php
deleted file mode 100644
index d63baab..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionList.php
+++ /dev/null
@@ -1,182 +0,0 @@
-solution = array();
-
- $this->uri = '/Compositions';
- }
-
- /**
- * Streams CompositionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CompositionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CompositionInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CompositionInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CompositionInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'RoomSid' => $options['roomSid'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CompositionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CompositionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CompositionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CompositionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CompositionInstance
- *
- * @param array|Options $options Optional Arguments
- * @return CompositionInstance Newly created CompositionInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'RoomSid' => $options['roomSid'],
- 'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
- 'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
- 'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
- 'Resolution' => $options['resolution'],
- 'Format' => $options['format'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'Trim' => Serialize::booleanToString($options['trim']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CompositionInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CompositionContext
- *
- * @param string $sid The Composition Sid that uniquely identifies the
- * Composition to fetch.
- * @return \Twilio\Rest\Video\V1\CompositionContext
- */
- public function getContext($sid) {
- return new CompositionContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.CompositionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionOptions.php
deleted file mode 100644
index da1ab93..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionOptions.php
+++ /dev/null
@@ -1,296 +0,0 @@
-options['status'] = $status;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['roomSid'] = $roomSid;
- }
-
- /**
- * Only show Compositions with the given status.
- *
- * @param string $status Only show Compositions with the given status.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Only show Compositions that started on or after this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
- *
- * @param \DateTime $dateCreatedAfter Only show Compositions that started on or
- * after this ISO8601 date-time.
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show Compositions that started before this this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
- *
- * @param \DateTime $dateCreatedBefore Only show Compositions that started
- * before this this ISO8601 date-time.
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Only show Compositions with the given Room SID.
- *
- * @param string $roomSid Only show Compositions with the given Room SID.
- * @return $this Fluent Builder
- */
- public function setRoomSid($roomSid) {
- $this->options['roomSid'] = $roomSid;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadCompositionOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateCompositionOptions extends Options {
- /**
- * @param string $roomSid Twilio Room SID.
- * @param array $videoLayout The JSON video layout description.
- * @param string $audioSources A list of audio sources related to this
- * Composition.
- * @param string $audioSourcesExcluded A list of audio sources excluded related
- * to this Composition.
- * @param string $resolution Pixel resolution of the composed video.
- * @param string $format Container format of the Composition media file. Any of
- * the following: `mp4`, `webm`.
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every composition event.
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- * @param boolean $trim Boolean flag for clipping intervals that have no media.
- */
- public function __construct($roomSid = Values::NONE, $videoLayout = Values::NONE, $audioSources = Values::NONE, $audioSourcesExcluded = Values::NONE, $resolution = Values::NONE, $format = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $trim = Values::NONE) {
- $this->options['roomSid'] = $roomSid;
- $this->options['videoLayout'] = $videoLayout;
- $this->options['audioSources'] = $audioSources;
- $this->options['audioSourcesExcluded'] = $audioSourcesExcluded;
- $this->options['resolution'] = $resolution;
- $this->options['format'] = $format;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['trim'] = $trim;
- }
-
- /**
- * Group Room SID owning the media tracks to be used as Composition sources.
- *
- * @param string $roomSid Twilio Room SID.
- * @return $this Fluent Builder
- */
- public function setRoomSid($roomSid) {
- $this->options['roomSid'] = $roomSid;
- return $this;
- }
-
- /**
- * A JSON object defining the video layout of the Composition in terms of regions. See the section [Managing Video Layouts](#managing-video-layouts) below for further information.
- *
- * @param array $videoLayout The JSON video layout description.
- * @return $this Fluent Builder
- */
- public function setVideoLayout($videoLayout) {
- $this->options['videoLayout'] = $videoLayout;
- return $this;
- }
-
- /**
- * An array of audio sources to merge. All the specified sources must belong to the same Group Room. It can include:
- * Zero or more `RecordingTrackSid`
- * Zero or more `MediaTrackSid`
- * Zero or more `ParticipantSid`
- * Zero or more Track names. These can be specified using wildcards (e.g. `student*`). The use of `[*]` has semantics "all if any" meaning zero or more (i.e. all) depending on whether the target room had audio tracks.
- *
- * @param string $audioSources A list of audio sources related to this
- * Composition.
- * @return $this Fluent Builder
- */
- public function setAudioSources($audioSources) {
- $this->options['audioSources'] = $audioSources;
- return $this;
- }
-
- /**
- * An array of audio sources to exclude from the Composition. Any new Composition shall include all audio sources specified in `AudioSources` except for the ones specified in `AudioSourcesExcluded`. This parameter may include:
- * Zero or more `RecordingTrackSid`
- * Zero or more `MediaTrackSid`
- * Zero or more `ParticipantSid`
- * Zero or more Track names. These can be specified using wildcards (e.g. `student*`)
- *
- * @param string $audioSourcesExcluded A list of audio sources excluded related
- * to this Composition.
- * @return $this Fluent Builder
- */
- public function setAudioSourcesExcluded($audioSourcesExcluded) {
- $this->options['audioSourcesExcluded'] = $audioSourcesExcluded;
- return $this;
- }
-
- /**
- * A string representing the numbers of pixels for rows (width) and columns (height) of the generated composed video. This string must have the format `{width}x{height}`. This parameter must comply with the following constraints:
- * `width >= 16 && width <= 1280`
- * `height >= 16 && height <= 1280`
- * `width * height <= 921,600`
- Typical values are:
- * HD = `1280x720`
- * PAL = `1024x576`
- * VGA = `640x480`
- * CIF = `320x240`
- Note that the `Resolution` implicitly imposes an aspect ratio to the resulting composition. When the original video tracks get constrained by this aspect ratio they are scaled-down to fit. You can find detailed information in the [Managing Video Layouts](#managing-video-layouts) section. Defaults to `640x480`.
- *
- * @param string $resolution Pixel resolution of the composed video.
- * @return $this Fluent Builder
- */
- public function setResolution($resolution) {
- $this->options['resolution'] = $resolution;
- return $this;
- }
-
- /**
- * Container format of the Composition media file. Can be any of the following: `mp4`, `webm`. The use of `mp4` or `webm` makes mandatory the specification of `AudioSources` and/or one `VideoLayout` element containing a valid `video_sources` list, otherwise an error is fired. Defaults to `webm`.
- *
- * @param string $format Container format of the Composition media file. Any of
- * the following: `mp4`, `webm`.
- * @return $this Fluent Builder
- */
- public function setFormat($format) {
- $this->options['format'] = $format;
- return $this;
- }
-
- /**
- * A URL that Twilio sends asynchronous webhook requests to on every composition event. If not provided, status callback events will not be dispatched.
- *
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every composition event.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * HTTP method Twilio should use when requesting the above URL. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * When activated, clips all the Composition intervals where there is no active media. This results in shorter compositions in cases when the Room was created but no Participant joined for some time, or if all the Participants left the room and joined at a later stage, as those gaps will be removed. You can find further information in the [Managing Video Layouts](#managing-video-layouts) section. Defaults to `true`.
- *
- * @param boolean $trim Boolean flag for clipping intervals that have no media.
- * @return $this Fluent Builder
- */
- public function setTrim($trim) {
- $this->options['trim'] = $trim;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.CreateCompositionOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionPage.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionPage.php
deleted file mode 100644
index 2887ea3..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CompositionInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.CompositionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsContext.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsContext.php
deleted file mode 100644
index 4e807d0..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsContext.php
+++ /dev/null
@@ -1,98 +0,0 @@
-solution = array();
-
- $this->uri = '/CompositionSettings/Default';
- }
-
- /**
- * Fetch a CompositionSettingsInstance
- *
- * @return CompositionSettingsInstance Fetched CompositionSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CompositionSettingsInstance($this->version, $payload);
- }
-
- /**
- * Create a new CompositionSettingsInstance
- *
- * @param string $friendlyName Friendly name of the configuration to be shown
- * in the console
- * @param array|Options $options Optional Arguments
- * @return CompositionSettingsInstance Newly created CompositionSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'AwsCredentialsSid' => $options['awsCredentialsSid'],
- 'EncryptionKeySid' => $options['encryptionKeySid'],
- 'AwsS3Url' => $options['awsS3Url'],
- 'AwsStorageEnabled' => Serialize::booleanToString($options['awsStorageEnabled']),
- 'EncryptionEnabled' => Serialize::booleanToString($options['encryptionEnabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CompositionSettingsInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.CompositionSettingsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsInstance.php
deleted file mode 100644
index ff2a180..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsInstance.php
+++ /dev/null
@@ -1,126 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'awsCredentialsSid' => Values::array_get($payload, 'aws_credentials_sid'),
- 'awsS3Url' => Values::array_get($payload, 'aws_s3_url'),
- 'awsStorageEnabled' => Values::array_get($payload, 'aws_storage_enabled'),
- 'encryptionKeySid' => Values::array_get($payload, 'encryption_key_sid'),
- 'encryptionEnabled' => Values::array_get($payload, 'encryption_enabled'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\CompositionSettingsContext Context for this
- * CompositionSettingsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CompositionSettingsContext($this->version);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CompositionSettingsInstance
- *
- * @return CompositionSettingsInstance Fetched CompositionSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Create a new CompositionSettingsInstance
- *
- * @param string $friendlyName Friendly name of the configuration to be shown
- * in the console
- * @param array|Options $options Optional Arguments
- * @return CompositionSettingsInstance Newly created CompositionSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- return $this->proxy()->create($friendlyName, $options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.CompositionSettingsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsList.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsList.php
deleted file mode 100644
index 9bcbe65..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsList.php
+++ /dev/null
@@ -1,49 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a CompositionSettingsContext
- *
- * @return \Twilio\Rest\Video\V1\CompositionSettingsContext
- */
- public function getContext() {
- return new CompositionSettingsContext($this->version);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.CompositionSettingsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsOptions.php
deleted file mode 100644
index 48978f6..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsOptions.php
+++ /dev/null
@@ -1,141 +0,0 @@
-.s3-.amazonaws.com/compositions, where compositions is the path where you want compositions to be stored.
- * @param boolean $awsStorageEnabled true|false When set to true, all
- * Compositions will be written to the
- * AwsS3Url specified above. When set to
- * false, all Compositions will be stored in
- * Twilio's cloud.
- * @param boolean $encryptionEnabled true|false When set to true, all
- * Compositions will be stored encrypted.
- * @return CreateCompositionSettingsOptions Options builder
- */
- public static function create($awsCredentialsSid = Values::NONE, $encryptionKeySid = Values::NONE, $awsS3Url = Values::NONE, $awsStorageEnabled = Values::NONE, $encryptionEnabled = Values::NONE) {
- return new CreateCompositionSettingsOptions($awsCredentialsSid, $encryptionKeySid, $awsS3Url, $awsStorageEnabled, $encryptionEnabled);
- }
-}
-
-class CreateCompositionSettingsOptions extends Options {
- /**
- * @param string $awsCredentialsSid SID of the Stored Credential resource CRxx
- * @param string $encryptionKeySid SID of the Public Key resource CRxx
- * @param string $awsS3Url Identity of the external location where the
- * compositions should be stored. We only support
- * DNS-compliant URLs like
- * http://.s3-.amazonaws.com/compositions, where compositions is the path where you want compositions to be stored.
- * @param boolean $awsStorageEnabled true|false When set to true, all
- * Compositions will be written to the
- * AwsS3Url specified above. When set to
- * false, all Compositions will be stored in
- * Twilio's cloud.
- * @param boolean $encryptionEnabled true|false When set to true, all
- * Compositions will be stored encrypted.
- */
- public function __construct($awsCredentialsSid = Values::NONE, $encryptionKeySid = Values::NONE, $awsS3Url = Values::NONE, $awsStorageEnabled = Values::NONE, $encryptionEnabled = Values::NONE) {
- $this->options['awsCredentialsSid'] = $awsCredentialsSid;
- $this->options['encryptionKeySid'] = $encryptionKeySid;
- $this->options['awsS3Url'] = $awsS3Url;
- $this->options['awsStorageEnabled'] = $awsStorageEnabled;
- $this->options['encryptionEnabled'] = $encryptionEnabled;
- }
-
- /**
- * SID of the Stored Credential resource `CRxx`
- *
- * @param string $awsCredentialsSid SID of the Stored Credential resource CRxx
- * @return $this Fluent Builder
- */
- public function setAwsCredentialsSid($awsCredentialsSid) {
- $this->options['awsCredentialsSid'] = $awsCredentialsSid;
- return $this;
- }
-
- /**
- * SID of the Public Key resource `CRxx`
- *
- * @param string $encryptionKeySid SID of the Public Key resource CRxx
- * @return $this Fluent Builder
- */
- public function setEncryptionKeySid($encryptionKeySid) {
- $this->options['encryptionKeySid'] = $encryptionKeySid;
- return $this;
- }
-
- /**
- * Identity of the external location where the compositions should be stored. We only support DNS-compliant URLs like `http://.s3-.amazonaws.com/compositions`, where `compositions` is the path where you want compositions to be stored.
- *
- * @param string $awsS3Url Identity of the external location where the
- * compositions should be stored. We only support
- * DNS-compliant URLs like
- * http://.s3-.amazonaws.com/compositions, where compositions is the path where you want compositions to be stored.
- * @return $this Fluent Builder
- */
- public function setAwsS3Url($awsS3Url) {
- $this->options['awsS3Url'] = $awsS3Url;
- return $this;
- }
-
- /**
- * `true|false` When set to `true`, all Compositions will be written to the `AwsS3Url` specified above. When set to `false`, all Compositions will be stored in Twilio's cloud.
- *
- * @param boolean $awsStorageEnabled true|false When set to true, all
- * Compositions will be written to the
- * AwsS3Url specified above. When set to
- * false, all Compositions will be stored in
- * Twilio's cloud.
- * @return $this Fluent Builder
- */
- public function setAwsStorageEnabled($awsStorageEnabled) {
- $this->options['awsStorageEnabled'] = $awsStorageEnabled;
- return $this;
- }
-
- /**
- * `true|false` When set to `true`, all Compositions will be stored encrypted. Dafault value is `false`
- *
- * @param boolean $encryptionEnabled true|false When set to true, all
- * Compositions will be stored encrypted.
- * @return $this Fluent Builder
- */
- public function setEncryptionEnabled($encryptionEnabled) {
- $this->options['encryptionEnabled'] = $encryptionEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.CreateCompositionSettingsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsPage.php b/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsPage.php
deleted file mode 100644
index 59bb8bf..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/CompositionSettingsPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CompositionSettingsInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.CompositionSettingsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingContext.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingContext.php
deleted file mode 100644
index 408a5d1..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingContext.php
+++ /dev/null
@@ -1,74 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Recordings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RecordingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingInstance.php
deleted file mode 100644
index 5b70ef2..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingInstance.php
+++ /dev/null
@@ -1,137 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'sid' => Values::array_get($payload, 'sid'),
- 'sourceSid' => Values::array_get($payload, 'source_sid'),
- 'size' => Values::array_get($payload, 'size'),
- 'url' => Values::array_get($payload, 'url'),
- 'type' => Values::array_get($payload, 'type'),
- 'duration' => Values::array_get($payload, 'duration'),
- 'containerFormat' => Values::array_get($payload, 'container_format'),
- 'codec' => Values::array_get($payload, 'codec'),
- 'groupingSids' => Values::array_get($payload, 'grouping_sids'),
- 'trackName' => Values::array_get($payload, 'track_name'),
- 'offset' => Values::array_get($payload, 'offset'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\RecordingContext Context for this
- * RecordingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RecordingContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RecordingInstance
- *
- * @return RecordingInstance Fetched RecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RecordingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingList.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingList.php
deleted file mode 100644
index c4ea071..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array();
-
- $this->uri = '/Recordings';
- }
-
- /**
- * Streams RecordingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RecordingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RecordingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'SourceSid' => $options['sourceSid'],
- 'GroupingSid' => Serialize::map($options['groupingSid'], function($e) { return $e; }),
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RecordingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RecordingContext
- *
- * @param string $sid The Recording Sid that uniquely identifies the Recording
- * to fetch.
- * @return \Twilio\Rest\Video\V1\RecordingContext
- */
- public function getContext($sid) {
- return new RecordingContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RecordingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingOptions.php
deleted file mode 100644
index f5a21a1..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingOptions.php
+++ /dev/null
@@ -1,120 +0,0 @@
-options['status'] = $status;
- $this->options['sourceSid'] = $sourceSid;
- $this->options['groupingSid'] = $groupingSid;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- }
-
- /**
- * Only show Recordings with the given status.
- *
- * @param string $status Only show Recordings with the given status.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Only show the Recordings with the given source Sid (you can use this to filter Recordings by `TrackSid` for Video Room Recordings.
- *
- * @param string $sourceSid Only show the Recordings with the given source Sid.
- * @return $this Fluent Builder
- */
- public function setSourceSid($sourceSid) {
- $this->options['sourceSid'] = $sourceSid;
- return $this;
- }
-
- /**
- * Only show Recordings that have this GroupingSid, which may include a ParticipantSid and/or a RoomSid.
- *
- * @param string $groupingSid Only show Recordings that have this GroupingSid.
- * @return $this Fluent Builder
- */
- public function setGroupingSid($groupingSid) {
- $this->options['groupingSid'] = $groupingSid;
- return $this;
- }
-
- /**
- * Only show Recordings that started on or after this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
- *
- * @param \DateTime $dateCreatedAfter Only show Recordings that started on or
- * after this ISO8601 date-time.
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show Recordings that started before this this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
- *
- * @param \DateTime $dateCreatedBefore Only show Recordings that started before
- * this this ISO8601 date-time.
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingPage.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingPage.php
deleted file mode 100644
index 4f3c2f5..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RecordingInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RecordingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsContext.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsContext.php
deleted file mode 100644
index dbdb2b1..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsContext.php
+++ /dev/null
@@ -1,98 +0,0 @@
-solution = array();
-
- $this->uri = '/RecordingSettings/Default';
- }
-
- /**
- * Fetch a RecordingSettingsInstance
- *
- * @return RecordingSettingsInstance Fetched RecordingSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RecordingSettingsInstance($this->version, $payload);
- }
-
- /**
- * Create a new RecordingSettingsInstance
- *
- * @param string $friendlyName Friendly name of the configuration to be shown
- * in the console
- * @param array|Options $options Optional Arguments
- * @return RecordingSettingsInstance Newly created RecordingSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'FriendlyName' => $friendlyName,
- 'AwsCredentialsSid' => $options['awsCredentialsSid'],
- 'EncryptionKeySid' => $options['encryptionKeySid'],
- 'AwsS3Url' => $options['awsS3Url'],
- 'AwsStorageEnabled' => Serialize::booleanToString($options['awsStorageEnabled']),
- 'EncryptionEnabled' => Serialize::booleanToString($options['encryptionEnabled']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RecordingSettingsInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RecordingSettingsContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsInstance.php
deleted file mode 100644
index bdb666a..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsInstance.php
+++ /dev/null
@@ -1,126 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'awsCredentialsSid' => Values::array_get($payload, 'aws_credentials_sid'),
- 'awsS3Url' => Values::array_get($payload, 'aws_s3_url'),
- 'awsStorageEnabled' => Values::array_get($payload, 'aws_storage_enabled'),
- 'encryptionKeySid' => Values::array_get($payload, 'encryption_key_sid'),
- 'encryptionEnabled' => Values::array_get($payload, 'encryption_enabled'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\RecordingSettingsContext Context for this
- * RecordingSettingsInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RecordingSettingsContext($this->version);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RecordingSettingsInstance
- *
- * @return RecordingSettingsInstance Fetched RecordingSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Create a new RecordingSettingsInstance
- *
- * @param string $friendlyName Friendly name of the configuration to be shown
- * in the console
- * @param array|Options $options Optional Arguments
- * @return RecordingSettingsInstance Newly created RecordingSettingsInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($friendlyName, $options = array()) {
- return $this->proxy()->create($friendlyName, $options);
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RecordingSettingsInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsList.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsList.php
deleted file mode 100644
index b49bac1..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsList.php
+++ /dev/null
@@ -1,49 +0,0 @@
-solution = array();
- }
-
- /**
- * Constructs a RecordingSettingsContext
- *
- * @return \Twilio\Rest\Video\V1\RecordingSettingsContext
- */
- public function getContext() {
- return new RecordingSettingsContext($this->version);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RecordingSettingsList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsOptions.php
deleted file mode 100644
index 7f495ff..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsOptions.php
+++ /dev/null
@@ -1,141 +0,0 @@
-.s3-.amazonaws.com/recordings, where recordings is the path where you want recordings to be stored.
- * @param boolean $awsStorageEnabled true|false When set to true, all
- * Recordings will be written to the AwsS3Url
- * specified above. When set to false, all
- * Recordings will be stored in Twilio's
- * cloud.
- * @param boolean $encryptionEnabled true|false When set to true, all
- * Recordings will be stored encrypted.
- * @return CreateRecordingSettingsOptions Options builder
- */
- public static function create($awsCredentialsSid = Values::NONE, $encryptionKeySid = Values::NONE, $awsS3Url = Values::NONE, $awsStorageEnabled = Values::NONE, $encryptionEnabled = Values::NONE) {
- return new CreateRecordingSettingsOptions($awsCredentialsSid, $encryptionKeySid, $awsS3Url, $awsStorageEnabled, $encryptionEnabled);
- }
-}
-
-class CreateRecordingSettingsOptions extends Options {
- /**
- * @param string $awsCredentialsSid SID of the Stored Credential resource CRxx
- * @param string $encryptionKeySid SID of the Public Key resource CRxx
- * @param string $awsS3Url Identity of the external location where the
- * recordings should be stored. We only support
- * DNS-compliant URLs like
- * http://.s3-.amazonaws.com/recordings, where recordings is the path where you want recordings to be stored.
- * @param boolean $awsStorageEnabled true|false When set to true, all
- * Recordings will be written to the AwsS3Url
- * specified above. When set to false, all
- * Recordings will be stored in Twilio's
- * cloud.
- * @param boolean $encryptionEnabled true|false When set to true, all
- * Recordings will be stored encrypted.
- */
- public function __construct($awsCredentialsSid = Values::NONE, $encryptionKeySid = Values::NONE, $awsS3Url = Values::NONE, $awsStorageEnabled = Values::NONE, $encryptionEnabled = Values::NONE) {
- $this->options['awsCredentialsSid'] = $awsCredentialsSid;
- $this->options['encryptionKeySid'] = $encryptionKeySid;
- $this->options['awsS3Url'] = $awsS3Url;
- $this->options['awsStorageEnabled'] = $awsStorageEnabled;
- $this->options['encryptionEnabled'] = $encryptionEnabled;
- }
-
- /**
- * SID of the Stored Credential resource `CRxx`
- *
- * @param string $awsCredentialsSid SID of the Stored Credential resource CRxx
- * @return $this Fluent Builder
- */
- public function setAwsCredentialsSid($awsCredentialsSid) {
- $this->options['awsCredentialsSid'] = $awsCredentialsSid;
- return $this;
- }
-
- /**
- * SID of the Public Key resource `CRxx`
- *
- * @param string $encryptionKeySid SID of the Public Key resource CRxx
- * @return $this Fluent Builder
- */
- public function setEncryptionKeySid($encryptionKeySid) {
- $this->options['encryptionKeySid'] = $encryptionKeySid;
- return $this;
- }
-
- /**
- * Identity of the external location where the recordings should be stored. We only support DNS-compliant URLs like `http://.s3-.amazonaws.com/recordings`, where `recordings` is the path where you want recordings to be stored.
- *
- * @param string $awsS3Url Identity of the external location where the
- * recordings should be stored. We only support
- * DNS-compliant URLs like
- * http://.s3-.amazonaws.com/recordings, where recordings is the path where you want recordings to be stored.
- * @return $this Fluent Builder
- */
- public function setAwsS3Url($awsS3Url) {
- $this->options['awsS3Url'] = $awsS3Url;
- return $this;
- }
-
- /**
- * `true|false` When set to `true`, all Recordings will be written to the `AwsS3Url` specified above. When set to `false`, all Recordings will be stored in Twilio's cloud.
- *
- * @param boolean $awsStorageEnabled true|false When set to true, all
- * Recordings will be written to the AwsS3Url
- * specified above. When set to false, all
- * Recordings will be stored in Twilio's
- * cloud.
- * @return $this Fluent Builder
- */
- public function setAwsStorageEnabled($awsStorageEnabled) {
- $this->options['awsStorageEnabled'] = $awsStorageEnabled;
- return $this;
- }
-
- /**
- * `true|false` When set to `true`, all Recordings will be stored encrypted. Dafault value is `false`
- *
- * @param boolean $encryptionEnabled true|false When set to true, all
- * Recordings will be stored encrypted.
- * @return $this Fluent Builder
- */
- public function setEncryptionEnabled($encryptionEnabled) {
- $this->options['encryptionEnabled'] = $encryptionEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.CreateRecordingSettingsOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsPage.php b/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsPage.php
deleted file mode 100644
index d796baa..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RecordingSettingsPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RecordingSettingsInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RecordingSettingsPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackContext.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackContext.php
deleted file mode 100644
index 85dad98..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackContext.php
+++ /dev/null
@@ -1,73 +0,0 @@
-solution = array('roomSid' => $roomSid, 'participantSid' => $participantSid, 'sid' => $sid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Participants/' . rawurlencode($participantSid) . '/PublishedTracks/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a PublishedTrackInstance
- *
- * @return PublishedTrackInstance Fetched PublishedTrackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PublishedTrackInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['participantSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.PublishedTrackContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackInstance.php
deleted file mode 100644
index 67b3322..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackInstance.php
+++ /dev/null
@@ -1,129 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'participantSid' => Values::array_get($payload, 'participant_sid'),
- 'roomSid' => Values::array_get($payload, 'room_sid'),
- 'name' => Values::array_get($payload, 'name'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'kind' => Values::array_get($payload, 'kind'),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array(
- 'roomSid' => $roomSid,
- 'participantSid' => $participantSid,
- 'sid' => $sid ?: $this->properties['sid'],
- );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\Room\Participant\PublishedTrackContext Context
- * for
- * this
- * PublishedTrackInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new PublishedTrackContext(
- $this->version,
- $this->solution['roomSid'],
- $this->solution['participantSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a PublishedTrackInstance
- *
- * @return PublishedTrackInstance Fetched PublishedTrackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.PublishedTrackInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackList.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackList.php
deleted file mode 100644
index ff576e4..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackList.php
+++ /dev/null
@@ -1,145 +0,0 @@
-solution = array('roomSid' => $roomSid, 'participantSid' => $participantSid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Participants/' . rawurlencode($participantSid) . '/PublishedTracks';
- }
-
- /**
- * Streams PublishedTrackInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads PublishedTrackInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return PublishedTrackInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of PublishedTrackInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of PublishedTrackInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new PublishedTrackPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of PublishedTrackInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of PublishedTrackInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new PublishedTrackPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a PublishedTrackContext
- *
- * @param string $sid A 34 character string that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Video\V1\Room\Participant\PublishedTrackContext
- */
- public function getContext($sid) {
- return new PublishedTrackContext(
- $this->version,
- $this->solution['roomSid'],
- $this->solution['participantSid'],
- $sid
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.PublishedTrackList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackPage.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackPage.php
deleted file mode 100644
index 75cb574..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new PublishedTrackInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['participantSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.PublishedTrackPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackInstance.php
deleted file mode 100644
index 1c9d3da..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackInstance.php
+++ /dev/null
@@ -1,86 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'roomSid' => Values::array_get($payload, 'room_sid'),
- 'name' => Values::array_get($payload, 'name'),
- 'publisherSid' => Values::array_get($payload, 'publisher_sid'),
- 'subscriberSid' => Values::array_get($payload, 'subscriber_sid'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'enabled' => Values::array_get($payload, 'enabled'),
- 'kind' => Values::array_get($payload, 'kind'),
- );
-
- $this->solution = array('roomSid' => $roomSid, 'subscriberSid' => $subscriberSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.SubscribedTrackInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackList.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackList.php
deleted file mode 100644
index 5a1aa3a..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackList.php
+++ /dev/null
@@ -1,171 +0,0 @@
-solution = array('roomSid' => $roomSid, 'subscriberSid' => $subscriberSid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Participants/' . rawurlencode($subscriberSid) . '/SubscribedTracks';
- }
-
- /**
- * Streams SubscribedTrackInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SubscribedTrackInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SubscribedTrackInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SubscribedTrackInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SubscribedTrackInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'Track' => $options['track'],
- 'Publisher' => $options['publisher'],
- 'Kind' => $options['kind'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SubscribedTrackPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SubscribedTrackInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SubscribedTrackInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SubscribedTrackPage($this->version, $response, $this->solution);
- }
-
- /**
- * Update the SubscribedTrackInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SubscribedTrackInstance Updated SubscribedTrackInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Track' => $options['track'],
- 'Publisher' => $options['publisher'],
- 'Kind' => $options['kind'],
- 'Status' => $options['status'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SubscribedTrackInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['subscriberSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.SubscribedTrackList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.php
deleted file mode 100644
index 73730af..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.php
+++ /dev/null
@@ -1,199 +0,0 @@
-options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- $this->options['track'] = $track;
- $this->options['publisher'] = $publisher;
- $this->options['kind'] = $kind;
- }
-
- /**
- * The date_created_after
- *
- * @param \DateTime $dateCreatedAfter The date_created_after
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * The date_created_before
- *
- * @param \DateTime $dateCreatedBefore The date_created_before
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * The track
- *
- * @param string $track The track
- * @return $this Fluent Builder
- */
- public function setTrack($track) {
- $this->options['track'] = $track;
- return $this;
- }
-
- /**
- * The publisher
- *
- * @param string $publisher The publisher
- * @return $this Fluent Builder
- */
- public function setPublisher($publisher) {
- $this->options['publisher'] = $publisher;
- return $this;
- }
-
- /**
- * The kind
- *
- * @param string $kind The kind
- * @return $this Fluent Builder
- */
- public function setKind($kind) {
- $this->options['kind'] = $kind;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadSubscribedTrackOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSubscribedTrackOptions extends Options {
- /**
- * @param string $track The track
- * @param string $publisher The publisher
- * @param string $kind The kind
- * @param string $status The status
- */
- public function __construct($track = Values::NONE, $publisher = Values::NONE, $kind = Values::NONE, $status = Values::NONE) {
- $this->options['track'] = $track;
- $this->options['publisher'] = $publisher;
- $this->options['kind'] = $kind;
- $this->options['status'] = $status;
- }
-
- /**
- * The track
- *
- * @param string $track The track
- * @return $this Fluent Builder
- */
- public function setTrack($track) {
- $this->options['track'] = $track;
- return $this;
- }
-
- /**
- * The publisher
- *
- * @param string $publisher The publisher
- * @return $this Fluent Builder
- */
- public function setPublisher($publisher) {
- $this->options['publisher'] = $publisher;
- return $this;
- }
-
- /**
- * The kind
- *
- * @param string $kind The kind
- * @return $this Fluent Builder
- */
- public function setKind($kind) {
- $this->options['kind'] = $kind;
- return $this;
- }
-
- /**
- * The status
- *
- * @param string $status The status
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.UpdateSubscribedTrackOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackPage.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackPage.php
deleted file mode 100644
index 75f9822..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackPage.php
+++ /dev/null
@@ -1,39 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SubscribedTrackInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['subscriberSid']
- );
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.SubscribedTrackPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantContext.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantContext.php
deleted file mode 100644
index b80a54d..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantContext.php
+++ /dev/null
@@ -1,175 +0,0 @@
-solution = array('roomSid' => $roomSid, 'sid' => $sid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Participants/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a ParticipantInstance
- *
- * @return ParticipantInstance Fetched ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Update the ParticipantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ParticipantInstance Updated ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array('Status' => $options['status'], ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new ParticipantInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Access the publishedTracks
- *
- * @return \Twilio\Rest\Video\V1\Room\Participant\PublishedTrackList
- */
- protected function getPublishedTracks() {
- if (!$this->_publishedTracks) {
- $this->_publishedTracks = new PublishedTrackList(
- $this->version,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_publishedTracks;
- }
-
- /**
- * Access the subscribedTracks
- *
- * @return \Twilio\Rest\Video\V1\Room\Participant\SubscribedTrackList
- */
- protected function getSubscribedTracks() {
- if (!$this->_subscribedTracks) {
- $this->_subscribedTracks = new SubscribedTrackList(
- $this->version,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- return $this->_subscribedTracks;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.ParticipantContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantInstance.php
deleted file mode 100644
index d6a3133..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantInstance.php
+++ /dev/null
@@ -1,159 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'roomSid' => Values::array_get($payload, 'room_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'identity' => Values::array_get($payload, 'identity'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'startTime' => Deserialize::dateTime(Values::array_get($payload, 'start_time')),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('roomSid' => $roomSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\Room\ParticipantContext Context for this
- * ParticipantInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new ParticipantContext(
- $this->version,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a ParticipantInstance
- *
- * @return ParticipantInstance Fetched ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the ParticipantInstance
- *
- * @param array|Options $options Optional Arguments
- * @return ParticipantInstance Updated ParticipantInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the publishedTracks
- *
- * @return \Twilio\Rest\Video\V1\Room\Participant\PublishedTrackList
- */
- protected function getPublishedTracks() {
- return $this->proxy()->publishedTracks;
- }
-
- /**
- * Access the subscribedTracks
- *
- * @return \Twilio\Rest\Video\V1\Room\Participant\SubscribedTrackList
- */
- protected function getSubscribedTracks() {
- return $this->proxy()->subscribedTracks;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.ParticipantInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantList.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantList.php
deleted file mode 100644
index 4681f00..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantList.php
+++ /dev/null
@@ -1,148 +0,0 @@
-solution = array('roomSid' => $roomSid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Participants';
- }
-
- /**
- * Streams ParticipantInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads ParticipantInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return ParticipantInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of ParticipantInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of ParticipantInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'Identity' => $options['identity'],
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new ParticipantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of ParticipantInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of ParticipantInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new ParticipantPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a ParticipantContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Video\V1\Room\ParticipantContext
- */
- public function getContext($sid) {
- return new ParticipantContext($this->version, $this->solution['roomSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.ParticipantList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantOptions.php
deleted file mode 100644
index fdd8c94..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantOptions.php
+++ /dev/null
@@ -1,158 +0,0 @@
-options['status'] = $status;
- $this->options['identity'] = $identity;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- }
-
- /**
- * Only show Participants with the given Status. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned.
- *
- * @param string $status Only show Participants with the given Status.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Only show Participants that connected to the Room using the provided Identity.
- *
- * @param string $identity Only show Participants that connected to the Room
- * using the provided Identity.
- * @return $this Fluent Builder
- */
- public function setIdentity($identity) {
- $this->options['identity'] = $identity;
- return $this;
- }
-
- /**
- * Only show Participants that started after this date, given as an [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC).
- *
- * @param \DateTime $dateCreatedAfter Only show Participants that started after
- * this date, given as an UTC ISO 8601
- * Timestamp.
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show Participants that started before this date, given as an [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC).
- *
- * @param \DateTime $dateCreatedBefore Only show Participants that started
- * before this date, given as an UTC ISO
- * 8601 Timestamp.
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateParticipantOptions extends Options {
- /**
- * @param string $status Set to disconnected to remove participant.
- */
- public function __construct($status = Values::NONE) {
- $this->options['status'] = $status;
- }
-
- /**
- * Set to `disconnected` to remove participant.
- *
- * @param string $status Set to disconnected to remove participant.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.UpdateParticipantOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantPage.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantPage.php
deleted file mode 100644
index d0eae33..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/ParticipantPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new ParticipantInstance($this->version, $payload, $this->solution['roomSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.ParticipantPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingContext.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingContext.php
deleted file mode 100644
index 6363123..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingContext.php
+++ /dev/null
@@ -1,79 +0,0 @@
-solution = array('roomSid' => $roomSid, 'sid' => $sid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Recordings/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RoomRecordingInstance
- *
- * @return RoomRecordingInstance Fetched RoomRecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoomRecordingInstance(
- $this->version,
- $payload,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- /**
- * Deletes the RoomRecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RoomRecordingContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingInstance.php
deleted file mode 100644
index b9c9e0e..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingInstance.php
+++ /dev/null
@@ -1,143 +0,0 @@
-properties = array(
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'sid' => Values::array_get($payload, 'sid'),
- 'sourceSid' => Values::array_get($payload, 'source_sid'),
- 'size' => Values::array_get($payload, 'size'),
- 'url' => Values::array_get($payload, 'url'),
- 'type' => Values::array_get($payload, 'type'),
- 'duration' => Values::array_get($payload, 'duration'),
- 'containerFormat' => Values::array_get($payload, 'container_format'),
- 'codec' => Values::array_get($payload, 'codec'),
- 'groupingSids' => Values::array_get($payload, 'grouping_sids'),
- 'trackName' => Values::array_get($payload, 'track_name'),
- 'offset' => Values::array_get($payload, 'offset'),
- 'roomSid' => Values::array_get($payload, 'room_sid'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('roomSid' => $roomSid, 'sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\Room\RoomRecordingContext Context for this
- * RoomRecordingInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RoomRecordingContext(
- $this->version,
- $this->solution['roomSid'],
- $this->solution['sid']
- );
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RoomRecordingInstance
- *
- * @return RoomRecordingInstance Fetched RoomRecordingInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Deletes the RoomRecordingInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RoomRecordingInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingList.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingList.php
deleted file mode 100644
index 34902bb..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingList.php
+++ /dev/null
@@ -1,147 +0,0 @@
-solution = array('roomSid' => $roomSid, );
-
- $this->uri = '/Rooms/' . rawurlencode($roomSid) . '/Recordings';
- }
-
- /**
- * Streams RoomRecordingInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RoomRecordingInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RoomRecordingInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RoomRecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RoomRecordingInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'SourceSid' => $options['sourceSid'],
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoomRecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RoomRecordingInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RoomRecordingInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RoomRecordingPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RoomRecordingContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Video\V1\Room\RoomRecordingContext
- */
- public function getContext($sid) {
- return new RoomRecordingContext($this->version, $this->solution['roomSid'], $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RoomRecordingList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.php
deleted file mode 100644
index aab40a1..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.php
+++ /dev/null
@@ -1,100 +0,0 @@
-options['status'] = $status;
- $this->options['sourceSid'] = $sourceSid;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- }
-
- /**
- * The status
- *
- * @param string $status The status
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * The source_sid
- *
- * @param string $sourceSid The source_sid
- * @return $this Fluent Builder
- */
- public function setSourceSid($sourceSid) {
- $this->options['sourceSid'] = $sourceSid;
- return $this;
- }
-
- /**
- * The date_created_after
- *
- * @param \DateTime $dateCreatedAfter The date_created_after
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * The date_created_before
- *
- * @param \DateTime $dateCreatedBefore The date_created_before
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadRoomRecordingOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingPage.php b/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingPage.php
deleted file mode 100644
index bab477d..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/Room/RoomRecordingPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RoomRecordingInstance($this->version, $payload, $this->solution['roomSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RoomRecordingPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RoomContext.php b/public/twilio-php/Twilio/Rest/Video/V1/RoomContext.php
deleted file mode 100644
index 2086eda..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RoomContext.php
+++ /dev/null
@@ -1,155 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Rooms/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RoomInstance
- *
- * @return RoomInstance Fetched RoomInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoomInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the RoomInstance
- *
- * @param string $status Set to completed to end the Room.
- * @return RoomInstance Updated RoomInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($status) {
- $data = Values::of(array('Status' => $status, ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoomInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Video\V1\Room\RoomRecordingList
- */
- protected function getRecordings() {
- if (!$this->_recordings) {
- $this->_recordings = new RoomRecordingList($this->version, $this->solution['sid']);
- }
-
- return $this->_recordings;
- }
-
- /**
- * Access the participants
- *
- * @return \Twilio\Rest\Video\V1\Room\ParticipantList
- */
- protected function getParticipants() {
- if (!$this->_participants) {
- $this->_participants = new ParticipantList($this->version, $this->solution['sid']);
- }
-
- return $this->_participants;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RoomContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RoomInstance.php b/public/twilio-php/Twilio/Rest/Video/V1/RoomInstance.php
deleted file mode 100644
index 08a2196..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RoomInstance.php
+++ /dev/null
@@ -1,164 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'status' => Values::array_get($payload, 'status'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'enableTurn' => Values::array_get($payload, 'enable_turn'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'statusCallback' => Values::array_get($payload, 'status_callback'),
- 'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
- 'endTime' => Deserialize::dateTime(Values::array_get($payload, 'end_time')),
- 'duration' => Values::array_get($payload, 'duration'),
- 'type' => Values::array_get($payload, 'type'),
- 'maxParticipants' => Values::array_get($payload, 'max_participants'),
- 'recordParticipantsOnConnect' => Values::array_get($payload, 'record_participants_on_connect'),
- 'videoCodecs' => Values::array_get($payload, 'video_codecs'),
- 'mediaRegion' => Values::array_get($payload, 'media_region'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Video\V1\RoomContext Context for this RoomInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RoomContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RoomInstance
- *
- * @return RoomInstance Fetched RoomInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the RoomInstance
- *
- * @param string $status Set to completed to end the Room.
- * @return RoomInstance Updated RoomInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($status) {
- return $this->proxy()->update($status);
- }
-
- /**
- * Access the recordings
- *
- * @return \Twilio\Rest\Video\V1\Room\RoomRecordingList
- */
- protected function getRecordings() {
- return $this->proxy()->recordings;
- }
-
- /**
- * Access the participants
- *
- * @return \Twilio\Rest\Video\V1\Room\ParticipantList
- */
- protected function getParticipants() {
- return $this->proxy()->participants;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Video.V1.RoomInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RoomList.php b/public/twilio-php/Twilio/Rest/Video/V1/RoomList.php
deleted file mode 100644
index b63df98..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RoomList.php
+++ /dev/null
@@ -1,179 +0,0 @@
-solution = array();
-
- $this->uri = '/Rooms';
- }
-
- /**
- * Create a new RoomInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RoomInstance Newly created RoomInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'EnableTurn' => Serialize::booleanToString($options['enableTurn']),
- 'Type' => $options['type'],
- 'UniqueName' => $options['uniqueName'],
- 'StatusCallback' => $options['statusCallback'],
- 'StatusCallbackMethod' => $options['statusCallbackMethod'],
- 'MaxParticipants' => $options['maxParticipants'],
- 'RecordParticipantsOnConnect' => Serialize::booleanToString($options['recordParticipantsOnConnect']),
- 'VideoCodecs' => Serialize::map($options['videoCodecs'], function($e) { return $e; }),
- 'MediaRegion' => $options['mediaRegion'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RoomInstance($this->version, $payload);
- }
-
- /**
- * Streams RoomInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RoomInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RoomInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RoomInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RoomInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'UniqueName' => $options['uniqueName'],
- 'DateCreatedAfter' => Serialize::iso8601DateTime($options['dateCreatedAfter']),
- 'DateCreatedBefore' => Serialize::iso8601DateTime($options['dateCreatedBefore']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RoomPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RoomInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RoomInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RoomPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a RoomContext
- *
- * @param string $sid The Room Sid or name that uniquely identifies this
- * resource.
- * @return \Twilio\Rest\Video\V1\RoomContext
- */
- public function getContext($sid) {
- return new RoomContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RoomList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RoomOptions.php b/public/twilio-php/Twilio/Rest/Video/V1/RoomOptions.php
deleted file mode 100644
index ebaa130..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RoomOptions.php
+++ /dev/null
@@ -1,273 +0,0 @@
-options['enableTurn'] = $enableTurn;
- $this->options['type'] = $type;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['statusCallback'] = $statusCallback;
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- $this->options['maxParticipants'] = $maxParticipants;
- $this->options['recordParticipantsOnConnect'] = $recordParticipantsOnConnect;
- $this->options['videoCodecs'] = $videoCodecs;
- $this->options['mediaRegion'] = $mediaRegion;
- }
-
- /**
- * Use Twilio Network Traversal for TURN service. Defaults to true. Only applicable to Rooms with type `peer-to-peer`.
- *
- * @param boolean $enableTurn Use Twilio Network Traversal for TURN service.
- * @return $this Fluent Builder
- */
- public function setEnableTurn($enableTurn) {
- $this->options['enableTurn'] = $enableTurn;
- return $this;
- }
-
- /**
- * Type of room, either `peer-to-peer`, `group-small` or `group`. Will be `group` by default.
- *
- * @param string $type Type of room, either peer-to-peer, group-small or group.
- * @return $this Fluent Builder
- */
- public function setType($type) {
- $this->options['type'] = $type;
- return $this;
- }
-
- /**
- * Name of the Room. This is unique for `in-progress` rooms. If not provided, Room name will be set to the Room Sid.
- *
- * @param string $uniqueName Name of the Room.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A URL that Twilio sends asynchronous webhook requests to on every room event. If not provided, status callback events will not be dispatched.
- *
- * @param string $statusCallback A URL that Twilio sends asynchronous webhook
- * requests to on every room event.
- * @return $this Fluent Builder
- */
- public function setStatusCallback($statusCallback) {
- $this->options['statusCallback'] = $statusCallback;
- return $this;
- }
-
- /**
- * HTTP method Twilio should use when requesting the above URL. Defaults to `POST`.
- *
- * @param string $statusCallbackMethod HTTP method Twilio should use when
- * requesting the above URL.
- * @return $this Fluent Builder
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- $this->options['statusCallbackMethod'] = $statusCallbackMethod;
- return $this;
- }
-
- /**
- * Maximum number of Participants in the Room. Peer-to-peer rooms can have a maximum of 10 Participants. Small Group rooms can have a max of 4 Participants. Group rooms can have a max of 50 Participants
- *
- * @param integer $maxParticipants Maximum number of Participants in the Room.
- * @return $this Fluent Builder
- */
- public function setMaxParticipants($maxParticipants) {
- $this->options['maxParticipants'] = $maxParticipants;
- return $this;
- }
-
- /**
- * Start Participant recording when connected. ***This feature is not available in `peer-to-peer` rooms.***
- *
- * @param boolean $recordParticipantsOnConnect Start Participant recording when
- * connected.
- * @return $this Fluent Builder
- */
- public function setRecordParticipantsOnConnect($recordParticipantsOnConnect) {
- $this->options['recordParticipantsOnConnect'] = $recordParticipantsOnConnect;
- return $this;
- }
-
- /**
- * An array of video codecs supported when publishing a Track in the Room. `VP8` and `H264` codecs are supported. ***This feature is not available in `peer-to-peer` rooms***
- *
- * @param string $videoCodecs An array of video codecs supported when
- * publishing a Track in the Room.
- * @return $this Fluent Builder
- */
- public function setVideoCodecs($videoCodecs) {
- $this->options['videoCodecs'] = $videoCodecs;
- return $this;
- }
-
- /**
- * Region for the media server in Group Rooms. Default region is `us1`. See the list of [available Media Regions.](https://www.twilio.com/docs/api/video/ip-address-whitelisting#group-rooms-media-servers)***This feature is not available in `peer-to-peer` rooms.***
- *
- * @param string $mediaRegion Region for the media server in Group Rooms.
- * @return $this Fluent Builder
- */
- public function setMediaRegion($mediaRegion) {
- $this->options['mediaRegion'] = $mediaRegion;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.CreateRoomOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class ReadRoomOptions extends Options {
- /**
- * @param string $status Only show Rooms with the given status.
- * @param string $uniqueName Only show Rooms with the provided Name.
- * @param \DateTime $dateCreatedAfter Only show Rooms that started on or after
- * this date, given as YYYY-MM-DD.
- * @param \DateTime $dateCreatedBefore Only show Rooms that started before this
- * date, given as YYYY-MM-DD.
- */
- public function __construct($status = Values::NONE, $uniqueName = Values::NONE, $dateCreatedAfter = Values::NONE, $dateCreatedBefore = Values::NONE) {
- $this->options['status'] = $status;
- $this->options['uniqueName'] = $uniqueName;
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- }
-
- /**
- * Only show Rooms with the given status.
- *
- * @param string $status Only show Rooms with the given status.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Only show Rooms with the provided Name.
- *
- * @param string $uniqueName Only show Rooms with the provided Name.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * Only show Rooms that started on or after this date, given as `YYYY-MM-DD`.
- *
- * @param \DateTime $dateCreatedAfter Only show Rooms that started on or after
- * this date, given as YYYY-MM-DD.
- * @return $this Fluent Builder
- */
- public function setDateCreatedAfter($dateCreatedAfter) {
- $this->options['dateCreatedAfter'] = $dateCreatedAfter;
- return $this;
- }
-
- /**
- * Only show Rooms that started before this date, given as `YYYY-MM-DD`.
- *
- * @param \DateTime $dateCreatedBefore Only show Rooms that started before this
- * date, given as YYYY-MM-DD.
- * @return $this Fluent Builder
- */
- public function setDateCreatedBefore($dateCreatedBefore) {
- $this->options['dateCreatedBefore'] = $dateCreatedBefore;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Video.V1.ReadRoomOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Video/V1/RoomPage.php b/public/twilio-php/Twilio/Rest/Video/V1/RoomPage.php
deleted file mode 100644
index e9bdf8f..0000000
--- a/public/twilio-php/Twilio/Rest/Video/V1/RoomPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RoomInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Video.V1.RoomPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice.php b/public/twilio-php/Twilio/Rest/Voice.php
deleted file mode 100644
index 0d3d702..0000000
--- a/public/twilio-php/Twilio/Rest/Voice.php
+++ /dev/null
@@ -1,94 +0,0 @@
-baseUrl = 'https://voice.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Voice\V1 Version v1 of voice
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Voice\V1\VoicePermissionList
- */
- protected function getVoicePermissions() {
- return $this->v1->voicePermissions;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1.php b/public/twilio-php/Twilio/Rest/Voice/V1.php
deleted file mode 100644
index be48dcc..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1.php
+++ /dev/null
@@ -1,85 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Voice\V1\VoicePermissionList
- */
- protected function getVoicePermissions() {
- if (!$this->_voicePermissions) {
- $this->_voicePermissions = new VoicePermissionList($this);
- }
- return $this->_voicePermissions;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateInstance.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateInstance.php
deleted file mode 100644
index 15ef446..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateInstance.php
+++ /dev/null
@@ -1,71 +0,0 @@
-properties = array(
- 'updateCount' => Values::array_get($payload, 'update_count'),
- 'updateRequest' => Values::array_get($payload, 'update_request'),
- );
-
- $this->solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.BulkCountryUpdateInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateList.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateList.php
deleted file mode 100644
index fa25fc3..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdateList.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array();
-
- $this->uri = '/DialingPermissions/BulkCountryUpdates';
- }
-
- /**
- * Create a new BulkCountryUpdateInstance
- *
- * @param string $updateRequest URL encoded JSON array of update objects
- * @return BulkCountryUpdateInstance Newly created BulkCountryUpdateInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($updateRequest) {
- $data = Values::of(array('UpdateRequest' => $updateRequest, ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new BulkCountryUpdateInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.BulkCountryUpdateList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdatePage.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdatePage.php
deleted file mode 100644
index 57a753c..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/BulkCountryUpdatePage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new BulkCountryUpdateInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.BulkCountryUpdatePage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixInstance.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixInstance.php
deleted file mode 100644
index f8035b9..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixInstance.php
+++ /dev/null
@@ -1,68 +0,0 @@
-properties = array('prefix' => Values::array_get($payload, 'prefix'), );
-
- $this->solution = array('isoCode' => $isoCode, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.HighriskSpecialPrefixInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixList.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixList.php
deleted file mode 100644
index 20a7c0a..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixList.php
+++ /dev/null
@@ -1,132 +0,0 @@
-solution = array('isoCode' => $isoCode, );
-
- $this->uri = '/DialingPermissions/Countries/' . rawurlencode($isoCode) . '/HighRiskSpecialPrefixes';
- }
-
- /**
- * Streams HighriskSpecialPrefixInstance records from the API as a generator
- * stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads HighriskSpecialPrefixInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return HighriskSpecialPrefixInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of HighriskSpecialPrefixInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of HighriskSpecialPrefixInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new HighriskSpecialPrefixPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of HighriskSpecialPrefixInstance records from the
- * API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of HighriskSpecialPrefixInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new HighriskSpecialPrefixPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.HighriskSpecialPrefixList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixPage.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixPage.php
deleted file mode 100644
index b86d2f2..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/Country/HighriskSpecialPrefixPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new HighriskSpecialPrefixInstance($this->version, $payload, $this->solution['isoCode']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.HighriskSpecialPrefixPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryContext.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryContext.php
deleted file mode 100644
index 28fad60..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryContext.php
+++ /dev/null
@@ -1,121 +0,0 @@
-solution = array('isoCode' => $isoCode, );
-
- $this->uri = '/DialingPermissions/Countries/' . rawurlencode($isoCode) . '';
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryInstance($this->version, $payload, $this->solution['isoCode']);
- }
-
- /**
- * Access the highriskSpecialPrefixes
- *
- * @return \Twilio\Rest\Voice\V1\VoicePermission\Country\HighriskSpecialPrefixList
- */
- protected function getHighriskSpecialPrefixes() {
- if (!$this->_highriskSpecialPrefixes) {
- $this->_highriskSpecialPrefixes = new HighriskSpecialPrefixList(
- $this->version,
- $this->solution['isoCode']
- );
- }
-
- return $this->_highriskSpecialPrefixes;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Voice.V1.CountryContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryInstance.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryInstance.php
deleted file mode 100644
index dd85d32..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryInstance.php
+++ /dev/null
@@ -1,127 +0,0 @@
-properties = array(
- 'isoCode' => Values::array_get($payload, 'iso_code'),
- 'name' => Values::array_get($payload, 'name'),
- 'continent' => Values::array_get($payload, 'continent'),
- 'countryCodes' => Values::array_get($payload, 'country_codes'),
- 'lowRiskNumbersEnabled' => Values::array_get($payload, 'low_risk_numbers_enabled'),
- 'highRiskSpecialNumbersEnabled' => Values::array_get($payload, 'high_risk_special_numbers_enabled'),
- 'highRiskTollfraudNumbersEnabled' => Values::array_get($payload, 'high_risk_tollfraud_numbers_enabled'),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- );
-
- $this->solution = array('isoCode' => $isoCode ?: $this->properties['isoCode'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Voice\V1\VoicePermission\CountryContext Context for
- * this
- * CountryInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CountryContext($this->version, $this->solution['isoCode']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CountryInstance
- *
- * @return CountryInstance Fetched CountryInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Access the highriskSpecialPrefixes
- *
- * @return \Twilio\Rest\Voice\V1\VoicePermission\Country\HighriskSpecialPrefixList
- */
- protected function getHighriskSpecialPrefixes() {
- return $this->proxy()->highriskSpecialPrefixes;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Voice.V1.CountryInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryList.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryList.php
deleted file mode 100644
index 3c65c59..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryList.php
+++ /dev/null
@@ -1,151 +0,0 @@
-solution = array();
-
- $this->uri = '/DialingPermissions/Countries';
- }
-
- /**
- * Streams CountryInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CountryInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CountryInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CountryInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'IsoCode' => $options['isoCode'],
- 'Continent' => $options['continent'],
- 'CountryCode' => $options['countryCode'],
- 'LowRiskNumbersEnabled' => Serialize::booleanToString($options['lowRiskNumbersEnabled']),
- 'HighRiskSpecialNumbersEnabled' => Serialize::booleanToString($options['highRiskSpecialNumbersEnabled']),
- 'HighRiskTollfraudNumbersEnabled' => Serialize::booleanToString($options['highRiskTollfraudNumbersEnabled']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CountryInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CountryInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CountryPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a CountryContext
- *
- * @param string $isoCode The ISO country code
- * @return \Twilio\Rest\Voice\V1\VoicePermission\CountryContext
- */
- public function getContext($isoCode) {
- return new CountryContext($this->version, $isoCode);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.CountryList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryOptions.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryOptions.php
deleted file mode 100644
index ef7276a..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryOptions.php
+++ /dev/null
@@ -1,167 +0,0 @@
-options['isoCode'] = $isoCode;
- $this->options['continent'] = $continent;
- $this->options['countryCode'] = $countryCode;
- $this->options['lowRiskNumbersEnabled'] = $lowRiskNumbersEnabled;
- $this->options['highRiskSpecialNumbersEnabled'] = $highRiskSpecialNumbersEnabled;
- $this->options['highRiskTollfraudNumbersEnabled'] = $highRiskTollfraudNumbersEnabled;
- }
-
- /**
- * Filter to retrieve the country permissions by specifying the [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
- *
- * @param string $isoCode Filter to retrieve the country permissions by
- * specifying the ISO country code
- * @return $this Fluent Builder
- */
- public function setIsoCode($isoCode) {
- $this->options['isoCode'] = $isoCode;
- return $this;
- }
-
- /**
- * Filter to retrieve the country permissions by specifying the continent
- *
- * @param string $continent Filter to retrieve the country permissions by
- * specifying the continent
- * @return $this Fluent Builder
- */
- public function setContinent($continent) {
- $this->options['continent'] = $continent;
- return $this;
- }
-
- /**
- * Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
- *
- * @param string $countryCode country codes
- * @return $this Fluent Builder
- */
- public function setCountryCode($countryCode) {
- $this->options['countryCode'] = $countryCode;
- return $this;
- }
-
- /**
- * Filter to retrieve the country permissions with dialing to low-risk numbers enabled set to true / false
- *
- * @param boolean $lowRiskNumbersEnabled Filter to retrieve the country
- * permissions with dialing to low-risk
- * numbers enabled set to true / false
- * @return $this Fluent Builder
- */
- public function setLowRiskNumbersEnabled($lowRiskNumbersEnabled) {
- $this->options['lowRiskNumbersEnabled'] = $lowRiskNumbersEnabled;
- return $this;
- }
-
- /**
- * Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled set to true / false
- *
- * @param boolean $highRiskSpecialNumbersEnabled Filter to retrieve the country
- * permissions with dialing to
- * high-risk special service
- * numbers enabled set to true /
- * false
- * @return $this Fluent Builder
- */
- public function setHighRiskSpecialNumbersEnabled($highRiskSpecialNumbersEnabled) {
- $this->options['highRiskSpecialNumbersEnabled'] = $highRiskSpecialNumbersEnabled;
- return $this;
- }
-
- /**
- * Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled set to true / false
- *
- * @param boolean $highRiskTollfraudNumbersEnabled Filter to retrieve the
- * country permissions with
- * dialing to high-risk toll
- * fraud numbers enabled set to
- * true / false
- * @return $this Fluent Builder
- */
- public function setHighRiskTollfraudNumbersEnabled($highRiskTollfraudNumbersEnabled) {
- $this->options['highRiskTollfraudNumbersEnabled'] = $highRiskTollfraudNumbersEnabled;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Voice.V1.ReadCountryOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryPage.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryPage.php
deleted file mode 100644
index 7884b83..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermission/CountryPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CountryInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.CountryPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionInstance.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionInstance.php
deleted file mode 100644
index 891b3b2..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionInstance.php
+++ /dev/null
@@ -1,62 +0,0 @@
-solution = array();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.VoicePermissionInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionList.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionList.php
deleted file mode 100644
index 51693c4..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionList.php
+++ /dev/null
@@ -1,105 +0,0 @@
-solution = array();
- }
-
- /**
- * Access the countries
- */
- protected function getCountries() {
- if (!$this->_countries) {
- $this->_countries = new CountryList($this->version);
- }
-
- return $this->_countries;
- }
-
- /**
- * Access the bulkCountryUpdates
- */
- protected function getBulkCountryUpdates() {
- if (!$this->_bulkCountryUpdates) {
- $this->_bulkCountryUpdates = new BulkCountryUpdateList($this->version);
- }
-
- return $this->_bulkCountryUpdates;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.VoicePermissionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionPage.php b/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionPage.php
deleted file mode 100644
index 074e8d0..0000000
--- a/public/twilio-php/Twilio/Rest/Voice/V1/VoicePermissionPage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new VoicePermissionInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Voice.V1.VoicePermissionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless.php b/public/twilio-php/Twilio/Rest/Wireless.php
deleted file mode 100644
index 9bbcc21..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless.php
+++ /dev/null
@@ -1,137 +0,0 @@
-baseUrl = 'https://wireless.twilio.com';
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1 Version v1 of wireless
- */
- protected function getV1() {
- if (!$this->_v1) {
- $this->_v1 = new V1($this);
- }
- return $this->_v1;
- }
-
- /**
- * Magic getter to lazy load version
- *
- * @param string $name Version to return
- * @return \Twilio\Version The requested version
- * @throws \Twilio\Exceptions\TwilioException For unknown versions
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown version ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $method = 'context' . ucfirst($name);
- if (method_exists($this, $method)) {
- return call_user_func_array(array($this, $method), $arguments);
- }
-
- throw new TwilioException('Unknown context ' . $name);
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1\CommandList
- */
- protected function getCommands() {
- return $this->v1->commands;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Wireless\V1\CommandContext
- */
- protected function contextCommands($sid) {
- return $this->v1->commands($sid);
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1\RatePlanList
- */
- protected function getRatePlans() {
- return $this->v1->ratePlans;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Wireless\V1\RatePlanContext
- */
- protected function contextRatePlans($sid) {
- return $this->v1->ratePlans($sid);
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1\SimList
- */
- protected function getSims() {
- return $this->v1->sims;
- }
-
- /**
- * @param string $sid The sid
- * @return \Twilio\Rest\Wireless\V1\SimContext
- */
- protected function contextSims($sid) {
- return $this->v1->sims($sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1.php b/public/twilio-php/Twilio/Rest/Wireless/V1.php
deleted file mode 100644
index 2e6179d..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1.php
+++ /dev/null
@@ -1,114 +0,0 @@
-version = 'v1';
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1\CommandList
- */
- protected function getCommands() {
- if (!$this->_commands) {
- $this->_commands = new CommandList($this);
- }
- return $this->_commands;
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1\RatePlanList
- */
- protected function getRatePlans() {
- if (!$this->_ratePlans) {
- $this->_ratePlans = new RatePlanList($this);
- }
- return $this->_ratePlans;
- }
-
- /**
- * @return \Twilio\Rest\Wireless\V1\SimList
- */
- protected function getSims() {
- if (!$this->_sims) {
- $this->_sims = new SimList($this);
- }
- return $this->_sims;
- }
-
- /**
- * Magic getter to lazy load root resources
- *
- * @param string $name Resource to return
- * @return \Twilio\ListResource The requested resource
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __get($name) {
- $method = 'get' . ucfirst($name);
- if (method_exists($this, $method)) {
- return $this->$method();
- }
-
- throw new TwilioException('Unknown resource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandContext.php b/public/twilio-php/Twilio/Rest/Wireless/V1/CommandContext.php
deleted file mode 100644
index 80876dc..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandContext.php
+++ /dev/null
@@ -1,63 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Commands/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a CommandInstance
- *
- * @return CommandInstance Fetched CommandInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CommandInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Wireless.V1.CommandContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandInstance.php b/public/twilio-php/Twilio/Rest/Wireless/V1/CommandInstance.php
deleted file mode 100644
index 2e1bd56..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandInstance.php
+++ /dev/null
@@ -1,120 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'simSid' => Values::array_get($payload, 'sim_sid'),
- 'command' => Values::array_get($payload, 'command'),
- 'commandMode' => Values::array_get($payload, 'command_mode'),
- 'transport' => Values::array_get($payload, 'transport'),
- 'deliveryReceiptRequested' => Values::array_get($payload, 'delivery_receipt_requested'),
- 'status' => Values::array_get($payload, 'status'),
- 'direction' => Values::array_get($payload, 'direction'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Wireless\V1\CommandContext Context for this
- * CommandInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new CommandContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a CommandInstance
- *
- * @return CommandInstance Fetched CommandInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Wireless.V1.CommandInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandList.php b/public/twilio-php/Twilio/Rest/Wireless/V1/CommandList.php
deleted file mode 100644
index d5893e5..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandList.php
+++ /dev/null
@@ -1,178 +0,0 @@
-solution = array();
-
- $this->uri = '/Commands';
- }
-
- /**
- * Streams CommandInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads CommandInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return CommandInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of CommandInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of CommandInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Sim' => $options['sim'],
- 'Status' => $options['status'],
- 'Direction' => $options['direction'],
- 'Transport' => $options['transport'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new CommandPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of CommandInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of CommandInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new CommandPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new CommandInstance
- *
- * @param string $command The message body of the Command or a Base64 encoded
- * byte string in binary mode.
- * @param array|Options $options Optional Arguments
- * @return CommandInstance Newly created CommandInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($command, $options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'Command' => $command,
- 'Sim' => $options['sim'],
- 'CallbackMethod' => $options['callbackMethod'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'CommandMode' => $options['commandMode'],
- 'IncludeSid' => $options['includeSid'],
- 'DeliveryReceiptRequested' => Serialize::booleanToString($options['deliveryReceiptRequested']),
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new CommandInstance($this->version, $payload);
- }
-
- /**
- * Constructs a CommandContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Wireless\V1\CommandContext
- */
- public function getContext($sid) {
- return new CommandContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.CommandList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandOptions.php b/public/twilio-php/Twilio/Rest/Wireless/V1/CommandOptions.php
deleted file mode 100644
index 8f759bf..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandOptions.php
+++ /dev/null
@@ -1,234 +0,0 @@
-options['sim'] = $sim;
- $this->options['status'] = $status;
- $this->options['direction'] = $direction;
- $this->options['transport'] = $transport;
- }
-
- /**
- * Only return Commands to or from this SIM.
- *
- * @param string $sim Only return Commands to or from this SIM.
- * @return $this Fluent Builder
- */
- public function setSim($sim) {
- $this->options['sim'] = $sim;
- return $this;
- }
-
- /**
- * Only return Commands with this status value.
- *
- * @param string $status Only return Commands with this status value.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Only return Commands with this direction value.
- *
- * @param string $direction Only return Commands with this direction value.
- * @return $this Fluent Builder
- */
- public function setDirection($direction) {
- $this->options['direction'] = $direction;
- return $this;
- }
-
- /**
- * The transport
- *
- * @param string $transport The transport
- * @return $this Fluent Builder
- */
- public function setTransport($transport) {
- $this->options['transport'] = $transport;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.ReadCommandOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class CreateCommandOptions extends Options {
- /**
- * @param string $sim The Sid or UniqueName of the SIM to send the Command to.
- * @param string $callbackMethod The HTTP method Twilio will use when making a
- * request to the callback URL.
- * @param string $callbackUrl Twilio will make a request to this URL when the
- * Command has finished sending.
- * @param string $commandMode A string representing which mode to send the SMS
- * message using.
- * @param string $includeSid When sending a Command to a SIM in text mode,
- * Twilio can automatically include the Sid of the
- * Command in the message body, which could be used
- * to ensure that the device does not process the
- * same Command more than once.
- * @param boolean $deliveryReceiptRequested The delivery_receipt_requested
- */
- public function __construct($sim = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $commandMode = Values::NONE, $includeSid = Values::NONE, $deliveryReceiptRequested = Values::NONE) {
- $this->options['sim'] = $sim;
- $this->options['callbackMethod'] = $callbackMethod;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['commandMode'] = $commandMode;
- $this->options['includeSid'] = $includeSid;
- $this->options['deliveryReceiptRequested'] = $deliveryReceiptRequested;
- }
-
- /**
- * The Sid or UniqueName of the [SIM](https://www.twilio.com/docs/api/wireless/rest-api/sim) to send the Command to.
- *
- * @param string $sim The Sid or UniqueName of the SIM to send the Command to.
- * @return $this Fluent Builder
- */
- public function setSim($sim) {
- $this->options['sim'] = $sim;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when making a request to the callback URL (valid options are GET or POST). Defaults to POST.
- *
- * @param string $callbackMethod The HTTP method Twilio will use when making a
- * request to the callback URL.
- * @return $this Fluent Builder
- */
- public function setCallbackMethod($callbackMethod) {
- $this->options['callbackMethod'] = $callbackMethod;
- return $this;
- }
-
- /**
- * Twilio will make a request to this URL when the Command has finished sending (delivered or failed).
- *
- * @param string $callbackUrl Twilio will make a request to this URL when the
- * Command has finished sending.
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * A string representing which mode to send the SMS message using. May be `text` or `binary`. If omitted, the default SMS mode is `text`.
- *
- * @param string $commandMode A string representing which mode to send the SMS
- * message using.
- * @return $this Fluent Builder
- */
- public function setCommandMode($commandMode) {
- $this->options['commandMode'] = $commandMode;
- return $this;
- }
-
- /**
- * When sending a Command to a SIM in text mode, Twilio can automatically include the Sid of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. The options for inclusion are `none`, `start` and `end`. The default behavior is `none`. When using `start` or `end`, the CommandSid will be prepended or appended to the message body, with a space character separating the CommandSid and the message body. The length of the CommandSid contributes toward the 160 character limit, i.e. the SMS body must be 128 characters or less before the Command Sid is included.
- *
- * @param string $includeSid When sending a Command to a SIM in text mode,
- * Twilio can automatically include the Sid of the
- * Command in the message body, which could be used
- * to ensure that the device does not process the
- * same Command more than once.
- * @return $this Fluent Builder
- */
- public function setIncludeSid($includeSid) {
- $this->options['includeSid'] = $includeSid;
- return $this;
- }
-
- /**
- * The delivery_receipt_requested
- *
- * @param boolean $deliveryReceiptRequested The delivery_receipt_requested
- * @return $this Fluent Builder
- */
- public function setDeliveryReceiptRequested($deliveryReceiptRequested) {
- $this->options['deliveryReceiptRequested'] = $deliveryReceiptRequested;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.CreateCommandOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandPage.php b/public/twilio-php/Twilio/Rest/Wireless/V1/CommandPage.php
deleted file mode 100644
index 9c0088d..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/CommandPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new CommandInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.CommandPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanContext.php b/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanContext.php
deleted file mode 100644
index d3663f0..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanContext.php
+++ /dev/null
@@ -1,99 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/RatePlans/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a RatePlanInstance
- *
- * @return RatePlanInstance Fetched RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RatePlanInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the RatePlanInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RatePlanInstance Updated RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'FriendlyName' => $options['friendlyName'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RatePlanInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Deletes the RatePlanInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->version->delete('delete', $this->uri);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Wireless.V1.RatePlanContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanInstance.php b/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanInstance.php
deleted file mode 100644
index 26137cc..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanInstance.php
+++ /dev/null
@@ -1,150 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'dataEnabled' => Values::array_get($payload, 'data_enabled'),
- 'dataMetering' => Values::array_get($payload, 'data_metering'),
- 'dataLimit' => Values::array_get($payload, 'data_limit'),
- 'messagingEnabled' => Values::array_get($payload, 'messaging_enabled'),
- 'voiceEnabled' => Values::array_get($payload, 'voice_enabled'),
- 'nationalRoamingEnabled' => Values::array_get($payload, 'national_roaming_enabled'),
- 'nationalRoamingDataLimit' => Values::array_get($payload, 'national_roaming_data_limit'),
- 'internationalRoaming' => Values::array_get($payload, 'international_roaming'),
- 'internationalRoamingDataLimit' => Values::array_get($payload, 'international_roaming_data_limit'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Wireless\V1\RatePlanContext Context for this
- * RatePlanInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new RatePlanContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a RatePlanInstance
- *
- * @return RatePlanInstance Fetched RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the RatePlanInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RatePlanInstance Updated RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Deletes the RatePlanInstance
- *
- * @return boolean True if delete succeeds, false otherwise
- * @throws TwilioException When an HTTP error occurs.
- */
- public function delete() {
- return $this->proxy()->delete();
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Wireless.V1.RatePlanInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanList.php b/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanList.php
deleted file mode 100644
index 8ccaa02..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanList.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array();
-
- $this->uri = '/RatePlans';
- }
-
- /**
- * Streams RatePlanInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads RatePlanInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return RatePlanInstance[] Array of results
- */
- public function read($limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of RatePlanInstance records from the API.
- * Request is executed immediately
- *
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of RatePlanInstance
- */
- public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $params = Values::of(array(
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new RatePlanPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of RatePlanInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of RatePlanInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new RatePlanPage($this->version, $response, $this->solution);
- }
-
- /**
- * Create a new RatePlanInstance
- *
- * @param array|Options $options Optional Arguments
- * @return RatePlanInstance Newly created RatePlanInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function create($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'FriendlyName' => $options['friendlyName'],
- 'DataEnabled' => Serialize::booleanToString($options['dataEnabled']),
- 'DataLimit' => $options['dataLimit'],
- 'DataMetering' => $options['dataMetering'],
- 'MessagingEnabled' => Serialize::booleanToString($options['messagingEnabled']),
- 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
- 'NationalRoamingEnabled' => Serialize::booleanToString($options['nationalRoamingEnabled']),
- 'InternationalRoaming' => Serialize::map($options['internationalRoaming'], function($e) { return $e; }),
- 'NationalRoamingDataLimit' => $options['nationalRoamingDataLimit'],
- 'InternationalRoamingDataLimit' => $options['internationalRoamingDataLimit'],
- ));
-
- $payload = $this->version->create(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new RatePlanInstance($this->version, $payload);
- }
-
- /**
- * Constructs a RatePlanContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Wireless\V1\RatePlanContext
- */
- public function getContext($sid) {
- return new RatePlanContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.RatePlanList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanOptions.php b/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanOptions.php
deleted file mode 100644
index ce5c3da..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanOptions.php
+++ /dev/null
@@ -1,309 +0,0 @@
-options['uniqueName'] = $uniqueName;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['dataEnabled'] = $dataEnabled;
- $this->options['dataLimit'] = $dataLimit;
- $this->options['dataMetering'] = $dataMetering;
- $this->options['messagingEnabled'] = $messagingEnabled;
- $this->options['voiceEnabled'] = $voiceEnabled;
- $this->options['nationalRoamingEnabled'] = $nationalRoamingEnabled;
- $this->options['internationalRoaming'] = $internationalRoaming;
- $this->options['nationalRoamingDataLimit'] = $nationalRoamingDataLimit;
- $this->options['internationalRoamingDataLimit'] = $internationalRoamingDataLimit;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the Sid.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the Sid.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A user-provided string that identifies this resource. Non-unique.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Defines whether SIMs are capable of using GPRS/3G/LTE data connectivity.
- *
- * @param boolean $dataEnabled Defines whether SIMs are capable of using
- * GPRS/3G/LTE data connectivity.
- * @return $this Fluent Builder
- */
- public function setDataEnabled($dataEnabled) {
- $this->options['dataEnabled'] = $dataEnabled;
- return $this;
- }
-
- /**
- * Network-enforced limit specifying the total Megabytes of data usage (download and upload combined) allowed during one month on the home network. Metering begins on the day of activation and ends on the same day of the following month. Max value is 2TB.
- *
- * @param integer $dataLimit Network-enforced limit specifying the total
- * Megabytes of data usage allowed during one month
- * on the home network.
- * @return $this Fluent Builder
- */
- public function setDataLimit($dataLimit) {
- $this->options['dataLimit'] = $dataLimit;
- return $this;
- }
-
- /**
- * The model by which to meter data usage, in accordance with the two available [data metering models](https://www.twilio.com/docs/api/wireless/rest-api/rate-plan#explanation-of-pooled-vs-individual). Valid options are `pooled` and `individual`.
- *
- * @param string $dataMetering The model by which to meter data usage, in
- * accordance with the two available data metering
- * models.
- * @return $this Fluent Builder
- */
- public function setDataMetering($dataMetering) {
- $this->options['dataMetering'] = $dataMetering;
- return $this;
- }
-
- /**
- * Defines whether SIMs are capable of making and sending and receiving SMS messages via either [Commands](https://www.twilio.com/docs/wireless/api/commands) or Programmable SMS APIs.
- *
- * @param boolean $messagingEnabled Defines whether SIMs are capable of making
- * and sending and receiving SMS messages via
- * either Commands or Programmable SMS APIs.
- * @return $this Fluent Builder
- */
- public function setMessagingEnabled($messagingEnabled) {
- $this->options['messagingEnabled'] = $messagingEnabled;
- return $this;
- }
-
- /**
- * Defines whether SIMs are capable of making and receiving voice calls.
- *
- * @param boolean $voiceEnabled Defines whether SIMs are capable of making and
- * receiving voice calls.
- * @return $this Fluent Builder
- */
- public function setVoiceEnabled($voiceEnabled) {
- $this->options['voiceEnabled'] = $voiceEnabled;
- return $this;
- }
-
- /**
- * Defines whether SIMs can roam onto other networks in the SIM's home country. See ['national' roaming](https://www.twilio.com/docs/api/wireless/rest-api/rate-plan#national-roaming).
- *
- * @param boolean $nationalRoamingEnabled Defines whether SIMs can roam onto
- * other networks in the SIM's home
- * country.
- * @return $this Fluent Builder
- */
- public function setNationalRoamingEnabled($nationalRoamingEnabled) {
- $this->options['nationalRoamingEnabled'] = $nationalRoamingEnabled;
- return $this;
- }
-
- /**
- * The international_roaming
- *
- * @param string $internationalRoaming The international_roaming
- * @return $this Fluent Builder
- */
- public function setInternationalRoaming($internationalRoaming) {
- $this->options['internationalRoaming'] = $internationalRoaming;
- return $this;
- }
-
- /**
- * Network-enforced limit specifying the total Megabytes of national roaming data usage (download and upload combined) allowed during one month. Max value is 2TB. If unspecified, the default value is the lesser of `DataLimit` and 1000MB.
- *
- * @param integer $nationalRoamingDataLimit Network-enforced limit specifying
- * the total Megabytes of national
- * roaming data usage allowed during
- * one month.
- * @return $this Fluent Builder
- */
- public function setNationalRoamingDataLimit($nationalRoamingDataLimit) {
- $this->options['nationalRoamingDataLimit'] = $nationalRoamingDataLimit;
- return $this;
- }
-
- /**
- * The international_roaming_data_limit
- *
- * @param integer $internationalRoamingDataLimit The
- * international_roaming_data_limit
- * @return $this Fluent Builder
- */
- public function setInternationalRoamingDataLimit($internationalRoamingDataLimit) {
- $this->options['internationalRoamingDataLimit'] = $internationalRoamingDataLimit;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.CreateRatePlanOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateRatePlanOptions extends Options {
- /**
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the Sid.
- * @param string $friendlyName A user-provided string that identifies this
- * resource.
- */
- public function __construct($uniqueName = Values::NONE, $friendlyName = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- $this->options['friendlyName'] = $friendlyName;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the Sid.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the Sid.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * A user-provided string that identifies this resource. Non-unique.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.UpdateRatePlanOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanPage.php b/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanPage.php
deleted file mode 100644
index e45decd..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/RatePlanPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new RatePlanInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.RatePlanPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionInstance.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionInstance.php
deleted file mode 100644
index 2eb7b2c..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionInstance.php
+++ /dev/null
@@ -1,98 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'simSid' => Values::array_get($payload, 'sim_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'radioLink' => Values::array_get($payload, 'radio_link'),
- 'operatorMcc' => Values::array_get($payload, 'operator_mcc'),
- 'operatorMnc' => Values::array_get($payload, 'operator_mnc'),
- 'operatorCountry' => Values::array_get($payload, 'operator_country'),
- 'operatorName' => Values::array_get($payload, 'operator_name'),
- 'cellId' => Values::array_get($payload, 'cell_id'),
- 'cellLocationEstimate' => Values::array_get($payload, 'cell_location_estimate'),
- 'packetsUploaded' => Values::array_get($payload, 'packets_uploaded'),
- 'packetsDownloaded' => Values::array_get($payload, 'packets_downloaded'),
- 'lastUpdated' => Deserialize::dateTime(Values::array_get($payload, 'last_updated')),
- 'start' => Deserialize::dateTime(Values::array_get($payload, 'start')),
- 'end' => Deserialize::dateTime(Values::array_get($payload, 'end')),
- );
-
- $this->solution = array('simSid' => $simSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.DataSessionInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionList.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionList.php
deleted file mode 100644
index ed24838..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionList.php
+++ /dev/null
@@ -1,136 +0,0 @@
-solution = array('simSid' => $simSid, );
-
- $this->uri = '/Sims/' . rawurlencode($simSid) . '/DataSessions';
- }
-
- /**
- * Streams DataSessionInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads DataSessionInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return DataSessionInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of DataSessionInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of DataSessionInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'End' => Serialize::iso8601DateTime($options['end']),
- 'Start' => Serialize::iso8601DateTime($options['start']),
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new DataSessionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of DataSessionInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of DataSessionInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new DataSessionPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.DataSessionList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.php
deleted file mode 100644
index c86d6a5..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.php
+++ /dev/null
@@ -1,72 +0,0 @@
-options['end'] = $end;
- $this->options['start'] = $start;
- }
-
- /**
- * The end
- *
- * @param \DateTime $end The end
- * @return $this Fluent Builder
- */
- public function setEnd($end) {
- $this->options['end'] = $end;
- return $this;
- }
-
- /**
- * The start
- *
- * @param \DateTime $start The start
- * @return $this Fluent Builder
- */
- public function setStart($start) {
- $this->options['start'] = $start;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.ReadDataSessionOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionPage.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionPage.php
deleted file mode 100644
index 292a8e5..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/DataSessionPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new DataSessionInstance($this->version, $payload, $this->solution['simSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.DataSessionPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordInstance.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordInstance.php
deleted file mode 100644
index 535b9f3..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordInstance.php
+++ /dev/null
@@ -1,77 +0,0 @@
-properties = array(
- 'simSid' => Values::array_get($payload, 'sim_sid'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'period' => Values::array_get($payload, 'period'),
- 'commands' => Values::array_get($payload, 'commands'),
- 'data' => Values::array_get($payload, 'data'),
- );
-
- $this->solution = array('simSid' => $simSid, );
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.UsageRecordInstance]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordList.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordList.php
deleted file mode 100644
index d5db589..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordList.php
+++ /dev/null
@@ -1,137 +0,0 @@
-solution = array('simSid' => $simSid, );
-
- $this->uri = '/Sims/' . rawurlencode($simSid) . '/UsageRecords';
- }
-
- /**
- * Streams UsageRecordInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads UsageRecordInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return UsageRecordInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of UsageRecordInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of UsageRecordInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'End' => Serialize::iso8601DateTime($options['end']),
- 'Start' => Serialize::iso8601DateTime($options['start']),
- 'Granularity' => $options['granularity'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new UsageRecordPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of UsageRecordInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of UsageRecordInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new UsageRecordPage($this->version, $response, $this->solution);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.UsageRecordList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.php
deleted file mode 100644
index 7213889..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.php
+++ /dev/null
@@ -1,95 +0,0 @@
-options['end'] = $end;
- $this->options['start'] = $start;
- $this->options['granularity'] = $granularity;
- }
-
- /**
- * Only include usage that has occurred on or before this date. Format is [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm).
- *
- * @param \DateTime $end Only include usage that has occurred on or before this
- * date.
- * @return $this Fluent Builder
- */
- public function setEnd($end) {
- $this->options['end'] = $end;
- return $this;
- }
-
- /**
- * Only include usage that has occurred on or after this date. Format is [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm).
- *
- * @param \DateTime $start Only include usage that has occurred on or after
- * this date.
- * @return $this Fluent Builder
- */
- public function setStart($start) {
- $this->options['start'] = $start;
- return $this;
- }
-
- /**
- * The time-based grouping that results are aggregated by. Valid values are `daily`, `hourly`, `all`. `all` will return one Usage Record for the entire period.
- *
- * @param string $granularity The time-based grouping that results are
- * aggregated by.
- * @return $this Fluent Builder
- */
- public function setGranularity($granularity) {
- $this->options['granularity'] = $granularity;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.ReadUsageRecordOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordPage.php b/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordPage.php
deleted file mode 100644
index 3125561..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/Sim/UsageRecordPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new UsageRecordInstance($this->version, $payload, $this->solution['simSid']);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.UsageRecordPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/SimContext.php b/public/twilio-php/Twilio/Rest/Wireless/V1/SimContext.php
deleted file mode 100644
index d148a77..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/SimContext.php
+++ /dev/null
@@ -1,172 +0,0 @@
-solution = array('sid' => $sid, );
-
- $this->uri = '/Sims/' . rawurlencode($sid) . '';
- }
-
- /**
- * Fetch a SimInstance
- *
- * @return SimInstance Fetched SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- $params = Values::of(array());
-
- $payload = $this->version->fetch(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SimInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Update the SimInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SimInstance Updated SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- $options = new Values($options);
-
- $data = Values::of(array(
- 'UniqueName' => $options['uniqueName'],
- 'CallbackMethod' => $options['callbackMethod'],
- 'CallbackUrl' => $options['callbackUrl'],
- 'FriendlyName' => $options['friendlyName'],
- 'RatePlan' => $options['ratePlan'],
- 'Status' => $options['status'],
- 'CommandsCallbackMethod' => $options['commandsCallbackMethod'],
- 'CommandsCallbackUrl' => $options['commandsCallbackUrl'],
- 'SmsFallbackMethod' => $options['smsFallbackMethod'],
- 'SmsFallbackUrl' => $options['smsFallbackUrl'],
- 'SmsMethod' => $options['smsMethod'],
- 'SmsUrl' => $options['smsUrl'],
- 'VoiceFallbackMethod' => $options['voiceFallbackMethod'],
- 'VoiceFallbackUrl' => $options['voiceFallbackUrl'],
- 'VoiceMethod' => $options['voiceMethod'],
- 'VoiceUrl' => $options['voiceUrl'],
- ));
-
- $payload = $this->version->update(
- 'POST',
- $this->uri,
- array(),
- $data
- );
-
- return new SimInstance($this->version, $payload, $this->solution['sid']);
- }
-
- /**
- * Access the usageRecords
- *
- * @return \Twilio\Rest\Wireless\V1\Sim\UsageRecordList
- */
- protected function getUsageRecords() {
- if (!$this->_usageRecords) {
- $this->_usageRecords = new UsageRecordList($this->version, $this->solution['sid']);
- }
-
- return $this->_usageRecords;
- }
-
- /**
- * Access the dataSessions
- *
- * @return \Twilio\Rest\Wireless\V1\Sim\DataSessionList
- */
- protected function getDataSessions() {
- if (!$this->_dataSessions) {
- $this->_dataSessions = new DataSessionList($this->version, $this->solution['sid']);
- }
-
- return $this->_dataSessions;
- }
-
- /**
- * Magic getter to lazy load subresources
- *
- * @param string $name Subresource to return
- * @return \Twilio\ListResource The requested subresource
- * @throws \Twilio\Exceptions\TwilioException For unknown subresources
- */
- public function __get($name) {
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown subresource ' . $name);
- }
-
- /**
- * Magic caller to get resource contexts
- *
- * @param string $name Resource to return
- * @param array $arguments Context parameters
- * @return \Twilio\InstanceContext The requested resource context
- * @throws \Twilio\Exceptions\TwilioException For unknown resource
- */
- public function __call($name, $arguments) {
- $property = $this->$name;
- if (method_exists($property, 'getContext')) {
- return call_user_func_array(array($property, 'getContext'), $arguments);
- }
-
- throw new TwilioException('Resource does not have a context');
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Wireless.V1.SimContext ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/SimInstance.php b/public/twilio-php/Twilio/Rest/Wireless/V1/SimInstance.php
deleted file mode 100644
index 17ab512..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/SimInstance.php
+++ /dev/null
@@ -1,174 +0,0 @@
-properties = array(
- 'sid' => Values::array_get($payload, 'sid'),
- 'uniqueName' => Values::array_get($payload, 'unique_name'),
- 'accountSid' => Values::array_get($payload, 'account_sid'),
- 'ratePlanSid' => Values::array_get($payload, 'rate_plan_sid'),
- 'friendlyName' => Values::array_get($payload, 'friendly_name'),
- 'iccid' => Values::array_get($payload, 'iccid'),
- 'eId' => Values::array_get($payload, 'e_id'),
- 'status' => Values::array_get($payload, 'status'),
- 'commandsCallbackUrl' => Values::array_get($payload, 'commands_callback_url'),
- 'commandsCallbackMethod' => Values::array_get($payload, 'commands_callback_method'),
- 'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
- 'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
- 'smsMethod' => Values::array_get($payload, 'sms_method'),
- 'smsUrl' => Values::array_get($payload, 'sms_url'),
- 'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
- 'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
- 'voiceMethod' => Values::array_get($payload, 'voice_method'),
- 'voiceUrl' => Values::array_get($payload, 'voice_url'),
- 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
- 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
- 'url' => Values::array_get($payload, 'url'),
- 'links' => Values::array_get($payload, 'links'),
- 'ipAddress' => Values::array_get($payload, 'ip_address'),
- );
-
- $this->solution = array('sid' => $sid ?: $this->properties['sid'], );
- }
-
- /**
- * Generate an instance context for the instance, the context is capable of
- * performing various actions. All instance actions are proxied to the context
- *
- * @return \Twilio\Rest\Wireless\V1\SimContext Context for this SimInstance
- */
- protected function proxy() {
- if (!$this->context) {
- $this->context = new SimContext($this->version, $this->solution['sid']);
- }
-
- return $this->context;
- }
-
- /**
- * Fetch a SimInstance
- *
- * @return SimInstance Fetched SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function fetch() {
- return $this->proxy()->fetch();
- }
-
- /**
- * Update the SimInstance
- *
- * @param array|Options $options Optional Arguments
- * @return SimInstance Updated SimInstance
- * @throws TwilioException When an HTTP error occurs.
- */
- public function update($options = array()) {
- return $this->proxy()->update($options);
- }
-
- /**
- * Access the usageRecords
- *
- * @return \Twilio\Rest\Wireless\V1\Sim\UsageRecordList
- */
- protected function getUsageRecords() {
- return $this->proxy()->usageRecords;
- }
-
- /**
- * Access the dataSessions
- *
- * @return \Twilio\Rest\Wireless\V1\Sim\DataSessionList
- */
- protected function getDataSessions() {
- return $this->proxy()->dataSessions;
- }
-
- /**
- * Magic getter to access properties
- *
- * @param string $name Property to access
- * @return mixed The requested property
- * @throws TwilioException For unknown properties
- */
- public function __get($name) {
- if (array_key_exists($name, $this->properties)) {
- return $this->properties[$name];
- }
-
- if (property_exists($this, '_' . $name)) {
- $method = 'get' . ucfirst($name);
- return $this->$method();
- }
-
- throw new TwilioException('Unknown property: ' . $name);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $context = array();
- foreach ($this->solution as $key => $value) {
- $context[] = "$key=$value";
- }
- return '[Twilio.Wireless.V1.SimInstance ' . implode(' ', $context) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/SimList.php b/public/twilio-php/Twilio/Rest/Wireless/V1/SimList.php
deleted file mode 100644
index fcbd4e4..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/SimList.php
+++ /dev/null
@@ -1,146 +0,0 @@
-solution = array();
-
- $this->uri = '/Sims';
- }
-
- /**
- * Streams SimInstance records from the API as a generator stream.
- * This operation lazily loads records as efficiently as possible until the
- * limit
- * is reached.
- * The results are returned as a generator, so this operation is memory
- * efficient.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. stream()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, stream()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return \Twilio\Stream stream of results
- */
- public function stream($options = array(), $limit = null, $pageSize = null) {
- $limits = $this->version->readLimits($limit, $pageSize);
-
- $page = $this->page($options, $limits['pageSize']);
-
- return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
- }
-
- /**
- * Reads SimInstance records from the API as a list.
- * Unlike stream(), this operation is eager and will load `limit` records into
- * memory before returning.
- *
- * @param array|Options $options Optional Arguments
- * @param int $limit Upper limit for the number of records to return. read()
- * guarantees to never return more than limit. Default is no
- * limit
- * @param mixed $pageSize Number of records to fetch per request, when not set
- * will use the default value of 50 records. If no
- * page_size is defined but a limit is defined, read()
- * will attempt to read the limit with the most
- * efficient page size, i.e. min(limit, 1000)
- * @return SimInstance[] Array of results
- */
- public function read($options = array(), $limit = null, $pageSize = null) {
- return iterator_to_array($this->stream($options, $limit, $pageSize), false);
- }
-
- /**
- * Retrieve a single page of SimInstance records from the API.
- * Request is executed immediately
- *
- * @param array|Options $options Optional Arguments
- * @param mixed $pageSize Number of records to return, defaults to 50
- * @param string $pageToken PageToken provided by the API
- * @param mixed $pageNumber Page Number, this value is simply for client state
- * @return \Twilio\Page Page of SimInstance
- */
- public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
- $options = new Values($options);
- $params = Values::of(array(
- 'Status' => $options['status'],
- 'Iccid' => $options['iccid'],
- 'RatePlan' => $options['ratePlan'],
- 'EId' => $options['eId'],
- 'SimRegistrationCode' => $options['simRegistrationCode'],
- 'PageToken' => $pageToken,
- 'Page' => $pageNumber,
- 'PageSize' => $pageSize,
- ));
-
- $response = $this->version->page(
- 'GET',
- $this->uri,
- $params
- );
-
- return new SimPage($this->version, $response, $this->solution);
- }
-
- /**
- * Retrieve a specific page of SimInstance records from the API.
- * Request is executed immediately
- *
- * @param string $targetUrl API-generated URL for the requested results page
- * @return \Twilio\Page Page of SimInstance
- */
- public function getPage($targetUrl) {
- $response = $this->version->getDomain()->getClient()->request(
- 'GET',
- $targetUrl
- );
-
- return new SimPage($this->version, $response, $this->solution);
- }
-
- /**
- * Constructs a SimContext
- *
- * @param string $sid The sid
- * @return \Twilio\Rest\Wireless\V1\SimContext
- */
- public function getContext($sid) {
- return new SimContext($this->version, $sid);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.SimList]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/SimOptions.php b/public/twilio-php/Twilio/Rest/Wireless/V1/SimOptions.php
deleted file mode 100644
index 53f18fb..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/SimOptions.php
+++ /dev/null
@@ -1,421 +0,0 @@
-options['status'] = $status;
- $this->options['iccid'] = $iccid;
- $this->options['ratePlan'] = $ratePlan;
- $this->options['eId'] = $eId;
- $this->options['simRegistrationCode'] = $simRegistrationCode;
- }
-
- /**
- * Only return Sims with this status.
- *
- * @param string $status Only return Sims with this status.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * Return Sims with this Iccid. Currently this should be a list with maximum size 1.
- *
- * @param string $iccid Return Sims with this Iccid.
- * @return $this Fluent Builder
- */
- public function setIccid($iccid) {
- $this->options['iccid'] = $iccid;
- return $this;
- }
-
- /**
- * Only return Sims with this Rate Plan.
- *
- * @param string $ratePlan Only return Sims with this Rate Plan.
- * @return $this Fluent Builder
- */
- public function setRatePlan($ratePlan) {
- $this->options['ratePlan'] = $ratePlan;
- return $this;
- }
-
- /**
- * The e_id
- *
- * @param string $eId The e_id
- * @return $this Fluent Builder
- */
- public function setEId($eId) {
- $this->options['eId'] = $eId;
- return $this;
- }
-
- /**
- * The sim_registration_code
- *
- * @param string $simRegistrationCode The sim_registration_code
- * @return $this Fluent Builder
- */
- public function setSimRegistrationCode($simRegistrationCode) {
- $this->options['simRegistrationCode'] = $simRegistrationCode;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.ReadSimOptions ' . implode(' ', $options) . ']';
- }
-}
-
-class UpdateSimOptions extends Options {
- /**
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the Sid.
- * @param string $callbackMethod The HTTP method Twilio will use when making a
- * request to the callback URL.
- * @param string $callbackUrl Twilio will make a request to this URL when the
- * Sim has finished updating.
- * @param string $friendlyName A user-provided string that identifies this
- * resource.
- * @param string $ratePlan The Sid or UniqueName of the RatePlan that this Sim
- * should use.
- * @param string $status A string representing the status of the Sim.
- * @param string $commandsCallbackMethod A string representing the HTTP method
- * to use when making a request to
- * CommandsCallbackUrl.
- * @param string $commandsCallbackUrl The URL that will receive a webhook when
- * this Sim originates a Command.
- * @param string $smsFallbackMethod The HTTP method Twilio will use when
- * requesting the sms_fallback_url.
- * @param string $smsFallbackUrl The URL that Twilio will request if an error
- * occurs retrieving or executing the TwiML
- * requested by sms_url.
- * @param string $smsMethod The HTTP method Twilio will use when requesting the
- * above Url.
- * @param string $smsUrl The URL Twilio will request when the SIM-connected
- * device sends an SMS message that is not a Command.
- * @param string $voiceFallbackMethod The HTTP method Twilio will use when
- * requesting the voice_fallback_url.
- * @param string $voiceFallbackUrl The URL that Twilio will request if an error
- * occurs retrieving or executing the TwiML
- * requested by voice_url.
- * @param string $voiceMethod The HTTP method Twilio will use when requesting
- * the above Url.
- * @param string $voiceUrl The URL Twilio will request when the SIM-connected
- * device makes a call.
- */
- public function __construct($uniqueName = Values::NONE, $callbackMethod = Values::NONE, $callbackUrl = Values::NONE, $friendlyName = Values::NONE, $ratePlan = Values::NONE, $status = Values::NONE, $commandsCallbackMethod = Values::NONE, $commandsCallbackUrl = Values::NONE, $smsFallbackMethod = Values::NONE, $smsFallbackUrl = Values::NONE, $smsMethod = Values::NONE, $smsUrl = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceUrl = Values::NONE) {
- $this->options['uniqueName'] = $uniqueName;
- $this->options['callbackMethod'] = $callbackMethod;
- $this->options['callbackUrl'] = $callbackUrl;
- $this->options['friendlyName'] = $friendlyName;
- $this->options['ratePlan'] = $ratePlan;
- $this->options['status'] = $status;
- $this->options['commandsCallbackMethod'] = $commandsCallbackMethod;
- $this->options['commandsCallbackUrl'] = $commandsCallbackUrl;
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- $this->options['smsMethod'] = $smsMethod;
- $this->options['smsUrl'] = $smsUrl;
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- $this->options['voiceMethod'] = $voiceMethod;
- $this->options['voiceUrl'] = $voiceUrl;
- }
-
- /**
- * A user-provided string that uniquely identifies this resource as an alternative to the `Sid`.
- *
- * @param string $uniqueName A user-provided string that uniquely identifies
- * this resource as an alternative to the Sid.
- * @return $this Fluent Builder
- */
- public function setUniqueName($uniqueName) {
- $this->options['uniqueName'] = $uniqueName;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when making a request to the callback URL (valid options are GET or POST). Defaults to POST.
- *
- * @param string $callbackMethod The HTTP method Twilio will use when making a
- * request to the callback URL.
- * @return $this Fluent Builder
- */
- public function setCallbackMethod($callbackMethod) {
- $this->options['callbackMethod'] = $callbackMethod;
- return $this;
- }
-
- /**
- * Twilio will make a request to this URL when the Sim has finished updating. In the case of a transition from the Sim's `new` status to its `ready` status, or from any status to its `deactivated` status, you will receive two callbacks. One when the Sim moves to its intermediary status (`ready` or `deactivated`), and a second when it transitions to its final status (`active` or `canceled`).
- *
- * @param string $callbackUrl Twilio will make a request to this URL when the
- * Sim has finished updating.
- * @return $this Fluent Builder
- */
- public function setCallbackUrl($callbackUrl) {
- $this->options['callbackUrl'] = $callbackUrl;
- return $this;
- }
-
- /**
- * A user-provided string that identifies this resource. Non-unique.
- *
- * @param string $friendlyName A user-provided string that identifies this
- * resource.
- * @return $this Fluent Builder
- */
- public function setFriendlyName($friendlyName) {
- $this->options['friendlyName'] = $friendlyName;
- return $this;
- }
-
- /**
- * The Sid or UniqueName of the [RatePlan](https://www.twilio.com/docs/api/wireless/rest-api/rate-plan) that this Sim should use. *Note:* the RatePlan of a Sim can only be modified when the Sim has a `suspended` or `deactivated` status.
- *
- * @param string $ratePlan The Sid or UniqueName of the RatePlan that this Sim
- * should use.
- * @return $this Fluent Builder
- */
- public function setRatePlan($ratePlan) {
- $this->options['ratePlan'] = $ratePlan;
- return $this;
- }
-
- /**
- * A string representing the status of the Sim. Valid options depend on the current state of the Sim, but may include `ready`, `active`, `suspended` or `deactivated`.
- *
- * @param string $status A string representing the status of the Sim.
- * @return $this Fluent Builder
- */
- public function setStatus($status) {
- $this->options['status'] = $status;
- return $this;
- }
-
- /**
- * A string representing the HTTP method to use when making a request to `CommandsCallbackUrl`. Can be one of `POST` or `GET`. Defaults to `POST`.
- *
- * @param string $commandsCallbackMethod A string representing the HTTP method
- * to use when making a request to
- * CommandsCallbackUrl.
- * @return $this Fluent Builder
- */
- public function setCommandsCallbackMethod($commandsCallbackMethod) {
- $this->options['commandsCallbackMethod'] = $commandsCallbackMethod;
- return $this;
- }
-
- /**
- * The URL that will receive a webhook when this Sim originates a [Command](https://www.twilio.com/docs/api/wireless/rest-api/command). Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.
- *
- * @param string $commandsCallbackUrl The URL that will receive a webhook when
- * this Sim originates a Command.
- * @return $this Fluent Builder
- */
- public function setCommandsCallbackUrl($commandsCallbackUrl) {
- $this->options['commandsCallbackUrl'] = $commandsCallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the sms_fallback_url. Either `GET` or `POST`.
- *
- * @param string $smsFallbackMethod The HTTP method Twilio will use when
- * requesting the sms_fallback_url.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackMethod($smsFallbackMethod) {
- $this->options['smsFallbackMethod'] = $smsFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request if an error occurs retrieving or executing the TwiML requested by `sms_url`.
- *
- * @param string $smsFallbackUrl The URL that Twilio will request if an error
- * occurs retrieving or executing the TwiML
- * requested by sms_url.
- * @return $this Fluent Builder
- */
- public function setSmsFallbackUrl($smsFallbackUrl) {
- $this->options['smsFallbackUrl'] = $smsFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the above Url. Either `GET` or `POST`.
- *
- * @param string $smsMethod The HTTP method Twilio will use when requesting the
- * above Url.
- * @return $this Fluent Builder
- */
- public function setSmsMethod($smsMethod) {
- $this->options['smsMethod'] = $smsMethod;
- return $this;
- }
-
- /**
- * The URL Twilio will request when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/api/wireless/rest-api/command).
- *
- * @param string $smsUrl The URL Twilio will request when the SIM-connected
- * device sends an SMS message that is not a Command.
- * @return $this Fluent Builder
- */
- public function setSmsUrl($smsUrl) {
- $this->options['smsUrl'] = $smsUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the voice_fallback_url. Either `GET` or `POST`.
- *
- * @param string $voiceFallbackMethod The HTTP method Twilio will use when
- * requesting the voice_fallback_url.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackMethod($voiceFallbackMethod) {
- $this->options['voiceFallbackMethod'] = $voiceFallbackMethod;
- return $this;
- }
-
- /**
- * The URL that Twilio will request if an error occurs retrieving or executing the TwiML requested by `voice_url`.
- *
- * @param string $voiceFallbackUrl The URL that Twilio will request if an error
- * occurs retrieving or executing the TwiML
- * requested by voice_url.
- * @return $this Fluent Builder
- */
- public function setVoiceFallbackUrl($voiceFallbackUrl) {
- $this->options['voiceFallbackUrl'] = $voiceFallbackUrl;
- return $this;
- }
-
- /**
- * The HTTP method Twilio will use when requesting the above Url. Either `GET` or `POST`.
- *
- * @param string $voiceMethod The HTTP method Twilio will use when requesting
- * the above Url.
- * @return $this Fluent Builder
- */
- public function setVoiceMethod($voiceMethod) {
- $this->options['voiceMethod'] = $voiceMethod;
- return $this;
- }
-
- /**
- * The URL Twilio will request when the SIM-connected device makes a call.
- *
- * @param string $voiceUrl The URL Twilio will request when the SIM-connected
- * device makes a call.
- * @return $this Fluent Builder
- */
- public function setVoiceUrl($voiceUrl) {
- $this->options['voiceUrl'] = $voiceUrl;
- return $this;
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- $options = array();
- foreach ($this->options as $key => $value) {
- if ($value != Values::NONE) {
- $options[] = "$key=$value";
- }
- }
- return '[Twilio.Wireless.V1.UpdateSimOptions ' . implode(' ', $options) . ']';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Rest/Wireless/V1/SimPage.php b/public/twilio-php/Twilio/Rest/Wireless/V1/SimPage.php
deleted file mode 100644
index 94aa30e..0000000
--- a/public/twilio-php/Twilio/Rest/Wireless/V1/SimPage.php
+++ /dev/null
@@ -1,34 +0,0 @@
-solution = $solution;
- }
-
- public function buildInstance(array $payload) {
- return new SimInstance($this->version, $payload);
- }
-
- /**
- * Provide a friendly representation
- *
- * @return string Machine friendly representation
- */
- public function __toString() {
- return '[Twilio.Wireless.V1.SimPage]';
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Security/RequestValidator.php b/public/twilio-php/Twilio/Security/RequestValidator.php
deleted file mode 100644
index e9a691a..0000000
--- a/public/twilio-php/Twilio/Security/RequestValidator.php
+++ /dev/null
@@ -1,82 +0,0 @@
-authToken = $authToken;
- }
-
- public function computeSignature($url, $data = array()) {
- // sort the array by keys
- ksort($data);
-
- // append them to the data string in order
- // with no delimiters
- foreach ($data as $key => $value)
- $url .= "$key$value";
-
- return base64_encode(hash_hmac("sha1", $url, $this->authToken, true));
- }
-
- public function computeBodyHash($data = '') {
- return base64_encode(hash("sha256", $data, true));
- }
-
- public function validate($expectedSignature, $url, $data = array()) {
- if (is_array($data)) {
- return self::compare(
- $this->computeSignature($url, $data),
- $expectedSignature
- );
- } else {
- $queryString = explode('?', $url);
- $queryString = $queryString[1];
- parse_str($queryString, $params);
-
- return self::compare(
- $this->computeSignature($url),
- $expectedSignature
- ) && self::compare(
- $this->computeBodyHash($data),
- $params['bodySHA256']
- );
- }
- }
-
- /**
- * Time insensitive compare, function's runtime is governed by the length
- * of the first argument, not the difference between the arguments.
- * @param $a string First part of the comparison pair
- * @param $b string Second part of the comparison pair
- * @return bool True if $a == $b, false otherwise.
- */
- public
- static function compare($a, $b) {
- $result = true;
-
- if (strlen($a) != strlen($b)) {
- return false;
- }
-
- if (!$a && !$b) {
- return true;
- }
-
- $limit = strlen($a);
-
- for ($i = 0; $i < $limit; ++$i) {
- if ($a[$i] != $b[$i]) {
- $result = false;
- }
- }
-
- return $result;
- }
-
-}
diff --git a/public/twilio-php/Twilio/Serialize.php b/public/twilio-php/Twilio/Serialize.php
deleted file mode 100644
index 499dff4..0000000
--- a/public/twilio-php/Twilio/Serialize.php
+++ /dev/null
@@ -1,88 +0,0 @@
- $value) {
- if (is_array($value)) {
- $result = self::flatten($value, $result, array_merge($previous, array($key)));
- } else {
- $result[join(".", array_merge($previous, array($key)))] = $value;
- }
- }
-
- return $result;
- }
-
- public static function prefixedCollapsibleMap($map, $prefix) {
- if (is_null($map) || $map == \Twilio\Values::NONE) {
- return array();
- }
-
- $flattened = self::flatten($map);
- $result = array();
- foreach ($flattened as $key => $value) {
- $result[$prefix . '.' . $key] = $value;
- }
-
- return $result;
- }
-
- public static function iso8601Date($dateTime) {
- if (is_null($dateTime) || $dateTime == \Twilio\Values::NONE) {
- return \Twilio\Values::NONE;
- }
-
- if (is_string($dateTime)) {
- return $dateTime;
- }
-
- $utcDate = clone $dateTime;
- $utcDate->setTimezone(new \DateTimeZone('UTC'));
- return $utcDate->format('Y-m-d');
- }
-
- public static function iso8601DateTime($dateTime) {
- if (is_null($dateTime) || $dateTime == \Twilio\Values::NONE) {
- return \Twilio\Values::NONE;
- }
-
- if (is_string($dateTime)) {
- return $dateTime;
- }
-
- $utcDate = clone $dateTime;
- $utcDate->setTimezone(new \DateTimeZone('UTC'));
- return $utcDate->format('Y-m-d\TH:i:s\Z');
- }
-
- public static function booleanToString($boolOrStr) {
- if (is_null($boolOrStr) || is_string($boolOrStr)) {
- return $boolOrStr;
- }
-
- return $boolOrStr ? 'True' : 'False';
- }
-
- public static function json_object($object) {
- trigger_error("Serialize::json_object has been deprecated in favor of Serialize::jsonObject", E_USER_NOTICE);
- return Serialize::jsonObject($object);
- }
-
- public static function jsonObject($object) {
- if (is_array($object)) {
- return json_encode($object);
- }
- return $object;
- }
-
- public static function map($values, $map_func) {
- if (!is_array($values)) {
- return $values;
- }
- return array_map($map_func, $values);
- }
-
-}
diff --git a/public/twilio-php/Twilio/Stream.php b/public/twilio-php/Twilio/Stream.php
deleted file mode 100644
index c2c92f2..0000000
--- a/public/twilio-php/Twilio/Stream.php
+++ /dev/null
@@ -1,103 +0,0 @@
-page = $page;
- $this->firstPage = $page;
- $this->limit = $limit;
- $this->currentRecord = 1;
- $this->pageLimit = $pageLimit;
- $this->currentPage = 1;
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Return the current element
- * @link http://php.net/manual/en/iterator.current.php
- * @return mixed Can return any type.
- */
- public function current() {
- return $this->page->current();
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Move forward to next element
- * @link http://php.net/manual/en/iterator.next.php
- * @return void Any returned value is ignored.
- */
- public function next() {
- $this->page->next();
- $this->currentRecord++;
-
- if ($this->overLimit()) {
- return;
- }
-
- if (!$this->page->valid()) {
- if ($this->overPageLimit()) {
- return;
- }
- $this->page = $this->page->nextPage();
- $this->currentPage++;
- }
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Return the key of the current element
- * @link http://php.net/manual/en/iterator.key.php
- * @return mixed scalar on success, or null on failure.
- */
- public function key() {
- return $this->currentRecord;
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Checks if current position is valid
- * @link http://php.net/manual/en/iterator.valid.php
- * @return boolean The return value will be casted to boolean and then evaluated.
- * Returns true on success or false on failure.
- */
- public function valid() {
- return $this->page && $this->page->valid() && !$this->overLimit() && !$this->overPageLimit();
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Rewind the Iterator to the first element
- * @link http://php.net/manual/en/iterator.rewind.php
- * @return void Any returned value is ignored.
- */
- public function rewind() {
- $this->page = $this->firstPage;
- $this->page->rewind();
- $this->currentPage = 1;
- $this->currentRecord = 1;
- }
-
- protected function overLimit() {
- return ($this->limit !== null
- && $this->limit !== Values::NONE
- && $this->limit < $this->currentRecord);
- }
-
- protected function overPageLimit() {
- return ($this->pageLimit !== null
- && $this->pageLimit !== Values::NONE
- && $this->pageLimit < $this->currentPage);
- }
-
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TaskRouter/WorkflowConfiguration.php b/public/twilio-php/Twilio/TaskRouter/WorkflowConfiguration.php
deleted file mode 100644
index d12a796..0000000
--- a/public/twilio-php/Twilio/TaskRouter/WorkflowConfiguration.php
+++ /dev/null
@@ -1,50 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class WorkflowConfiguration implements \JsonSerializable {
- public $filters;
- public $default_filter;
-
- public function __construct($filters, $default_filter = null)
- {
- $this->filters = $filters;
- $this->default_filter = $default_filter;
- }
-
- public function toJSON() {
- return json_encode($this);
- }
-
- public static function parse($json) {
- return json_decode($json);
- }
-
- public static function fromJson($json) {
- $configJSON = self::parse($json);
- $default_filter = $configJSON->task_routing->default_filter;
- $filters = array();
- foreach($configJSON->task_routing->filters as $filter) {
- // friendly_name and filter_friendly_name should map to same variable
- $friendly_name = isset($filter->filter_friendly_name) ? $filter->filter_friendly_name : $filter->friendly_name;
- $filter = new WorkflowRule($filter->expression, $filter->targets, $friendly_name);
- $filters[] = $filter;
- }
- return new WorkflowConfiguration($filters, $default_filter);
- }
-
- public function jsonSerialize() {
- $json = array();
- $task_routing = array();
- $task_routing["filters"] = $this->filters;
- $task_routing["default_filter"] = $this->default_filter;
- $json["task_routing"] = $task_routing;
- return $json;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TaskRouter/WorkflowRule.php b/public/twilio-php/Twilio/TaskRouter/WorkflowRule.php
deleted file mode 100644
index 98e95e2..0000000
--- a/public/twilio-php/Twilio/TaskRouter/WorkflowRule.php
+++ /dev/null
@@ -1,32 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class WorkflowRule implements \JsonSerializable {
- public $expression;
- public $friendly_name;
- public $targets;
-
- public function __construct($expression, $targets, $friendly_name = null)
- {
- $this->expression = $expression;
- $this->targets = $targets;
- $this->friendly_name = $friendly_name;
- }
-
- public function jsonSerialize() {
- $json = array();
- $json["expression"] = $this->expression;
- $json["targets"] = $this->targets;
- if($this->friendly_name != null) {
- $json["friendly_name"] = $this->friendly_name;
- }
- return $json;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TaskRouter/WorkflowRuleTarget.php b/public/twilio-php/Twilio/TaskRouter/WorkflowRuleTarget.php
deleted file mode 100644
index de8ca05..0000000
--- a/public/twilio-php/Twilio/TaskRouter/WorkflowRuleTarget.php
+++ /dev/null
@@ -1,39 +0,0 @@
-
- * @license http://creativecommons.org/licenses/MIT/ MIT
- */
-class WorkflowRuleTarget implements \JsonSerializable {
- public $queue;
- public $expression;
- public $priority;
- public $timeout;
-
- public function __construct($queue, $priority = null, $timeout = null, $expression = null)
- {
- $this->queue = $queue;
- $this->priority = $priority;
- $this->timeout = $timeout;
- $this->expression = $expression;
- }
-
- public function jsonSerialize() {
- $json = array();
- $json["queue"] = $this->queue;
- if($this->priority != null) {
- $json["priority"] = $this->priority;
- }
- if($this->timeout != null) {
- $json["timeout"] = $this->timeout;
- }
- if($this->expression != null) {
- $json["expression"] = $this->expression;
- }
- return $json;
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Fax/Receive.php b/public/twilio-php/Twilio/TwiML/Fax/Receive.php
deleted file mode 100644
index be24161..0000000
--- a/public/twilio-php/Twilio/TwiML/Fax/Receive.php
+++ /dev/null
@@ -1,43 +0,0 @@
-setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Receive action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/FaxResponse.php b/public/twilio-php/Twilio/TwiML/FaxResponse.php
deleted file mode 100644
index 82f416f..0000000
--- a/public/twilio-php/Twilio/TwiML/FaxResponse.php
+++ /dev/null
@@ -1,29 +0,0 @@
-nest(new Fax\Receive($attributes));
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/GenericNode.php b/public/twilio-php/Twilio/TwiML/GenericNode.php
deleted file mode 100644
index 7dac656..0000000
--- a/public/twilio-php/Twilio/TwiML/GenericNode.php
+++ /dev/null
@@ -1,18 +0,0 @@
-name = $name;
- $this->value = $value;
- }}
diff --git a/public/twilio-php/Twilio/TwiML/Messaging/Body.php b/public/twilio-php/Twilio/TwiML/Messaging/Body.php
deleted file mode 100644
index aec44b5..0000000
--- a/public/twilio-php/Twilio/TwiML/Messaging/Body.php
+++ /dev/null
@@ -1,23 +0,0 @@
-nest(new Body($message));
- }
-
- /**
- * Add Media child.
- *
- * @param url $url Media URL
- * @return TwiML Child element.
- */
- public function media($url) {
- return $this->nest(new Media($url));
- }
-
- /**
- * Add To attribute.
- *
- * @param phoneNumber $to Phone Number to send Message to
- * @return TwiML $this.
- */
- public function setTo($to) {
- return $this->setAttribute('to', $to);
- }
-
- /**
- * Add From attribute.
- *
- * @param phoneNumber $from Phone Number to send Message from
- * @return TwiML $this.
- */
- public function setFrom($from) {
- return $this->setAttribute('from', $from);
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL Method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status callback URL. Deprecated in favor of
- * action.
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Messaging/Redirect.php b/public/twilio-php/Twilio/TwiML/Messaging/Redirect.php
deleted file mode 100644
index 9c42426..0000000
--- a/public/twilio-php/Twilio/TwiML/Messaging/Redirect.php
+++ /dev/null
@@ -1,34 +0,0 @@
-setAttribute('method', $method);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/MessagingResponse.php b/public/twilio-php/Twilio/TwiML/MessagingResponse.php
deleted file mode 100644
index fce983e..0000000
--- a/public/twilio-php/Twilio/TwiML/MessagingResponse.php
+++ /dev/null
@@ -1,41 +0,0 @@
-nest(new Messaging\Message($body, $attributes));
- }
-
- /**
- * Add Redirect child.
- *
- * @param url $url Redirect URL
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function redirect($url, $attributes = array()) {
- return $this->nest(new Messaging\Redirect($url, $attributes));
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/TwiML.php b/public/twilio-php/Twilio/TwiML/TwiML.php
deleted file mode 100644
index bcfc00b..0000000
--- a/public/twilio-php/Twilio/TwiML/TwiML.php
+++ /dev/null
@@ -1,136 +0,0 @@
-name = $name;
- $this->attributes = $attributes;
- $this->children = [];
-
- if ($value !== null) {
- $this->children[] = $value;
- }
- }
-
- /**
- * Add a TwiML element.
- *
- * @param TwiML|string $twiml TwiML element to add
- * @return TwiML $this
- */
- public function append($twiml) {
- $this->children[] = $twiml;
- return $this;
- }
-
- /**
- * Add a TwiML element.
- *
- * @param TwiML $twiml TwiML element to add
- * @return TwiML added TwiML element
- */
- public function nest($twiml) {
- $this->children[] = $twiml;
- return $twiml;
- }
-
- /**
- * Set TwiML attribute.
- *
- * @param string $key name of attribute
- * @param string $value value of attribute
- * @return TwiML $this
- */
- public function setAttribute($key, $value) {
- $this->attributes[$key] = $value;
- return $this;
- }
-
- /**
- * @param string $name XML element name
- * @param string $value XML value
- * @param array $attributes XML attributes
- */
- public function addChild($name, $value = null, $attributes = []) {
- return $this->nest(new GenericNode($name, $value, $attributes));
- }
-
- /**
- * Convert TwiML to XML string.
- *
- * @return string TwiML XML representation
- */
- public function asXML() {
- return $this->__toString();
- }
-
- /**
- * Convert TwiML to XML string.
- *
- * @return string TwiML XML representation
- */
- public function __toString() {
- return $this->xml()->saveXML();
- }
-
- /**
- * Build TwiML element.
- *
- * @param TwiML $twiml TwiML element to convert to XML
- * @param DOMDocument $document XML document for the element
- * @return DOMElement $element
- */
- private function buildElement($twiml, $document) {
- $element = $document->createElement($twiml->name);
-
- foreach ($twiml->attributes as $name => $value) {
- if (is_bool($value)) {
- $value = ($value === true) ? 'true' : 'false';
- }
- $element->setAttribute($name, $value);
- }
-
- foreach ($twiml->children as $child) {
- if (is_string($child)) {
- $element->appendChild($document->createTextNode($child));
- } else {
- $element->appendChild($this->buildElement($child, $document));
- }
- }
-
- return $element;
- }
-
- /**
- * Build XML element.
- *
- * @return DOMDocument Build TwiML element
- */
- private function xml() {
- $document = new DOMDocument('1.0', 'UTF-8');
- $document->appendChild($this->buildElement($this, $document));
- return $document;
- }
-
-}
diff --git a/public/twilio-php/Twilio/TwiML/Video/Room.php b/public/twilio-php/Twilio/TwiML/Video/Room.php
deleted file mode 100644
index 2da2520..0000000
--- a/public/twilio-php/Twilio/TwiML/Video/Room.php
+++ /dev/null
@@ -1,23 +0,0 @@
-nest(new Identity($clientIdentity));
- }
-
- /**
- * Add Parameter child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function parameter($attributes = array()) {
- return $this->nest(new Parameter($attributes));
- }
-
- /**
- * Add Url attribute.
- *
- * @param url $url Client URL
- * @return TwiML $this.
- */
- public function setUrl($url) {
- return $this->setAttribute('url', $url);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Client URL Method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add StatusCallbackEvent attribute.
- *
- * @param client:Enum:Event $statusCallbackEvent Events to trigger status
- * callback
- * @return TwiML $this.
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- return $this->setAttribute('statusCallbackEvent', $statusCallbackEvent);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status Callback URL
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-
- /**
- * Add StatusCallbackMethod attribute.
- *
- * @param httpMethod $statusCallbackMethod Status Callback URL Method
- * @return TwiML $this.
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- return $this->setAttribute('statusCallbackMethod', $statusCallbackMethod);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Conference.php b/public/twilio-php/Twilio/TwiML/Voice/Conference.php
deleted file mode 100644
index ad73e3c..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Conference.php
+++ /dev/null
@@ -1,206 +0,0 @@
-setAttribute('muted', $muted);
- }
-
- /**
- * Add Beep attribute.
- *
- * @param conference:Enum:Beep $beep Play beep when joining
- * @return TwiML $this.
- */
- public function setBeep($beep) {
- return $this->setAttribute('beep', $beep);
- }
-
- /**
- * Add StartConferenceOnEnter attribute.
- *
- * @param boolean $startConferenceOnEnter Start the conference on enter
- * @return TwiML $this.
- */
- public function setStartConferenceOnEnter($startConferenceOnEnter) {
- return $this->setAttribute('startConferenceOnEnter', $startConferenceOnEnter);
- }
-
- /**
- * Add EndConferenceOnExit attribute.
- *
- * @param boolean $endConferenceOnExit End the conferenceon exit
- * @return TwiML $this.
- */
- public function setEndConferenceOnExit($endConferenceOnExit) {
- return $this->setAttribute('endConferenceOnExit', $endConferenceOnExit);
- }
-
- /**
- * Add WaitUrl attribute.
- *
- * @param url $waitUrl Wait URL
- * @return TwiML $this.
- */
- public function setWaitUrl($waitUrl) {
- return $this->setAttribute('waitUrl', $waitUrl);
- }
-
- /**
- * Add WaitMethod attribute.
- *
- * @param httpMethod $waitMethod Wait URL method
- * @return TwiML $this.
- */
- public function setWaitMethod($waitMethod) {
- return $this->setAttribute('waitMethod', $waitMethod);
- }
-
- /**
- * Add MaxParticipants attribute.
- *
- * @param integer $maxParticipants Maximum number of participants
- * @return TwiML $this.
- */
- public function setMaxParticipants($maxParticipants) {
- return $this->setAttribute('maxParticipants', $maxParticipants);
- }
-
- /**
- * Add Record attribute.
- *
- * @param conference:Enum:Record $record Record the conference
- * @return TwiML $this.
- */
- public function setRecord($record) {
- return $this->setAttribute('record', $record);
- }
-
- /**
- * Add Region attribute.
- *
- * @param conference:Enum:Region $region Conference region
- * @return TwiML $this.
- */
- public function setRegion($region) {
- return $this->setAttribute('region', $region);
- }
-
- /**
- * Add Whisper attribute.
- *
- * @param sid $whisper Call whisper
- * @return TwiML $this.
- */
- public function setWhisper($whisper) {
- return $this->setAttribute('whisper', $whisper);
- }
-
- /**
- * Add Trim attribute.
- *
- * @param conference:Enum:Trim $trim Trim the conference recording
- * @return TwiML $this.
- */
- public function setTrim($trim) {
- return $this->setAttribute('trim', $trim);
- }
-
- /**
- * Add StatusCallbackEvent attribute.
- *
- * @param conference:Enum:Event $statusCallbackEvent Events to call status
- * callback URL
- * @return TwiML $this.
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- return $this->setAttribute('statusCallbackEvent', $statusCallbackEvent);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status callback URL
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-
- /**
- * Add StatusCallbackMethod attribute.
- *
- * @param httpMethod $statusCallbackMethod Status callback URL method
- * @return TwiML $this.
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- return $this->setAttribute('statusCallbackMethod', $statusCallbackMethod);
- }
-
- /**
- * Add RecordingStatusCallback attribute.
- *
- * @param url $recordingStatusCallback Recording status callback URL
- * @return TwiML $this.
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- return $this->setAttribute('recordingStatusCallback', $recordingStatusCallback);
- }
-
- /**
- * Add RecordingStatusCallbackMethod attribute.
- *
- * @param httpMethod $recordingStatusCallbackMethod Recording status callback
- * URL method
- * @return TwiML $this.
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- return $this->setAttribute('recordingStatusCallbackMethod', $recordingStatusCallbackMethod);
- }
-
- /**
- * Add RecordingStatusCallbackEvent attribute.
- *
- * @param conference:Enum:RecordingEvent $recordingStatusCallbackEvent Recording status callback events
- * @return TwiML $this.
- */
- public function setRecordingStatusCallbackEvent($recordingStatusCallbackEvent) {
- return $this->setAttribute('recordingStatusCallbackEvent', $recordingStatusCallbackEvent);
- }
-
- /**
- * Add EventCallbackUrl attribute.
- *
- * @param url $eventCallbackUrl Event callback URL
- * @return TwiML $this.
- */
- public function setEventCallbackUrl($eventCallbackUrl) {
- return $this->setAttribute('eventCallbackUrl', $eventCallbackUrl);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Connect.php b/public/twilio-php/Twilio/TwiML/Voice/Connect.php
deleted file mode 100644
index 2d05e5d..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Connect.php
+++ /dev/null
@@ -1,64 +0,0 @@
-nest(new Room($name, $attributes));
- }
-
- /**
- * Add Autopilot child.
- *
- * @param string $name Autopilot assistant sid or unique name
- * @return TwiML Child element.
- */
- public function autopilot($name) {
- return $this->nest(new Autopilot($name));
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Dial.php b/public/twilio-php/Twilio/TwiML/Voice/Dial.php
deleted file mode 100644
index 227a3b8..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Dial.php
+++ /dev/null
@@ -1,225 +0,0 @@
-nest(new Client($identity, $attributes));
- }
-
- /**
- * Add Conference child.
- *
- * @param string $name Conference name
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function conference($name, $attributes = array()) {
- return $this->nest(new Conference($name, $attributes));
- }
-
- /**
- * Add Number child.
- *
- * @param phoneNumber $phoneNumber Phone Number to dial
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function number($phoneNumber, $attributes = array()) {
- return $this->nest(new Number($phoneNumber, $attributes));
- }
-
- /**
- * Add Queue child.
- *
- * @param string $name Queue name
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function queue($name, $attributes = array()) {
- return $this->nest(new Queue($name, $attributes));
- }
-
- /**
- * Add Sim child.
- *
- * @param sid $simSid SIM SID
- * @return TwiML Child element.
- */
- public function sim($simSid) {
- return $this->nest(new Sim($simSid));
- }
-
- /**
- * Add Sip child.
- *
- * @param url $sipUrl SIP URL
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function sip($sipUrl, $attributes = array()) {
- return $this->nest(new Sip($sipUrl, $attributes));
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add Timeout attribute.
- *
- * @param integer $timeout Time to wait for answer
- * @return TwiML $this.
- */
- public function setTimeout($timeout) {
- return $this->setAttribute('timeout', $timeout);
- }
-
- /**
- * Add HangupOnStar attribute.
- *
- * @param boolean $hangupOnStar Hangup call on star press
- * @return TwiML $this.
- */
- public function setHangupOnStar($hangupOnStar) {
- return $this->setAttribute('hangupOnStar', $hangupOnStar);
- }
-
- /**
- * Add TimeLimit attribute.
- *
- * @param integer $timeLimit Max time length
- * @return TwiML $this.
- */
- public function setTimeLimit($timeLimit) {
- return $this->setAttribute('timeLimit', $timeLimit);
- }
-
- /**
- * Add CallerId attribute.
- *
- * @param string $callerId Caller ID to display
- * @return TwiML $this.
- */
- public function setCallerId($callerId) {
- return $this->setAttribute('callerId', $callerId);
- }
-
- /**
- * Add Record attribute.
- *
- * @param dial:Enum:Record $record Record the call
- * @return TwiML $this.
- */
- public function setRecord($record) {
- return $this->setAttribute('record', $record);
- }
-
- /**
- * Add Trim attribute.
- *
- * @param dial:Enum:Trim $trim Trim the recording
- * @return TwiML $this.
- */
- public function setTrim($trim) {
- return $this->setAttribute('trim', $trim);
- }
-
- /**
- * Add RecordingStatusCallback attribute.
- *
- * @param url $recordingStatusCallback Recording status callback URL
- * @return TwiML $this.
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- return $this->setAttribute('recordingStatusCallback', $recordingStatusCallback);
- }
-
- /**
- * Add RecordingStatusCallbackMethod attribute.
- *
- * @param httpMethod $recordingStatusCallbackMethod Recording status callback
- * URL method
- * @return TwiML $this.
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- return $this->setAttribute('recordingStatusCallbackMethod', $recordingStatusCallbackMethod);
- }
-
- /**
- * Add RecordingStatusCallbackEvent attribute.
- *
- * @param dial:Enum:RecordingEvent $recordingStatusCallbackEvent Recording
- * status
- * callback events
- * @return TwiML $this.
- */
- public function setRecordingStatusCallbackEvent($recordingStatusCallbackEvent) {
- return $this->setAttribute('recordingStatusCallbackEvent', $recordingStatusCallbackEvent);
- }
-
- /**
- * Add AnswerOnBridge attribute.
- *
- * @param boolean $answerOnBridge Preserve the ringing behavior of the inbound
- * call until the Dialed call picks up
- * @return TwiML $this.
- */
- public function setAnswerOnBridge($answerOnBridge) {
- return $this->setAttribute('answerOnBridge', $answerOnBridge);
- }
-
- /**
- * Add RingTone attribute.
- *
- * @param dial:Enum:RingTone $ringTone Ringtone allows you to override the
- * ringback tone that Twilio will play back
- * to the caller while executing the Dial
- * @return TwiML $this.
- */
- public function setRingTone($ringTone) {
- return $this->setAttribute('ringTone', $ringTone);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Echo.php b/public/twilio-php/Twilio/TwiML/Voice/Echo.php
deleted file mode 100644
index abbc66f..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Echo.php
+++ /dev/null
@@ -1,21 +0,0 @@
-nest(new Task($body, $attributes));
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add WaitUrl attribute.
- *
- * @param url $waitUrl Wait URL
- * @return TwiML $this.
- */
- public function setWaitUrl($waitUrl) {
- return $this->setAttribute('waitUrl', $waitUrl);
- }
-
- /**
- * Add WaitUrlMethod attribute.
- *
- * @param httpMethod $waitUrlMethod Wait URL method
- * @return TwiML $this.
- */
- public function setWaitUrlMethod($waitUrlMethod) {
- return $this->setAttribute('waitUrlMethod', $waitUrlMethod);
- }
-
- /**
- * Add WorkflowSid attribute.
- *
- * @param string $workflowSid TaskRouter Workflow SID
- * @return TwiML $this.
- */
- public function setWorkflowSid($workflowSid) {
- return $this->setAttribute('workflowSid', $workflowSid);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Gather.php b/public/twilio-php/Twilio/TwiML/Voice/Gather.php
deleted file mode 100644
index d8fa4dd..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Gather.php
+++ /dev/null
@@ -1,207 +0,0 @@
-nest(new Say($message, $attributes));
- }
-
- /**
- * Add Pause child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function pause($attributes = array()) {
- return $this->nest(new Pause($attributes));
- }
-
- /**
- * Add Play child.
- *
- * @param url $url Media URL
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function play($url = null, $attributes = array()) {
- return $this->nest(new Play($url, $attributes));
- }
-
- /**
- * Add Input attribute.
- *
- * @param gather:Enum:Input $input Input type Twilio should accept
- * @return TwiML $this.
- */
- public function setInput($input) {
- return $this->setAttribute('input', $input);
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add Timeout attribute.
- *
- * @param integer $timeout Time to wait to gather input
- * @return TwiML $this.
- */
- public function setTimeout($timeout) {
- return $this->setAttribute('timeout', $timeout);
- }
-
- /**
- * Add SpeechTimeout attribute.
- *
- * @param string $speechTimeout Time to wait to gather speech input and it
- * should be either auto or a positive integer.
- * @return TwiML $this.
- */
- public function setSpeechTimeout($speechTimeout) {
- return $this->setAttribute('speechTimeout', $speechTimeout);
- }
-
- /**
- * Add MaxSpeechTime attribute.
- *
- * @param integer $maxSpeechTime Max allowed time for speech input
- * @return TwiML $this.
- */
- public function setMaxSpeechTime($maxSpeechTime) {
- return $this->setAttribute('maxSpeechTime', $maxSpeechTime);
- }
-
- /**
- * Add ProfanityFilter attribute.
- *
- * @param boolean $profanityFilter Profanity Filter on speech
- * @return TwiML $this.
- */
- public function setProfanityFilter($profanityFilter) {
- return $this->setAttribute('profanityFilter', $profanityFilter);
- }
-
- /**
- * Add FinishOnKey attribute.
- *
- * @param string $finishOnKey Finish gather on key
- * @return TwiML $this.
- */
- public function setFinishOnKey($finishOnKey) {
- return $this->setAttribute('finishOnKey', $finishOnKey);
- }
-
- /**
- * Add NumDigits attribute.
- *
- * @param integer $numDigits Number of digits to collect
- * @return TwiML $this.
- */
- public function setNumDigits($numDigits) {
- return $this->setAttribute('numDigits', $numDigits);
- }
-
- /**
- * Add PartialResultCallback attribute.
- *
- * @param url $partialResultCallback Partial result callback URL
- * @return TwiML $this.
- */
- public function setPartialResultCallback($partialResultCallback) {
- return $this->setAttribute('partialResultCallback', $partialResultCallback);
- }
-
- /**
- * Add PartialResultCallbackMethod attribute.
- *
- * @param httpMethod $partialResultCallbackMethod Partial result callback URL
- * method
- * @return TwiML $this.
- */
- public function setPartialResultCallbackMethod($partialResultCallbackMethod) {
- return $this->setAttribute('partialResultCallbackMethod', $partialResultCallbackMethod);
- }
-
- /**
- * Add Language attribute.
- *
- * @param gather:Enum:Language $language Language to use
- * @return TwiML $this.
- */
- public function setLanguage($language) {
- return $this->setAttribute('language', $language);
- }
-
- /**
- * Add Hints attribute.
- *
- * @param string $hints Speech recognition hints
- * @return TwiML $this.
- */
- public function setHints($hints) {
- return $this->setAttribute('hints', $hints);
- }
-
- /**
- * Add BargeIn attribute.
- *
- * @param boolean $bargeIn Stop playing media upon speech
- * @return TwiML $this.
- */
- public function setBargeIn($bargeIn) {
- return $this->setAttribute('bargeIn', $bargeIn);
- }
-
- /**
- * Add Debug attribute.
- *
- * @param boolean $debug Allow debug for gather
- * @return TwiML $this.
- */
- public function setDebug($debug) {
- return $this->setAttribute('debug', $debug);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Hangup.php b/public/twilio-php/Twilio/TwiML/Voice/Hangup.php
deleted file mode 100644
index cef039b..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Hangup.php
+++ /dev/null
@@ -1,21 +0,0 @@
-setAttribute('sendDigits', $sendDigits);
- }
-
- /**
- * Add Url attribute.
- *
- * @param url $url TwiML URL
- * @return TwiML $this.
- */
- public function setUrl($url) {
- return $this->setAttribute('url', $url);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method TwiML URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add StatusCallbackEvent attribute.
- *
- * @param number:Enum:Event $statusCallbackEvent Events to call status callback
- * @return TwiML $this.
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- return $this->setAttribute('statusCallbackEvent', $statusCallbackEvent);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status callback URL
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-
- /**
- * Add StatusCallbackMethod attribute.
- *
- * @param httpMethod $statusCallbackMethod Status callback URL method
- * @return TwiML $this.
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- return $this->setAttribute('statusCallbackMethod', $statusCallbackMethod);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Parameter.php b/public/twilio-php/Twilio/TwiML/Voice/Parameter.php
deleted file mode 100644
index bb6b6b2..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Parameter.php
+++ /dev/null
@@ -1,43 +0,0 @@
-setAttribute('name', $name);
- }
-
- /**
- * Add Value attribute.
- *
- * @param string $value The value of the custom parameter
- * @return TwiML $this.
- */
- public function setValue($value) {
- return $this->setAttribute('value', $value);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Pause.php b/public/twilio-php/Twilio/TwiML/Voice/Pause.php
deleted file mode 100644
index 040690c..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Pause.php
+++ /dev/null
@@ -1,33 +0,0 @@
-setAttribute('length', $length);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Pay.php b/public/twilio-php/Twilio/TwiML/Voice/Pay.php
deleted file mode 100644
index d9b31ae..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Pay.php
+++ /dev/null
@@ -1,199 +0,0 @@
-nest(new Prompt($attributes));
- }
-
- /**
- * Add Input attribute.
- *
- * @param pay:Enum:Input $input Input type Twilio should accept
- * @return TwiML $this.
- */
- public function setInput($input) {
- return $this->setAttribute('input', $input);
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status callback URL
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-
- /**
- * Add StatusCallbackMethod attribute.
- *
- * @param pay:Enum:StatusCallbackMethod $statusCallbackMethod Status callback
- * method
- * @return TwiML $this.
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- return $this->setAttribute('statusCallbackMethod', $statusCallbackMethod);
- }
-
- /**
- * Add Timeout attribute.
- *
- * @param integer $timeout Time to wait to gather input
- * @return TwiML $this.
- */
- public function setTimeout($timeout) {
- return $this->setAttribute('timeout', $timeout);
- }
-
- /**
- * Add MaxAttempts attribute.
- *
- * @param integer $maxAttempts Maximum number of allowed retries when gathering
- * input
- * @return TwiML $this.
- */
- public function setMaxAttempts($maxAttempts) {
- return $this->setAttribute('maxAttempts', $maxAttempts);
- }
-
- /**
- * Add SecurityCode attribute.
- *
- * @param boolean $securityCode Prompt for security code
- * @return TwiML $this.
- */
- public function setSecurityCode($securityCode) {
- return $this->setAttribute('securityCode', $securityCode);
- }
-
- /**
- * Add PostalCode attribute.
- *
- * @param string $postalCode Prompt for postal code and it should be true/false
- * or default postal code
- * @return TwiML $this.
- */
- public function setPostalCode($postalCode) {
- return $this->setAttribute('postalCode', $postalCode);
- }
-
- /**
- * Add PaymentConnector attribute.
- *
- * @param string $paymentConnector Unique name for payment connector
- * @return TwiML $this.
- */
- public function setPaymentConnector($paymentConnector) {
- return $this->setAttribute('paymentConnector', $paymentConnector);
- }
-
- /**
- * Add TokenType attribute.
- *
- * @param pay:Enum:TokenType $tokenType Type of token
- * @return TwiML $this.
- */
- public function setTokenType($tokenType) {
- return $this->setAttribute('tokenType', $tokenType);
- }
-
- /**
- * Add ChargeAmount attribute.
- *
- * @param string $chargeAmount Amount to process. If value is greater than 0
- * then make the payment else create a payment token
- * @return TwiML $this.
- */
- public function setChargeAmount($chargeAmount) {
- return $this->setAttribute('chargeAmount', $chargeAmount);
- }
-
- /**
- * Add Currency attribute.
- *
- * @param pay:Enum:Currency $currency Currency of the amount attribute
- * @return TwiML $this.
- */
- public function setCurrency($currency) {
- return $this->setAttribute('currency', $currency);
- }
-
- /**
- * Add CredentialSid attribute.
- *
- * @param string $credentialSid SID for API keys to communicate with payment
- * provider
- * @return TwiML $this.
- */
- public function setCredentialSid($credentialSid) {
- return $this->setAttribute('credentialSid', $credentialSid);
- }
-
- /**
- * Add Description attribute.
- *
- * @param string $description Details regarding the payment
- * @return TwiML $this.
- */
- public function setDescription($description) {
- return $this->setAttribute('description', $description);
- }
-
- /**
- * Add ValidCardTypes attribute.
- *
- * @param pay:Enum:ValidCardTypes $validCardTypes Comma separated accepted card
- * types
- * @return TwiML $this.
- */
- public function setValidCardTypes($validCardTypes) {
- return $this->setAttribute('validCardTypes', $validCardTypes);
- }
-
- /**
- * Add Language attribute.
- *
- * @param pay:Enum:Language $language Language to use
- * @return TwiML $this.
- */
- public function setLanguage($language) {
- return $this->setAttribute('language', $language);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Play.php b/public/twilio-php/Twilio/TwiML/Voice/Play.php
deleted file mode 100644
index 092cffd..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Play.php
+++ /dev/null
@@ -1,44 +0,0 @@
-setAttribute('loop', $loop);
- }
-
- /**
- * Add Digits attribute.
- *
- * @param string $digits Play DTMF tones for digits
- * @return TwiML $this.
- */
- public function setDigits($digits) {
- return $this->setAttribute('digits', $digits);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Prompt.php b/public/twilio-php/Twilio/TwiML/Voice/Prompt.php
deleted file mode 100644
index f01d93e..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Prompt.php
+++ /dev/null
@@ -1,95 +0,0 @@
-nest(new Say($message, $attributes));
- }
-
- /**
- * Add Play child.
- *
- * @param url $url Media URL
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function play($url = null, $attributes = array()) {
- return $this->nest(new Play($url, $attributes));
- }
-
- /**
- * Add Pause child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function pause($attributes = array()) {
- return $this->nest(new Pause($attributes));
- }
-
- /**
- * Add For_ attribute.
- *
- * @param prompt:Enum:For $for_ Name of the credit card data element
- * @return TwiML $this.
- */
- public function setFor_($for_) {
- return $this->setAttribute('for_', $for_);
- }
-
- /**
- * Add ErrorType attribute.
- *
- * @param prompt:Enum:ErrorType $errorType Type of error
- * @return TwiML $this.
- */
- public function setErrorType($errorType) {
- return $this->setAttribute('errorType', $errorType);
- }
-
- /**
- * Add CardType attribute.
- *
- * @param prompt:Enum:CardType $cardType Type of the credit card
- * @return TwiML $this.
- */
- public function setCardType($cardType) {
- return $this->setAttribute('cardType', $cardType);
- }
-
- /**
- * Add Attempt attribute.
- *
- * @param integer $attempt Current attempt count
- * @return TwiML $this.
- */
- public function setAttempt($attempt) {
- return $this->setAttribute('attempt', $attempt);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Queue.php b/public/twilio-php/Twilio/TwiML/Voice/Queue.php
deleted file mode 100644
index faa1fad..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Queue.php
+++ /dev/null
@@ -1,64 +0,0 @@
-setAttribute('url', $url);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add ReservationSid attribute.
- *
- * @param string $reservationSid TaskRouter Reservation SID
- * @return TwiML $this.
- */
- public function setReservationSid($reservationSid) {
- return $this->setAttribute('reservationSid', $reservationSid);
- }
-
- /**
- * Add PostWorkActivitySid attribute.
- *
- * @param string $postWorkActivitySid TaskRouter Activity SID
- * @return TwiML $this.
- */
- public function setPostWorkActivitySid($postWorkActivitySid) {
- return $this->setAttribute('postWorkActivitySid', $postWorkActivitySid);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Record.php b/public/twilio-php/Twilio/TwiML/Voice/Record.php
deleted file mode 100644
index 1908990..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Record.php
+++ /dev/null
@@ -1,133 +0,0 @@
-setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add Timeout attribute.
- *
- * @param integer $timeout Timeout to begin recording
- * @return TwiML $this.
- */
- public function setTimeout($timeout) {
- return $this->setAttribute('timeout', $timeout);
- }
-
- /**
- * Add FinishOnKey attribute.
- *
- * @param string $finishOnKey Finish recording on key
- * @return TwiML $this.
- */
- public function setFinishOnKey($finishOnKey) {
- return $this->setAttribute('finishOnKey', $finishOnKey);
- }
-
- /**
- * Add MaxLength attribute.
- *
- * @param integer $maxLength Max time to record in seconds
- * @return TwiML $this.
- */
- public function setMaxLength($maxLength) {
- return $this->setAttribute('maxLength', $maxLength);
- }
-
- /**
- * Add PlayBeep attribute.
- *
- * @param boolean $playBeep Play beep
- * @return TwiML $this.
- */
- public function setPlayBeep($playBeep) {
- return $this->setAttribute('playBeep', $playBeep);
- }
-
- /**
- * Add Trim attribute.
- *
- * @param record:Enum:Trim $trim Trim the recording
- * @return TwiML $this.
- */
- public function setTrim($trim) {
- return $this->setAttribute('trim', $trim);
- }
-
- /**
- * Add RecordingStatusCallback attribute.
- *
- * @param url $recordingStatusCallback Status callback URL
- * @return TwiML $this.
- */
- public function setRecordingStatusCallback($recordingStatusCallback) {
- return $this->setAttribute('recordingStatusCallback', $recordingStatusCallback);
- }
-
- /**
- * Add RecordingStatusCallbackMethod attribute.
- *
- * @param httpMethod $recordingStatusCallbackMethod Status callback URL method
- * @return TwiML $this.
- */
- public function setRecordingStatusCallbackMethod($recordingStatusCallbackMethod) {
- return $this->setAttribute('recordingStatusCallbackMethod', $recordingStatusCallbackMethod);
- }
-
- /**
- * Add Transcribe attribute.
- *
- * @param boolean $transcribe Transcribe the recording
- * @return TwiML $this.
- */
- public function setTranscribe($transcribe) {
- return $this->setAttribute('transcribe', $transcribe);
- }
-
- /**
- * Add TranscribeCallback attribute.
- *
- * @param url $transcribeCallback Transcribe callback URL
- * @return TwiML $this.
- */
- public function setTranscribeCallback($transcribeCallback) {
- return $this->setAttribute('transcribeCallback', $transcribeCallback);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Redirect.php b/public/twilio-php/Twilio/TwiML/Voice/Redirect.php
deleted file mode 100644
index 667d69d..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Redirect.php
+++ /dev/null
@@ -1,34 +0,0 @@
-setAttribute('method', $method);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Reject.php b/public/twilio-php/Twilio/TwiML/Voice/Reject.php
deleted file mode 100644
index 36dcd45..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Reject.php
+++ /dev/null
@@ -1,33 +0,0 @@
-setAttribute('reason', $reason);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Room.php b/public/twilio-php/Twilio/TwiML/Voice/Room.php
deleted file mode 100644
index 629b263..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Room.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setAttribute('participantidentity', $participantidentity);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Say.php b/public/twilio-php/Twilio/TwiML/Voice/Say.php
deleted file mode 100644
index bea17a6..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Say.php
+++ /dev/null
@@ -1,161 +0,0 @@
-nest(new SsmlBreak($attributes));
- }
-
- /**
- * Add Emphasis child.
- *
- * @param string $words Words to emphasize
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function emphasis($words, $attributes = array()) {
- return $this->nest(new SsmlEmphasis($words, $attributes));
- }
-
- /**
- * Add Lang child.
- *
- * @param string $words Words to speak
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function lang($words, $attributes = array()) {
- return $this->nest(new SsmlLang($words, $attributes));
- }
-
- /**
- * Add P child.
- *
- * @param string $words Words to speak
- * @return TwiML Child element.
- */
- public function p($words) {
- return $this->nest(new SsmlP($words));
- }
-
- /**
- * Add Phoneme child.
- *
- * @param string $words Words to speak
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function phoneme($words, $attributes = array()) {
- return $this->nest(new SsmlPhoneme($words, $attributes));
- }
-
- /**
- * Add Prosody child.
- *
- * @param string $words Words to speak
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function prosody($words, $attributes = array()) {
- return $this->nest(new SsmlProsody($words, $attributes));
- }
-
- /**
- * Add S child.
- *
- * @param string $words Words to speak
- * @return TwiML Child element.
- */
- public function s($words) {
- return $this->nest(new SsmlS($words));
- }
-
- /**
- * Add Say-As child.
- *
- * @param string $words Words to be interpreted
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function say_As($words, $attributes = array()) {
- return $this->nest(new SsmlSayAs($words, $attributes));
- }
-
- /**
- * Add Sub child.
- *
- * @param string $words Words to be substituted
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function sub($words, $attributes = array()) {
- return $this->nest(new SsmlSub($words, $attributes));
- }
-
- /**
- * Add W child.
- *
- * @param string $words Words to speak
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function w($words, $attributes = array()) {
- return $this->nest(new SsmlW($words, $attributes));
- }
-
- /**
- * Add Voice attribute.
- *
- * @param say:Enum:Voice $voice Voice to use
- * @return TwiML $this.
- */
- public function setVoice($voice) {
- return $this->setAttribute('voice', $voice);
- }
-
- /**
- * Add Loop attribute.
- *
- * @param integer $loop Times to loop message
- * @return TwiML $this.
- */
- public function setLoop($loop) {
- return $this->setAttribute('loop', $loop);
- }
-
- /**
- * Add Language attribute.
- *
- * @param say:Enum:Language $language Message langauge
- * @return TwiML $this.
- */
- public function setLanguage($language) {
- return $this->setAttribute('language', $language);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Sim.php b/public/twilio-php/Twilio/TwiML/Voice/Sim.php
deleted file mode 100644
index b19f922..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Sim.php
+++ /dev/null
@@ -1,23 +0,0 @@
-setAttribute('username', $username);
- }
-
- /**
- * Add Password attribute.
- *
- * @param string $password SIP Password
- * @return TwiML $this.
- */
- public function setPassword($password) {
- return $this->setAttribute('password', $password);
- }
-
- /**
- * Add Url attribute.
- *
- * @param url $url Action URL
- * @return TwiML $this.
- */
- public function setUrl($url) {
- return $this->setAttribute('url', $url);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add StatusCallbackEvent attribute.
- *
- * @param sip:Enum:Event $statusCallbackEvent Status callback events
- * @return TwiML $this.
- */
- public function setStatusCallbackEvent($statusCallbackEvent) {
- return $this->setAttribute('statusCallbackEvent', $statusCallbackEvent);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status callback URL
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-
- /**
- * Add StatusCallbackMethod attribute.
- *
- * @param httpMethod $statusCallbackMethod Status callback URL method
- * @return TwiML $this.
- */
- public function setStatusCallbackMethod($statusCallbackMethod) {
- return $this->setAttribute('statusCallbackMethod', $statusCallbackMethod);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Sms.php b/public/twilio-php/Twilio/TwiML/Voice/Sms.php
deleted file mode 100644
index 6c2102b..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Sms.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setAttribute('to', $to);
- }
-
- /**
- * Add From attribute.
- *
- * @param phoneNumber $from Number to send message from
- * @return TwiML $this.
- */
- public function setFrom($from) {
- return $this->setAttribute('from', $from);
- }
-
- /**
- * Add Action attribute.
- *
- * @param url $action Action URL
- * @return TwiML $this.
- */
- public function setAction($action) {
- return $this->setAttribute('action', $action);
- }
-
- /**
- * Add Method attribute.
- *
- * @param httpMethod $method Action URL method
- * @return TwiML $this.
- */
- public function setMethod($method) {
- return $this->setAttribute('method', $method);
- }
-
- /**
- * Add StatusCallback attribute.
- *
- * @param url $statusCallback Status callback URL
- * @return TwiML $this.
- */
- public function setStatusCallback($statusCallback) {
- return $this->setAttribute('statusCallback', $statusCallback);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlBreak.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlBreak.php
deleted file mode 100644
index 41ac692..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlBreak.php
+++ /dev/null
@@ -1,44 +0,0 @@
-setAttribute('strength', $strength);
- }
-
- /**
- * Add Time attribute.
- *
- * @param string $time Set a pause to a specific length of time in seconds or
- * milliseconds, available values: [number]s, [number]ms
- * @return TwiML $this.
- */
- public function setTime($time) {
- return $this->setAttribute('time', $time);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlEmphasis.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlEmphasis.php
deleted file mode 100644
index 5cde350..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlEmphasis.php
+++ /dev/null
@@ -1,34 +0,0 @@
-setAttribute('level', $level);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlLang.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlLang.php
deleted file mode 100644
index b274a9e..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlLang.php
+++ /dev/null
@@ -1,34 +0,0 @@
-setAttribute('xml:Lang', $xmlLang);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlP.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlP.php
deleted file mode 100644
index ec85c2f..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlP.php
+++ /dev/null
@@ -1,23 +0,0 @@
-setAttribute('alphabet', $alphabet);
- }
-
- /**
- * Add Ph attribute.
- *
- * @param string $ph Specifiy the phonetic symbols for pronunciation
- * @return TwiML $this.
- */
- public function setPh($ph) {
- return $this->setAttribute('ph', $ph);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlProsody.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlProsody.php
deleted file mode 100644
index a509134..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlProsody.php
+++ /dev/null
@@ -1,57 +0,0 @@
-setAttribute('volume', $volume);
- }
-
- /**
- * Add Rate attribute.
- *
- * @param string $rate Specify the rate, available values: x-slow, slow,
- * medium, fast, x-fast, n%
- * @return TwiML $this.
- */
- public function setRate($rate) {
- return $this->setAttribute('rate', $rate);
- }
-
- /**
- * Add Pitch attribute.
- *
- * @param string $pitch Specify the pitch, available values: default, x-low,
- * low, medium, high, x-high, +n%, -n%
- * @return TwiML $this.
- */
- public function setPitch($pitch) {
- return $this->setAttribute('pitch', $pitch);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlS.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlS.php
deleted file mode 100644
index ee79920..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlS.php
+++ /dev/null
@@ -1,23 +0,0 @@
-setAttribute('interpret-as', $interpretAs);
- }
-
- /**
- * Add Role attribute.
- *
- * @param ssmlSayAs:Enum:Role $role Specify the format of the date when
- * interpret-as is set to date
- * @return TwiML $this.
- */
- public function setRole($role) {
- return $this->setAttribute('role', $role);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlSub.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlSub.php
deleted file mode 100644
index 1d5f705..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlSub.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setAttribute('alias', $alias);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/SsmlW.php b/public/twilio-php/Twilio/TwiML/Voice/SsmlW.php
deleted file mode 100644
index c94cc9b..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/SsmlW.php
+++ /dev/null
@@ -1,35 +0,0 @@
-setAttribute('role', $role);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/Voice/Task.php b/public/twilio-php/Twilio/TwiML/Voice/Task.php
deleted file mode 100644
index 9197b7f..0000000
--- a/public/twilio-php/Twilio/TwiML/Voice/Task.php
+++ /dev/null
@@ -1,44 +0,0 @@
-setAttribute('priority', $priority);
- }
-
- /**
- * Add Timeout attribute.
- *
- * @param integer $timeout Timeout associated with task
- * @return TwiML $this.
- */
- public function setTimeout($timeout) {
- return $this->setAttribute('timeout', $timeout);
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/TwiML/VoiceResponse.php b/public/twilio-php/Twilio/TwiML/VoiceResponse.php
deleted file mode 100644
index 998152f..0000000
--- a/public/twilio-php/Twilio/TwiML/VoiceResponse.php
+++ /dev/null
@@ -1,193 +0,0 @@
-nest(new Voice\Connect($attributes));
- }
-
- /**
- * Add Dial child.
- *
- * @param string $number Phone number to dial
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function dial($number, $attributes = array()) {
- return $this->nest(new Voice\Dial($number, $attributes));
- }
-
- /**
- * Add Echo child.
- *
- * @return TwiML Child element.
- */
- public function echo_() {
- return $this->nest(new Voice\Echo_());
- }
-
- /**
- * Add Enqueue child.
- *
- * @param string $name Friendly name
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function enqueue($name = null, $attributes = array()) {
- return $this->nest(new Voice\Enqueue($name, $attributes));
- }
-
- /**
- * Add Gather child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function gather($attributes = array()) {
- return $this->nest(new Voice\Gather($attributes));
- }
-
- /**
- * Add Hangup child.
- *
- * @return TwiML Child element.
- */
- public function hangup() {
- return $this->nest(new Voice\Hangup());
- }
-
- /**
- * Add Leave child.
- *
- * @return TwiML Child element.
- */
- public function leave() {
- return $this->nest(new Voice\Leave());
- }
-
- /**
- * Add Pause child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function pause($attributes = array()) {
- return $this->nest(new Voice\Pause($attributes));
- }
-
- /**
- * Add Play child.
- *
- * @param url $url Media URL
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function play($url = null, $attributes = array()) {
- return $this->nest(new Voice\Play($url, $attributes));
- }
-
- /**
- * Add Queue child.
- *
- * @param string $name Queue name
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function queue($name, $attributes = array()) {
- return $this->nest(new Voice\Queue($name, $attributes));
- }
-
- /**
- * Add Record child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function record($attributes = array()) {
- return $this->nest(new Voice\Record($attributes));
- }
-
- /**
- * Add Redirect child.
- *
- * @param url $url Redirect URL
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function redirect($url, $attributes = array()) {
- return $this->nest(new Voice\Redirect($url, $attributes));
- }
-
- /**
- * Add Reject child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function reject($attributes = array()) {
- return $this->nest(new Voice\Reject($attributes));
- }
-
- /**
- * Add Say child.
- *
- * @param string $message Message to say
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function say($message, $attributes = array()) {
- return $this->nest(new Voice\Say($message, $attributes));
- }
-
- /**
- * Add Sms child.
- *
- * @param string $message Message body
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function sms($message, $attributes = array()) {
- return $this->nest(new Voice\Sms($message, $attributes));
- }
-
- /**
- * Add Pay child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function pay($attributes = array()) {
- return $this->nest(new Voice\Pay($attributes));
- }
-
- /**
- * Add Prompt child.
- *
- * @param array $attributes Optional attributes
- * @return TwiML Child element.
- */
- public function prompt($attributes = array()) {
- return $this->nest(new Voice\Prompt($attributes));
- }
-}
\ No newline at end of file
diff --git a/public/twilio-php/Twilio/Twiml.php b/public/twilio-php/Twilio/Twiml.php
deleted file mode 100644
index 4d1968b..0000000
--- a/public/twilio-php/Twilio/Twiml.php
+++ /dev/null
@@ -1,141 +0,0 @@
-element = $arg;
- break;
- case $arg === null:
- $this->element = new \SimpleXMLElement('');
- break;
- case is_array($arg):
- $this->element = new \SimpleXMLElement('');
- foreach ($arg as $name => $value) {
- $this->element->addAttribute($name, $value);
- }
- break;
- default:
- throw new TwimlException('Invalid argument');
- }
- }
-
- /**
- * Converts method calls into Twiml verbs.
- *
- * A basic example:
- *
- * .. code-block:: php
- *
- * php> print $this->say('hello');
- * hello
- *
- * An example with attributes:
- *
- * .. code-block:: php
- *
- * print $this->say('hello', array('voice' => 'woman'));
- * hello
- *
- * You could even just pass in an attributes array, omitting the noun:
- *
- * .. code-block:: php
- *
- * print $this->gather(array('timeout' => '20'));
- *
- *
- * @param string $verb The Twiml verb.
- * @param mixed[] $args
- * @return self
- * :param string $verb: The Twiml verb.
- * :param array $args:
- * - (noun string)
- * - (noun string, attributes array)
- * - (attributes array)
- *
- * :return: A SimpleXmlElement
- * :rtype: SimpleXmlElement
- */
- public function __call($verb, array $args) {
- list($noun, $attrs) = $args + array('', array());
- if (is_array($noun)) {
- list($attrs, $noun) = array($noun, '');
- }
- /* addChild does not escape XML, while addAttribute does. This means if
- * you pass unescaped ampersands ("&") to addChild, you will generate
- * an error.
- *
- * Some inexperienced developers will pass in unescaped ampersands, and
- * we want to make their code work, by escaping the ampersands for them
- * before passing the string to addChild. (with htmlentities)
- *
- * However other people will know what to do, and their code
- * already escapes ampersands before passing them to addChild. We don't
- * want to break their existing code by turning their &'s into
- * &
- *
- * We also want to use numeric entities, not named entities so that we
- * are fully compatible with XML
- *
- * The following lines accomplish the desired behavior.
- */
- $decoded = html_entity_decode($noun, ENT_COMPAT, 'UTF-8');
- $normalized = htmlspecialchars($decoded, ENT_COMPAT, 'UTF-8', false);
- $hasNoun = is_scalar($noun) && strlen($noun);
- $child = $hasNoun
- ? $this->element->addChild(ucfirst($verb), $normalized)
- : $this->element->addChild(ucfirst($verb));
-
- if (is_array($attrs)) {
- foreach ($attrs as $name => $value) {
- /* Note that addAttribute escapes raw ampersands by default, so we
- * haven't touched its implementation. So this is the matrix for
- * addAttribute:
- *
- * & turns into &
- * & turns into &
- */
- if (is_bool($value)) {
- $value = ($value === true) ? 'true' : 'false';
- }
- $child->addAttribute($name, $value);
- }
- }
- return new static($child);
- }
-
- /**
- * Returns the object as XML.
- *
- * :return: The response as an XML string
- * :rtype: string
- */
- public function __toString() {
- $xml = $this->element->asXML();
- return (string)str_replace(
- '',
- '', $xml);
- }
-}
diff --git a/public/twilio-php/Twilio/Values.php b/public/twilio-php/Twilio/Values.php
deleted file mode 100644
index f612c59..0000000
--- a/public/twilio-php/Twilio/Values.php
+++ /dev/null
@@ -1,97 +0,0 @@
- $value) {
- if ($value === self::NONE) {
- continue;
- }
- $result[$key] = $value;
- }
- return $result;
- }
-
- public function __construct($options) {
- $this->options = array();
- foreach ($options as $key => $value) {
- $this->options[strtolower($key)] = $value;
- }
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Whether a offset exists
- * @link http://php.net/manual/en/arrayaccess.offsetexists.php
- * @param mixed $offset
- * An offset to check for.
- *
- * @return boolean true on success or false on failure.
- *
- *
- * The return value will be casted to boolean if non-boolean was returned.
- */
- public function offsetExists($offset) {
- return true;
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Offset to retrieve
- * @link http://php.net/manual/en/arrayaccess.offsetget.php
- * @param mixed $offset
- * The offset to retrieve.
- *
- * @return mixed Can return all value types.
- */
- public function offsetGet($offset) {
- $offset = strtolower($offset);
- return array_key_exists($offset, $this->options) ? $this->options[$offset] : self::NONE;
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Offset to set
- * @link http://php.net/manual/en/arrayaccess.offsetset.php
- * @param mixed $offset
- * The offset to assign the value to.
- *
- * @param mixed $value
- * The value to set.
- *
- * @return void
- */
- public function offsetSet($offset, $value) {
- $this->options[strtolower($offset)] = $value;
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Offset to unset
- * @link http://php.net/manual/en/arrayaccess.offsetunset.php
- * @param mixed $offset
- * The offset to unset.
- *
- * @return void
- */
- public function offsetUnset($offset) {
- unset($this->options[$offset]);
- }
-
-
-}
diff --git a/public/twilio-php/Twilio/Version.php b/public/twilio-php/Twilio/Version.php
deleted file mode 100644
index b5b4af7..0000000
--- a/public/twilio-php/Twilio/Version.php
+++ /dev/null
@@ -1,235 +0,0 @@
-domain = $domain;
- $this->version = null;
- }
-
- /**
- * Generate an absolute URL from a version relative uri
- * @param string $uri Version relative uri
- * @return string Absolute URL
- */
- public function absoluteUrl($uri) {
- return $this->getDomain()->absoluteUrl($this->relativeUri($uri));
- }
-
- /**
- * Generate a domain relative uri from a version relative uri
- * @param string $uri Version relative uri
- * @return string Domain relative uri
- */
- public function relativeUri($uri) {
- return trim($this->version, '/') . '/' . trim($uri, '/');
- }
-
- public function request($method, $uri, $params = array(), $data = array(),
- $headers = array(), $username = null,
- $password = null, $timeout = null) {
- $uri = $this->relativeUri($uri);
- return $this->getDomain()->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
- }
-
- /**
- * Create the best possible exception for the response.
- *
- * Attempts to parse the response for Twilio Standard error messages and use
- * those to populate the exception, falls back to generic error message and
- * HTTP status code.
- *
- * @param Response $response Error response
- * @param string $header Header for exception message
- * @return TwilioException
- */
- protected function exception($response, $header) {
- $message = '[HTTP ' . $response->getStatusCode() . '] ' . $header;
-
- $content = $response->getContent();
- if (is_array($content)) {
- $message .= isset($content['message']) ? ': ' . $content['message'] : '';
- $code = isset($content['code']) ? $content['code'] : $response->getStatusCode();
- return new RestException($message, $code, $response->getStatusCode());
- } else {
- return new RestException($message, $response->getStatusCode(), $response->getStatusCode());
- }
- }
-
- /**
- * @throws TwilioException
- */
- public function fetch($method, $uri, $params = array(), $data = array(),
- $headers = array(), $username = null,
- $password = null, $timeout = null) {
- $response = $this->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
-
- if ($response->getStatusCode() < 200 || $response->getStatusCode() >= 300) {
- throw $this->exception($response, 'Unable to fetch record');
- }
-
- return $response->getContent();
- }
-
- /**
- * @throws TwilioException
- */
- public function update($method, $uri, $params = array(), $data = array(),
- $headers = array(), $username = null,
- $password = null, $timeout = null) {
- $response = $this->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
-
- if ($response->getStatusCode() < 200 || $response->getStatusCode() >= 300) {
- throw $this->exception($response, 'Unable to update record');
- }
-
- return $response->getContent();
- }
-
- /**
- * @throws TwilioException
- */
- public function delete($method, $uri, $params = array(), $data = array(),
- $headers = array(), $username = null,
- $password = null, $timeout = null) {
- $response = $this->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
-
- if ($response->getStatusCode() < 200 || $response->getStatusCode() >= 300) {
- throw $this->exception($response, 'Unable to delete record');
- }
-
- return $response->getStatusCode() == 204;
- }
-
- public function readLimits($limit = null, $pageSize = null) {
- $pageLimit = Values::NONE;
-
- if ($limit) {
- if (is_null($pageSize)) {
- $pageSize = min($limit, self::MAX_PAGE_SIZE);
- }
- $pageLimit = (int)(ceil($limit / (float)$pageSize));
- }
-
- $pageSize = min($pageSize, self::MAX_PAGE_SIZE);
-
- return array(
- 'limit' => $limit ?: Values::NONE,
- 'pageSize' => $pageSize ?: Values::NONE,
- 'pageLimit' => $pageLimit,
- );
- }
-
- public function page($method, $uri, $params = array(), $data = array(),
- $headers = array(), $username = null,
- $password = null, $timeout = null) {
- return $this->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
- }
-
- public function stream($page, $limit = null, $pageLimit = null) {
- return new Stream($page, $limit, $pageLimit);
- }
-
- /**
- * @throws TwilioException
- */
- public function create($method, $uri, $params = array(), $data = array(),
- $headers = array(), $username = null,
- $password = null, $timeout = null) {
- $response = $this->request(
- $method,
- $uri,
- $params,
- $data,
- $headers,
- $username,
- $password,
- $timeout
- );
-
- if ($response->getStatusCode() < 200 || $response->getStatusCode() >= 300) {
- throw $this->exception($response, 'Unable to create record');
- }
-
- return $response->getContent();
- }
-
- /**
- * @return \Twilio\Domain $domain
- */
- public function getDomain() {
- return $this->domain;
- }
-
- public function __toString() {
- return '[Version]';
- }
-}
diff --git a/public/twilio-php/Twilio/VersionInfo.php b/public/twilio-php/Twilio/VersionInfo.php
deleted file mode 100644
index ffb9877..0000000
--- a/public/twilio-php/Twilio/VersionInfo.php
+++ /dev/null
@@ -1,15 +0,0 @@
-.
- */
-
-/**
- * SplClassLoader implementation that implements the technical interoperability
- * standards for PHP 5.3 namespaces and class names.
- *
- * http://groups.google.com/group/php-standards/web/psr-0-final-proposal?pli=1
- *
- * // Example which loads classes for the Doctrine Common package in the
- * // Doctrine\Common namespace.
- * $classLoader = new SplClassLoader('Doctrine\Common', '/path/to/doctrine');
- * $classLoader->register();
- *
- * @license http://www.opensource.org/licenses/mit-license.html MIT License
- * @author Jonathan H. Wage
- * @author Roman S. Borschel
- * @author Matthew Weier O'Phinney
- * @author Kris Wallsmith
- * @author Fabien Potencier
- */
-class SplClassLoader {
- private $_fileExtension = '.php';
- private $_namespace;
- private $_includePath;
- private $_namespaceSeparator = '\\';
-
- /**
- * Creates a new SplClassLoader that loads classes of the
- * specified namespace.
- *
- * @param string $ns The namespace to use.
- * @param string $includePath The include path to search
- */
- public function __construct($ns = null, $includePath = null) {
- $this->_namespace = $ns;
- $this->_includePath = $includePath;
- }
-
- /**
- * Sets the namespace separator used by classes in the namespace of this class loader.
- *
- * @param string $sep The separator to use.
- */
- public function setNamespaceSeparator($sep) {
- $this->_namespaceSeparator = $sep;
- }
-
- /**
- * Gets the namespace separator used by classes in the namespace of this class loader.
- *
- * @return string The separator to use.
- */
- public function getNamespaceSeparator() {
- return $this->_namespaceSeparator;
- }
-
- /**
- * Sets the base include path for all class files in the namespace of this class loader.
- *
- * @param string $includePath
- */
- public function setIncludePath($includePath) {
- $this->_includePath = $includePath;
- }
-
- /**
- * Gets the base include path for all class files in the namespace of this class loader.
- *
- * @return string $includePath
- */
- public function getIncludePath() {
- return $this->_includePath;
- }
-
- /**
- * Sets the file extension of class files in the namespace of this class loader.
- *
- * @param string $fileExtension
- */
- public function setFileExtension($fileExtension) {
- $this->_fileExtension = $fileExtension;
- }
-
- /**
- * Gets the file extension of class files in the namespace of this class loader.
- *
- * @return string $fileExtension
- */
- public function getFileExtension() {
- return $this->_fileExtension;
- }
-
- /**
- * Installs this class loader on the SPL autoload stack.
- */
- public function register() {
- spl_autoload_register(array($this, 'loadClass'));
- }
-
- /**
- * Uninstalls this class loader from the SPL autoloader stack.
- */
- public function unregister() {
- spl_autoload_unregister(array($this, 'loadClass'));
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $className The name of the class to load.
- * @return void
- */
- public function loadClass($className) {
- if (null === $this->_namespace || $this->_namespace . $this->_namespaceSeparator === substr($className, 0, strlen($this->_namespace . $this->_namespaceSeparator))) {
- $fileName = '';
- $namespace = '';
- if (false !== ($lastNsPos = strripos($className, $this->_namespaceSeparator))) {
- $namespace = substr($className, 0, $lastNsPos);
- $className = substr($className, $lastNsPos + 1);
- $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
- }
- $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . $this->_fileExtension;
- require ($this->_includePath !== null ? $this->_includePath . DIRECTORY_SEPARATOR : '') . $fileName;
- }
- }
-}
-
-$twilioClassLoader = new SplClassLoader('Twilio', realpath(__DIR__ . DIRECTORY_SEPARATOR . '..'));
-$twilioClassLoader->register();
\ No newline at end of file
diff --git a/public/twilio-php/composer.json b/public/twilio-php/composer.json
deleted file mode 100644
index 3cff676..0000000
--- a/public/twilio-php/composer.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "twilio/sdk",
- "type": "library",
- "description": "A PHP wrapper for Twilio's API",
- "keywords": ["twilio", "sms", "api"],
- "homepage": "http://github.com/twilio/twilio-php",
- "license": "MIT",
- "authors": [
- {
- "name": "Twilio API Team",
- "email": "api@twilio.com"
- }
- ],
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.5.*",
- "apigen/apigen": "^4.1"
- },
- "autoload": {
- "psr-4": {
- "Twilio\\": "Twilio/"
- }
- }
-}
diff --git a/public/twilio-php/composer.lock b/public/twilio-php/composer.lock
deleted file mode 100644
index 500b443..0000000
--- a/public/twilio-php/composer.lock
+++ /dev/null
@@ -1,3524 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "b10113346f88abb8d40e1422c02f7bca",
- "packages": [],
- "packages-dev": [
- {
- "name": "andrewsville/php-token-reflection",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Andrewsville/PHP-Token-Reflection.git",
- "reference": "e6d0ac2baf66cdf154be34c3d2a2aa1bd4b426ee"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Andrewsville/PHP-Token-Reflection/zipball/e6d0ac2baf66cdf154be34c3d2a2aa1bd4b426ee",
- "reference": "e6d0ac2baf66cdf154be34c3d2a2aa1bd4b426ee",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.0"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "TokenReflection": "./"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3"
- ],
- "authors": [
- {
- "name": "Ondřej Nešpor",
- "homepage": "https://github.com/andrewsville"
- },
- {
- "name": "Jaroslav Hanslík",
- "homepage": "https://github.com/kukulich"
- }
- ],
- "description": "Library emulating the PHP internal reflection using just the tokenized source code.",
- "homepage": "http://andrewsville.github.com/PHP-Token-Reflection/",
- "keywords": [
- "library",
- "reflection",
- "tokenizer"
- ],
- "support": {
- "issues": "https://github.com/Andrewsville/PHP-Token-Reflection/issues",
- "source": "https://github.com/Andrewsville/PHP-Token-Reflection/tree/1.4.0"
- },
- "time": "2014-08-06T16:37:08+00:00"
- },
- {
- "name": "apigen/apigen",
- "version": "v4.1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/ApiGen/ApiGen.git",
- "reference": "3365433ea3433b0e5c8f763608f8e63cbedb2a3a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ApiGen/ApiGen/zipball/3365433ea3433b0e5c8f763608f8e63cbedb2a3a",
- "reference": "3365433ea3433b0e5c8f763608f8e63cbedb2a3a",
- "shasum": ""
- },
- "require": {
- "andrewsville/php-token-reflection": "~1.4",
- "apigen/theme-bootstrap": "~1.1.2",
- "apigen/theme-default": "~1.0.1",
- "herrera-io/phar-update": "~2.0",
- "kdyby/events": "~2.0",
- "kukulich/fshl": "~2.1",
- "latte/latte": ">=2.2.0,<2.3.5",
- "michelf/php-markdown": "~1.4",
- "nette/application": "~2.2",
- "nette/bootstrap": "~2.2",
- "nette/di": "~2.2",
- "nette/mail": "~2.2",
- "nette/neon": "~2.2",
- "nette/robot-loader": "~2.2",
- "nette/safe-stream": "~2.2",
- "php": ">=5.4",
- "symfony/console": "~2.6",
- "symfony/options-resolver": "~2.6.1",
- "symfony/yaml": "~2.6",
- "tracy/tracy": "~2.2"
- },
- "require-dev": {
- "herrera-io/box": "~1.6",
- "mockery/mockery": "~0.9"
- },
- "bin": [
- "bin/apigen"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ApiGen\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "http://davidgrudl.com"
- },
- {
- "name": "Ondřej Nešpor",
- "homepage": "https://github.com/andrewsville"
- },
- {
- "name": "Jaroslav Hanslík",
- "homepage": "https://github.com/kukulich"
- },
- {
- "name": "Tomáš Votruba",
- "email": "tomas.vot@gmail.com"
- },
- {
- "name": "Olivier Laviale",
- "homepage": "https://github.com/olvlvl"
- }
- ],
- "description": "PHP source code API generator",
- "homepage": "http://apigen.org/",
- "keywords": [
- "api",
- "documentation",
- "generator",
- "phpdoc"
- ],
- "support": {
- "issues": "https://github.com/ApiGen/ApiGen/issues",
- "source": "https://github.com/ApiGen/ApiGen/tree/v4.1.2"
- },
- "time": "2015-11-29T20:11:30+00:00"
- },
- {
- "name": "apigen/theme-bootstrap",
- "version": "v1.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/ApiGen/ThemeBootstrap.git",
- "reference": "55a35b4a3a9a5fcaa6a8fc43fb304983cab98c6c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ApiGen/ThemeBootstrap/zipball/55a35b4a3a9a5fcaa6a8fc43fb304983cab98c6c",
- "reference": "55a35b4a3a9a5fcaa6a8fc43fb304983cab98c6c",
- "shasum": ""
- },
- "require": {
- "latte/latte": "~2.2"
- },
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Tomáš Votruba",
- "email": "tomas.vot@gmail.com"
- },
- {
- "name": "Olivier Laviale",
- "homepage": "https://github.com/olvlvl"
- }
- ],
- "description": "Twitter Bootstrap theme for ApiGen",
- "homepage": "http://apigen.org/",
- "support": {
- "issues": "https://github.com/ApiGen/ThemeBootstrap/issues",
- "source": "https://github.com/ApiGen/ThemeBootstrap/tree/master"
- },
- "abandoned": "apigen/apigen",
- "time": "2015-10-11T14:52:50+00:00"
- },
- {
- "name": "apigen/theme-default",
- "version": "v1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/ApiGen/ThemeDefault.git",
- "reference": "51648cf83645d9ae6c655fe46bcd26a347d45336"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ApiGen/ThemeDefault/zipball/51648cf83645d9ae6c655fe46bcd26a347d45336",
- "reference": "51648cf83645d9ae6c655fe46bcd26a347d45336",
- "shasum": ""
- },
- "require": {
- "latte/latte": "~2.2"
- },
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "http://davidgrudl.com"
- },
- {
- "name": "Ondřej Nešpor",
- "homepage": "https://github.com/andrewsville"
- },
- {
- "name": "Jaroslav Hanslík",
- "homepage": "https://github.com/kukulich"
- },
- {
- "name": "Tomáš Votruba",
- "email": "tomas.vot@gmail.com"
- },
- {
- "name": "Olivier Laviale",
- "homepage": "https://github.com/olvlvl"
- }
- ],
- "description": "Default theme for ApiGen",
- "homepage": "http://apigen.org/",
- "support": {
- "issues": "https://github.com/ApiGen/ThemeDefault/issues",
- "source": "https://github.com/ApiGen/ThemeDefault/tree/master"
- },
- "abandoned": "apigen/apigen",
- "time": "2015-10-11T14:55:30+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc",
- "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc",
- "shasum": ""
- },
- "require": {
- "php": "^7.1 || ^8.0"
- },
- "require-dev": {
- "doctrine/coding-standard": "^9",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpbench/phpbench": "^0.16 || ^1",
- "phpstan/phpstan": "^1.4",
- "phpstan/phpstan-phpunit": "^1",
- "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
- "vimeo/psalm": "^4.22"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "https://ocramius.github.io/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "support": {
- "issues": "https://github.com/doctrine/instantiator/issues",
- "source": "https://github.com/doctrine/instantiator/tree/1.4.1"
- },
- "funding": [
- {
- "url": "https://www.doctrine-project.org/sponsorship.html",
- "type": "custom"
- },
- {
- "url": "https://www.patreon.com/phpdoctrine",
- "type": "patreon"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
- "type": "tidelift"
- }
- ],
- "time": "2022-03-03T08:28:38+00:00"
- },
- {
- "name": "herrera-io/json",
- "version": "1.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/kherge-php/json.git",
- "reference": "60c696c9370a1e5136816ca557c17f82a6fa83f1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/kherge-php/json/zipball/60c696c9370a1e5136816ca557c17f82a6fa83f1",
- "reference": "60c696c9370a1e5136816ca557c17f82a6fa83f1",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "justinrainbow/json-schema": ">=1.0,<2.0-dev",
- "php": ">=5.3.3",
- "seld/jsonlint": ">=1.0,<2.0-dev"
- },
- "require-dev": {
- "herrera-io/phpunit-test-case": "1.*",
- "mikey179/vfsstream": "1.1.0",
- "phpunit/phpunit": "3.7.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "files": [
- "src/lib/json_version.php"
- ],
- "psr-0": {
- "Herrera\\Json": "src/lib"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kevin Herrera",
- "email": "kevin@herrera.io",
- "homepage": "http://kevin.herrera.io"
- }
- ],
- "description": "A library for simplifying JSON linting and validation.",
- "homepage": "http://herrera-io.github.com/php-json",
- "keywords": [
- "json",
- "lint",
- "schema",
- "validate"
- ],
- "support": {
- "issues": "https://github.com/herrera-io/php-json/issues",
- "source": "https://github.com/kherge-php/json/tree/1.0.3"
- },
- "abandoned": "kherge/json",
- "time": "2013-10-30T16:51:34+00:00"
- },
- {
- "name": "herrera-io/phar-update",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/kherge-archive/php-phar-update.git",
- "reference": "15643c90d3d43620a4f45c910e6afb7a0ad4b488"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/kherge-archive/php-phar-update/zipball/15643c90d3d43620a4f45c910e6afb7a0ad4b488",
- "reference": "15643c90d3d43620a4f45c910e6afb7a0ad4b488",
- "shasum": ""
- },
- "require": {
- "herrera-io/json": "1.*",
- "herrera-io/version": "1.*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "herrera-io/phpunit-test-case": "1.*",
- "mikey179/vfsstream": "1.1.0",
- "phpunit/phpunit": "3.7.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "files": [
- "src/lib/constants.php"
- ],
- "psr-0": {
- "Herrera\\Phar\\Update": "src/lib"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kevin Herrera",
- "email": "kevin@herrera.io",
- "homepage": "http://kevin.herrera.io"
- }
- ],
- "description": "A library for self-updating Phars.",
- "homepage": "http://herrera-io.github.com/php-phar-update",
- "keywords": [
- "phar",
- "update"
- ],
- "support": {
- "issues": "https://github.com/herrera-io/php-phar-update/issues",
- "source": "https://github.com/kherge-archive/php-phar-update/tree/2.0.0"
- },
- "abandoned": true,
- "time": "2013-11-09T17:13:13+00:00"
- },
- {
- "name": "herrera-io/version",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/kherge-archive/php-version.git",
- "reference": "d39d9642b92a04d8b8a28b871b797a35a2545e85"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/kherge-archive/php-version/zipball/d39d9642b92a04d8b8a28b871b797a35a2545e85",
- "reference": "d39d9642b92a04d8b8a28b871b797a35a2545e85",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "herrera-io/phpunit-test-case": "1.*",
- "phpunit/phpunit": "3.7.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Herrera\\Version": "src/lib"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kevin Herrera",
- "email": "kevin@herrera.io",
- "homepage": "http://kevin.herrera.io"
- }
- ],
- "description": "A library for creating, editing, and comparing semantic versioning numbers.",
- "homepage": "http://github.com/herrera-io/php-version",
- "keywords": [
- "semantic",
- "version"
- ],
- "support": {
- "forum": "https://groups.google.com/d/forum/herrera-io-users",
- "issues": "https://github.com/herrera-io/php-version/issues",
- "source": "https://github.com/kherge-archive/php-version/tree/1.1.1"
- },
- "abandoned": "kherge/semver",
- "time": "2014-05-27T05:29:25+00:00"
- },
- {
- "name": "justinrainbow/json-schema",
- "version": "1.6.1",
- "source": {
- "type": "git",
- "url": "https://github.com/justinrainbow/json-schema.git",
- "reference": "cc84765fb7317f6b07bd8ac78364747f95b86341"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/cc84765fb7317f6b07bd8ac78364747f95b86341",
- "reference": "cc84765fb7317f6b07bd8ac78364747f95b86341",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.29"
- },
- "require-dev": {
- "json-schema/json-schema-test-suite": "1.1.0",
- "phpdocumentor/phpdocumentor": "~2",
- "phpunit/phpunit": "~3.7"
- },
- "bin": [
- "bin/validate-json"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "JsonSchema\\": "src/JsonSchema/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Bruno Prieto Reis",
- "email": "bruno.p.reis@gmail.com"
- },
- {
- "name": "Justin Rainbow",
- "email": "justin.rainbow@gmail.com"
- },
- {
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
- },
- {
- "name": "Robert Schönthal",
- "email": "seroscho@googlemail.com"
- }
- ],
- "description": "A library to validate a json schema.",
- "homepage": "https://github.com/justinrainbow/json-schema",
- "keywords": [
- "json",
- "schema"
- ],
- "support": {
- "issues": "https://github.com/justinrainbow/json-schema/issues",
- "source": "https://github.com/justinrainbow/json-schema/tree/master"
- },
- "time": "2016-01-25T15:43:01+00:00"
- },
- {
- "name": "kdyby/events",
- "version": "v2.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Kdyby/Events.git",
- "reference": "d8a0e8a64a59f501996f8f9591aa3f950208f091"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Kdyby/Events/zipball/d8a0e8a64a59f501996f8f9591aa3f950208f091",
- "reference": "d8a0e8a64a59f501996f8f9591aa3f950208f091",
- "shasum": ""
- },
- "require": {
- "nette/di": "~2.3@dev",
- "nette/utils": "~2.3@dev"
- },
- "require-dev": {
- "latte/latte": "~2.3@dev",
- "nette/application": "~2.3@dev",
- "nette/bootstrap": "~2.3@dev",
- "nette/caching": "~2.3@dev",
- "nette/component-model": "~2.2@dev",
- "nette/database": "~2.3@dev",
- "nette/deprecated": "~2.3@dev",
- "nette/di": "~2.3@dev",
- "nette/finder": "~2.3@dev",
- "nette/forms": "~2.3@dev",
- "nette/http": "~2.3@dev",
- "nette/mail": "~2.3@dev",
- "nette/neon": "~2.3@dev",
- "nette/php-generator": "~2.3@dev",
- "nette/reflection": "~2.3@dev",
- "nette/robot-loader": "~2.3@dev",
- "nette/safe-stream": "~2.3@dev",
- "nette/security": "~2.3@dev",
- "nette/tester": "~1.4",
- "nette/tokenizer": "~2.2@dev",
- "nette/utils": "~2.3@dev",
- "symfony/event-dispatcher": "~2.3",
- "tracy/tracy": "~2.3@dev"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "files": [
- "src/Doctrine/compatibility.php"
- ],
- "psr-0": {
- "Kdyby\\Events\\": "src/"
- },
- "classmap": [
- "src/Kdyby/Events/exceptions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "Filip Procházka",
- "email": "filip@prochazka.su",
- "homepage": "http://filip-prochazka.com"
- }
- ],
- "description": "Events for Nette Framework",
- "homepage": "http://kdyby.org",
- "keywords": [
- "kdyby",
- "nette"
- ],
- "support": {
- "email": "filip@prochazka.su",
- "issues": "https://github.com/kdyby/events/issues",
- "source": "https://github.com/Kdyby/Events/tree/v2.4"
- },
- "time": "2016-04-19T11:19:31+00:00"
- },
- {
- "name": "kukulich/fshl",
- "version": "2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/kukulich/fshl.git",
- "reference": "974c294ade5d76c0c16b6fe3fd3a584ba999b24f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/kukulich/fshl/zipball/974c294ade5d76c0c16b6fe3fd3a584ba999b24f",
- "reference": "974c294ade5d76c0c16b6fe3fd3a584ba999b24f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "FSHL": "./"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Jaroslav Hanslík",
- "homepage": "https://github.com/kukulich"
- }
- ],
- "description": "FSHL is a free, open source, universal, fast syntax highlighter written in PHP.",
- "homepage": "http://fshl.kukulich.cz/",
- "keywords": [
- "highlight",
- "library",
- "syntax"
- ],
- "support": {
- "issues": "https://github.com/kukulich/fshl/issues",
- "source": "https://github.com/kukulich/fshl/tree/2.1.0"
- },
- "abandoned": true,
- "time": "2012-09-08T19:00:07+00:00"
- },
- {
- "name": "latte/latte",
- "version": "v2.3.4",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/latte.git",
- "reference": "5e891af999776d2204a9d06ad66ad8fa0bcd4f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/latte/zipball/5e891af999776d2204a9d06ad66ad8fa0bcd4f8b",
- "reference": "5e891af999776d2204a9d06ad66ad8fa0bcd4f8b",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.1"
- },
- "require-dev": {
- "nette/tester": "~1.3"
- },
- "suggest": {
- "ext-fileinfo": "to use filter |datastream",
- "ext-mbstring": "to use filters like lower, upper, capitalize, ..."
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "http://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "http://nette.org/contributors"
- }
- ],
- "description": "Latte: the amazing template engine for PHP",
- "homepage": "http://latte.nette.org",
- "keywords": [
- "templating",
- "twig"
- ],
- "support": {
- "issues": "https://github.com/nette/latte/issues",
- "source": "https://github.com/nette/latte/tree/v2.3.4"
- },
- "time": "2015-08-23T12:36:55+00:00"
- },
- {
- "name": "michelf/php-markdown",
- "version": "1.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/michelf/php-markdown.git",
- "reference": "5024d623c1a057dcd2d076d25b7d270a1d0d55f3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/michelf/php-markdown/zipball/5024d623c1a057dcd2d076d25b7d270a1d0d55f3",
- "reference": "5024d623c1a057dcd2d076d25b7d270a1d0d55f3",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": ">=4.3 <5.8"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Michelf\\": "Michelf/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Michel Fortin",
- "email": "michel.fortin@michelf.ca",
- "homepage": "https://michelf.ca/",
- "role": "Developer"
- },
- {
- "name": "John Gruber",
- "homepage": "https://daringfireball.net/"
- }
- ],
- "description": "PHP Markdown",
- "homepage": "https://michelf.ca/projects/php-markdown/",
- "keywords": [
- "markdown"
- ],
- "support": {
- "issues": "https://github.com/michelf/php-markdown/issues",
- "source": "https://github.com/michelf/php-markdown/tree/1.9.1"
- },
- "time": "2021-11-24T02:52:38+00:00"
- },
- {
- "name": "nette/application",
- "version": "v2.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/application.git",
- "reference": "c2d4def8fce2602d74f03ff29204da0ee708c9dc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/application/zipball/c2d4def8fce2602d74f03ff29204da0ee708c9dc",
- "reference": "c2d4def8fce2602d74f03ff29204da0ee708c9dc",
- "shasum": ""
- },
- "require": {
- "nette/component-model": "^2.3",
- "nette/http": "^2.2",
- "nette/reflection": "^2.2",
- "nette/utils": "^2.4.3",
- "php": ">=5.6 <8.1"
- },
- "conflict": {
- "nette/di": "<2.4",
- "nette/forms": "<2.4",
- "nette/latte": "<2.4 >=3.0",
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "latte/latte": "^2.4.3 <2.8",
- "mockery/mockery": "^1.0",
- "nette/di": "^2.4",
- "nette/forms": "^2.4",
- "nette/robot-loader": "^2.4.2 || ^3.0",
- "nette/security": "^2.4",
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.4"
- },
- "suggest": {
- "latte/latte": "Allows using Latte in templates",
- "nette/forms": "Allows to use Nette\\Application\\UI\\Form"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "🏆 Nette Application: a full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.",
- "homepage": "https://nette.org",
- "keywords": [
- "Forms",
- "component-based",
- "control",
- "framework",
- "mvc",
- "mvp",
- "nette",
- "presenter",
- "routing",
- "seo"
- ],
- "support": {
- "issues": "https://github.com/nette/application/issues",
- "source": "https://github.com/nette/application/tree/v2.4.17"
- },
- "time": "2020-11-24T19:05:35+00:00"
- },
- {
- "name": "nette/bootstrap",
- "version": "v2.4.6",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/bootstrap.git",
- "reference": "268816e3f1bb7426c3a4ceec2bd38a036b532543"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/bootstrap/zipball/268816e3f1bb7426c3a4ceec2bd38a036b532543",
- "reference": "268816e3f1bb7426c3a4ceec2bd38a036b532543",
- "shasum": ""
- },
- "require": {
- "nette/di": "~2.4.7",
- "nette/utils": "~2.4",
- "php": ">=5.6.0"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "latte/latte": "~2.2",
- "nette/application": "~2.3",
- "nette/caching": "~2.3",
- "nette/database": "~2.3",
- "nette/forms": "~2.3",
- "nette/http": "~2.4.0",
- "nette/mail": "~2.3",
- "nette/robot-loader": "^2.4.2 || ^3.0",
- "nette/safe-stream": "~2.2",
- "nette/security": "~2.3",
- "nette/tester": "~2.0",
- "tracy/tracy": "^2.4.1"
- },
- "suggest": {
- "nette/robot-loader": "to use Configurator::createRobotLoader()",
- "tracy/tracy": "to use Configurator::enableTracy()"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "? Nette Bootstrap: the simple way to configure and bootstrap your Nette application.",
- "homepage": "https://nette.org",
- "keywords": [
- "bootstrapping",
- "configurator",
- "nette"
- ],
- "support": {
- "issues": "https://github.com/nette/bootstrap/issues",
- "source": "https://github.com/nette/bootstrap/tree/v2.4"
- },
- "time": "2018-05-17T12:52:20+00:00"
- },
- {
- "name": "nette/caching",
- "version": "v2.5.9",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/caching.git",
- "reference": "d93ef446836a5a0ff7ef78d5ffebb7fe043f9953"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/caching/zipball/d93ef446836a5a0ff7ef78d5ffebb7fe043f9953",
- "reference": "d93ef446836a5a0ff7ef78d5ffebb7fe043f9953",
- "shasum": ""
- },
- "require": {
- "nette/finder": "^2.2 || ~3.0.0",
- "nette/utils": "^2.4 || ~3.0.0",
- "php": ">=5.6.0"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "latte/latte": "^2.4",
- "nette/di": "^2.4 || ~3.0.0",
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.4"
- },
- "suggest": {
- "ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "⏱ Nette Caching: library with easy-to-use API and many cache backends.",
- "homepage": "https://nette.org",
- "keywords": [
- "cache",
- "journal",
- "memcached",
- "nette",
- "sqlite"
- ],
- "support": {
- "issues": "https://github.com/nette/caching/issues",
- "source": "https://github.com/nette/caching/tree/v2.5.9"
- },
- "time": "2019-11-19T18:38:13+00:00"
- },
- {
- "name": "nette/component-model",
- "version": "v2.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/component-model.git",
- "reference": "6e7980f5ddec31f68a39e767799b1b0be9dd1014"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/component-model/zipball/6e7980f5ddec31f68a39e767799b1b0be9dd1014",
- "reference": "6e7980f5ddec31f68a39e767799b1b0be9dd1014",
- "shasum": ""
- },
- "require": {
- "nette/utils": "^2.5 || ~3.0.0",
- "php": ">=5.6.0"
- },
- "conflict": {
- "nette/application": "<2.4",
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "⚛ Nette Component Model",
- "homepage": "https://nette.org",
- "keywords": [
- "components",
- "nette"
- ],
- "support": {
- "issues": "https://github.com/nette/component-model/issues",
- "source": "https://github.com/nette/component-model/tree/v2.4.0"
- },
- "time": "2018-03-20T16:32:50+00:00"
- },
- {
- "name": "nette/di",
- "version": "v2.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/di.git",
- "reference": "aa25fa3dfcb0fc40af8da1f2495af75b63b5db1d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/di/zipball/aa25fa3dfcb0fc40af8da1f2495af75b63b5db1d",
- "reference": "aa25fa3dfcb0fc40af8da1f2495af75b63b5db1d",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "nette/neon": "^2.3.3 || ~3.0.0",
- "nette/php-generator": "^2.6.1 || ^3.0.0",
- "nette/utils": "^2.5.0 || ~3.0.0",
- "php": ">=5.6 <8.1"
- },
- "conflict": {
- "nette/bootstrap": "<2.4",
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP 7.1 features.",
- "homepage": "https://nette.org",
- "keywords": [
- "compiled",
- "di",
- "dic",
- "factory",
- "ioc",
- "nette",
- "static"
- ],
- "support": {
- "issues": "https://github.com/nette/di/issues",
- "source": "https://github.com/nette/di/tree/v2.4.17"
- },
- "time": "2020-11-06T00:28:18+00:00"
- },
- {
- "name": "nette/finder",
- "version": "v2.5.3",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/finder.git",
- "reference": "64dc25b7929b731e72a1bc84a9e57727f5d5d3e8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/finder/zipball/64dc25b7929b731e72a1bc84a9e57727f5d5d3e8",
- "reference": "64dc25b7929b731e72a1bc84a9e57727f5d5d3e8",
- "shasum": ""
- },
- "require": {
- "nette/utils": "^2.4 || ^3.0",
- "php": ">=7.1"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/tester": "^2.0",
- "phpstan/phpstan": "^0.12",
- "tracy/tracy": "^2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0-only",
- "GPL-3.0-only"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "🔍 Nette Finder: find files and directories with an intuitive API.",
- "homepage": "https://nette.org",
- "keywords": [
- "filesystem",
- "glob",
- "iterator",
- "nette"
- ],
- "support": {
- "issues": "https://github.com/nette/finder/issues",
- "source": "https://github.com/nette/finder/tree/v2.5.3"
- },
- "time": "2021-12-12T17:43:24+00:00"
- },
- {
- "name": "nette/http",
- "version": "v2.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/http.git",
- "reference": "a5adfb1746f1d21d75e8b77f84a3d7f84977dcb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/http/zipball/a5adfb1746f1d21d75e8b77f84a3d7f84977dcb6",
- "reference": "a5adfb1746f1d21d75e8b77f84a3d7f84977dcb6",
- "shasum": ""
- },
- "require": {
- "nette/utils": "^2.4 || ~3.0.0",
- "php": ">=5.6 <8.1"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/di": "^2.4.8 || ~3.0.0",
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.4"
- },
- "suggest": {
- "ext-fileinfo": "to detect type of uploaded files",
- "nette/security": "allows use Nette\\Http\\UserStorage"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.",
- "homepage": "https://nette.org",
- "keywords": [
- "cookies",
- "http",
- "nette",
- "proxy",
- "request",
- "response",
- "security",
- "session",
- "url"
- ],
- "support": {
- "issues": "https://github.com/nette/http/issues",
- "source": "https://github.com/nette/http/tree/v2.4.12"
- },
- "time": "2020-11-06T00:17:53+00:00"
- },
- {
- "name": "nette/mail",
- "version": "v2.4.6",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/mail.git",
- "reference": "431f1774034cc14ee6a795b6514fe6343f75a68e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/mail/zipball/431f1774034cc14ee6a795b6514fe6343f75a68e",
- "reference": "431f1774034cc14ee6a795b6514fe6343f75a68e",
- "shasum": ""
- },
- "require": {
- "ext-iconv": "*",
- "nette/utils": "^2.4 || ~3.0.0",
- "php": ">=5.6.0"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/di": "^2.4 || ~3.0.0",
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.4"
- },
- "suggest": {
- "ext-fileinfo": "to detect type of attached files"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "? Nette Mail: handy email creation and transfer library for PHP with both text and MIME-compliant support.",
- "homepage": "https://nette.org",
- "keywords": [
- "mail",
- "mailer",
- "mime",
- "nette",
- "smtp"
- ],
- "support": {
- "issues": "https://github.com/nette/mail/issues",
- "source": "https://github.com/nette/mail/tree/v2.4"
- },
- "time": "2018-11-21T22:35:13+00:00"
- },
- {
- "name": "nette/neon",
- "version": "v2.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/neon.git",
- "reference": "5e72b1dd3e2d34f0863c5561139a19df6a1ef398"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/neon/zipball/5e72b1dd3e2d34f0863c5561139a19df6a1ef398",
- "reference": "5e72b1dd3e2d34f0863c5561139a19df6a1ef398",
- "shasum": ""
- },
- "require": {
- "ext-iconv": "*",
- "ext-json": "*",
- "php": ">=5.6.0"
- },
- "require-dev": {
- "nette/tester": "~2.0",
- "tracy/tracy": "^2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "? Nette NEON: encodes and decodes NEON file format.",
- "homepage": "http://ne-on.org",
- "keywords": [
- "export",
- "import",
- "neon",
- "nette",
- "yaml"
- ],
- "support": {
- "issues": "https://github.com/nette/neon/issues",
- "source": "https://github.com/nette/neon/tree/v2.4"
- },
- "time": "2018-03-21T12:12:21+00:00"
- },
- {
- "name": "nette/php-generator",
- "version": "v3.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/php-generator.git",
- "reference": "7051954c534cebafd650efe8b145ac75b223cb66"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/php-generator/zipball/7051954c534cebafd650efe8b145ac75b223cb66",
- "reference": "7051954c534cebafd650efe8b145ac75b223cb66",
- "shasum": ""
- },
- "require": {
- "nette/utils": "^2.4.2 || ^3.0",
- "php": ">=7.1"
- },
- "require-dev": {
- "nette/tester": "^2.0",
- "nikic/php-parser": "^4.4",
- "phpstan/phpstan": "^0.12",
- "tracy/tracy": "^2.3"
- },
- "suggest": {
- "nikic/php-parser": "to use ClassType::withBodiesFrom() & GlobalFunction::withBodyFrom()"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0-only",
- "GPL-3.0-only"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.4 features.",
- "homepage": "https://nette.org",
- "keywords": [
- "code",
- "nette",
- "php",
- "scaffolding"
- ],
- "support": {
- "issues": "https://github.com/nette/php-generator/issues",
- "source": "https://github.com/nette/php-generator/tree/master"
- },
- "time": "2020-06-19T14:31:47+00:00"
- },
- {
- "name": "nette/reflection",
- "version": "v2.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/reflection.git",
- "reference": "b12327e98ead74e87a1315e0d48182a702adf901"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/reflection/zipball/b12327e98ead74e87a1315e0d48182a702adf901",
- "reference": "b12327e98ead74e87a1315e0d48182a702adf901",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "nette/caching": "^2.2 || ^3.0",
- "nette/utils": "^2.4 || ^3.0",
- "php": ">=5.6.0"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/di": "^2.4 || ^3.0",
- "nette/tester": "^2.0",
- "tracy/tracy": "^2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "Nette Reflection: docblock annotations parser and common reflection classes",
- "homepage": "https://nette.org",
- "keywords": [
- "annotation",
- "nette",
- "reflection"
- ],
- "support": {
- "issues": "https://github.com/nette/reflection/issues",
- "source": "https://github.com/nette/reflection/tree/master"
- },
- "abandoned": true,
- "time": "2017-07-11T19:28:57+00:00"
- },
- {
- "name": "nette/robot-loader",
- "version": "v2.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/robot-loader.git",
- "reference": "415369717043250ea5b560682c3f2e8ee412ad06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/robot-loader/zipball/415369717043250ea5b560682c3f2e8ee412ad06",
- "reference": "415369717043250ea5b560682c3f2e8ee412ad06",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "nette/caching": "~2.2",
- "nette/finder": "~2.3",
- "nette/utils": "~2.4",
- "php": ">=5.6 <8.1"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/tester": "~2.0",
- "tracy/tracy": "^2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.",
- "homepage": "https://nette.org",
- "keywords": [
- "autoload",
- "class",
- "interface",
- "nette",
- "trait"
- ],
- "support": {
- "issues": "https://github.com/nette/robot-loader/issues",
- "source": "https://github.com/nette/robot-loader/tree/v2.4.5"
- },
- "time": "2021-02-02T15:41:11+00:00"
- },
- {
- "name": "nette/safe-stream",
- "version": "v2.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/safe-stream.git",
- "reference": "8bbbeda8415b8352642d7566dfa18169d40c2e54"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/safe-stream/zipball/8bbbeda8415b8352642d7566dfa18169d40c2e54",
- "reference": "8bbbeda8415b8352642d7566dfa18169d40c2e54",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1"
- },
- "require-dev": {
- "nette/tester": "^2.0",
- "phpstan/phpstan": "^0.12",
- "tracy/tracy": "^2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "autoload": {
- "files": [
- "src/loader.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0-only",
- "GPL-3.0-only"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "Nette SafeStream: provides isolation for thread safe manipulation with files via native PHP functions.",
- "homepage": "https://nette.org",
- "keywords": [
- "atomic",
- "filesystem",
- "isolation",
- "nette",
- "safe",
- "thread safe"
- ],
- "support": {
- "issues": "https://github.com/nette/safe-stream/issues",
- "source": "https://github.com/nette/safe-stream/tree/v2.5.0"
- },
- "time": "2022-01-03T23:13:32+00:00"
- },
- {
- "name": "nette/utils",
- "version": "v2.5.7",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/utils.git",
- "reference": "d272f87cd6491377231702b1ccd920b6e981b713"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/utils/zipball/d272f87cd6491377231702b1ccd920b6e981b713",
- "reference": "d272f87cd6491377231702b1ccd920b6e981b713",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "conflict": {
- "nette/nette": "<2.2"
- },
- "require-dev": {
- "nette/tester": "~2.0",
- "tracy/tracy": "^2.3"
- },
- "suggest": {
- "ext-gd": "to use Image",
- "ext-iconv": "to use Strings::webalize() and toAscii()",
- "ext-intl": "for script transliteration in Strings::webalize() and toAscii()",
- "ext-json": "to use Nette\\Utils\\Json",
- "ext-mbstring": "to use Strings::lower() etc...",
- "ext-xml": "to use Strings::length() etc. when mbstring is not available"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "autoload": {
- "files": [
- "src/loader.php"
- ],
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause",
- "GPL-2.0",
- "GPL-3.0"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
- "homepage": "https://nette.org",
- "keywords": [
- "array",
- "core",
- "datetime",
- "images",
- "json",
- "nette",
- "paginator",
- "password",
- "slugify",
- "string",
- "unicode",
- "utf-8",
- "utility",
- "validation"
- ],
- "support": {
- "issues": "https://github.com/nette/utils/issues",
- "source": "https://github.com/nette/utils/tree/v2.5.7"
- },
- "time": "2020-12-13T14:12:17+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "2.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
- "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
- "shasum": ""
- },
- "require": {
- "php": "^7.2 || ^8.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-2.x": "2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "support": {
- "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
- "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
- },
- "time": "2020-06-27T09:03:43+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "5.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "622548b623e81ca6d78b721c5e029f4ce664f170"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170",
- "reference": "622548b623e81ca6d78b721c5e029f4ce664f170",
- "shasum": ""
- },
- "require": {
- "ext-filter": "*",
- "php": "^7.2 || ^8.0",
- "phpdocumentor/reflection-common": "^2.2",
- "phpdocumentor/type-resolver": "^1.3",
- "webmozart/assert": "^1.9.1"
- },
- "require-dev": {
- "mockery/mockery": "~1.3.2",
- "psalm/phar": "^4.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- },
- {
- "name": "Jaap van Otterdijk",
- "email": "account@ijaap.nl"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "support": {
- "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
- "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0"
- },
- "time": "2021-10-19T17:43:47+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "1.6.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "77a32518733312af16a44300404e945338981de3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3",
- "reference": "77a32518733312af16a44300404e945338981de3",
- "shasum": ""
- },
- "require": {
- "php": "^7.2 || ^8.0",
- "phpdocumentor/reflection-common": "^2.0"
- },
- "require-dev": {
- "ext-tokenizer": "*",
- "psalm/phar": "^4.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-1.x": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
- "support": {
- "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
- "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1"
- },
- "time": "2022-03-15T21:29:03+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "v1.10.3",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "451c3cd1418cf640de218914901e51b064abb093"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093",
- "reference": "451c3cd1418cf640de218914901e51b064abb093",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
- "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5 || ^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.10.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Prophecy\\": "src/Prophecy"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "support": {
- "issues": "https://github.com/phpspec/prophecy/issues",
- "source": "https://github.com/phpspec/prophecy/tree/v1.10.3"
- },
- "time": "2020-03-05T15:02:03+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "support": {
- "irc": "irc://irc.freenode.net/phpunit",
- "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/2.2"
- },
- "time": "2015-10-06T15:47:00+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.3.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/acd690379117b042d1c8af1fafd61bde001bf6bb",
- "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "File/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "support": {
- "irc": "irc://irc.freenode.net/phpunit",
- "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
- "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.3.4"
- },
- "time": "2013-10-10T15:34:57+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
- "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1"
- },
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-timer/issues",
- "source": "https://github.com/sebastianbergmann/php-timer/tree/master"
- },
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
- "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4"
- },
- "abandoned": true,
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.5.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d6429b0995b24a2d9dfe5587ee3a7071c1161af4",
- "reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "~1.3,>=1.3.1",
- "phpunit/php-code-coverage": "~2.0,>=2.0.11",
- "phpunit/php-file-iterator": "~1.3.2",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "~1.0.2",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.1",
- "sebastian/diff": "~1.1",
- "sebastian/environment": "~1.2",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "support": {
- "irc": "irc://irc.freenode.net/phpunit",
- "issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/4.5.1"
- },
- "time": "2015-03-29T09:24:05+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "support": {
- "irc": "irc://irc.freenode.net/phpunit",
- "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues",
- "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/2.3"
- },
- "abandoned": true,
- "time": "2015-10-02T06:51:40+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.1.4",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "d49695b909c3b7628b6289db5479a1c204601f11"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
- "reference": "d49695b909c3b7628b6289db5479a1c204601f11",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "https://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "support": {
- "source": "https://github.com/php-fig/log/tree/1.1.4"
- },
- "time": "2021-05-03T11:20:27+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/comparator/issues",
- "source": "https://github.com/sebastianbergmann/comparator/tree/1.2"
- },
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/1.4"
- },
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/environment/issues",
- "source": "https://github.com/sebastianbergmann/environment/tree/1.3"
- },
- "time": "2016-08-18T05:49:44+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/exporter/issues",
- "source": "https://github.com/sebastianbergmann/exporter/tree/master"
- },
- "time": "2016-06-17T09:04:28+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/global-state/issues",
- "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1"
- },
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "support": {
- "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/master"
- },
- "time": "2016-10-03T07:41:43+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "support": {
- "issues": "https://github.com/sebastianbergmann/version/issues",
- "source": "https://github.com/sebastianbergmann/version/tree/1.0.6"
- },
- "time": "2015-06-21T13:59:46+00:00"
- },
- {
- "name": "seld/jsonlint",
- "version": "1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/jsonlint.git",
- "reference": "4211420d25eba80712bff236a98960ef68b866b7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/4211420d25eba80712bff236a98960ef68b866b7",
- "reference": "4211420d25eba80712bff236a98960ef68b866b7",
- "shasum": ""
- },
- "require": {
- "php": "^5.3 || ^7.0 || ^8.0"
- },
- "require-dev": {
- "phpstan/phpstan": "^1.5",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13"
- },
- "bin": [
- "bin/jsonlint"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Seld\\JsonLint\\": "src/Seld/JsonLint/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "JSON Linter",
- "keywords": [
- "json",
- "linter",
- "parser",
- "validator"
- ],
- "support": {
- "issues": "https://github.com/Seldaek/jsonlint/issues",
- "source": "https://github.com/Seldaek/jsonlint/tree/1.9.0"
- },
- "funding": [
- {
- "url": "https://github.com/Seldaek",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/seld/jsonlint",
- "type": "tidelift"
- }
- ],
- "time": "2022-04-01T13:37:23+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v2.8.52",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12",
- "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/debug": "^2.7.2|~3.0.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.1|~3.0.0",
- "symfony/process": "~2.1|~3.0.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "support": {
- "source": "https://github.com/symfony/console/tree/v2.8.52"
- },
- "time": "2018-11-20T15:55:20+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "697c527acd9ea1b2d3efac34d9806bf255278b0a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/697c527acd9ea1b2d3efac34d9806bf255278b0a",
- "reference": "697c527acd9ea1b2d3efac34d9806bf255278b0a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.9",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/class-loader": "~2.8|~3.0",
- "symfony/http-kernel": "~2.8|~3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "support": {
- "source": "https://github.com/symfony/debug/tree/3.0"
- },
- "time": "2016-07-30T07:22:48+00:00"
- },
- {
- "name": "symfony/options-resolver",
- "version": "v2.6.13",
- "target-dir": "Symfony/Component/OptionsResolver",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/options-resolver.git",
- "reference": "31e56594cee489e9a235b852228b0598b52101c1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/options-resolver/zipball/31e56594cee489e9a235b852228b0598b52101c1",
- "reference": "31e56594cee489e9a235b852228b0598b52101c1",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/phpunit-bridge": "~2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.6-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\OptionsResolver\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony OptionsResolver Component",
- "homepage": "https://symfony.com",
- "keywords": [
- "config",
- "configuration",
- "options"
- ],
- "support": {
- "source": "https://github.com/symfony/options-resolver/tree/v2.6.11"
- },
- "time": "2015-05-13T11:33:56+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.25.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "30885182c981ab175d4d034db0f6f469898070ab"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab",
- "reference": "30885182c981ab175d4d034db0f6f469898070ab",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1"
- },
- "provide": {
- "ext-ctype": "*"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "1.23-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
- }
- },
- "autoload": {
- "files": [
- "bootstrap.php"
- ],
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0"
- },
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2021-10-20T20:35:02+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.25.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825",
- "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1"
- },
- "provide": {
- "ext-mbstring": "*"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-main": "1.23-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
- }
- },
- "autoload": {
- "files": [
- "bootstrap.php"
- ],
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0"
- },
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2021-11-30T18:21:41+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v2.8.52",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "02c1859112aa779d9ab394ae4f3381911d84052b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b",
- "reference": "02c1859112aa779d9ab394ae4f3381911d84052b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "support": {
- "source": "https://github.com/symfony/yaml/tree/v2.8.52"
- },
- "time": "2018-11-11T11:18:13+00:00"
- },
- {
- "name": "tracy/tracy",
- "version": "v2.6.8",
- "source": {
- "type": "git",
- "url": "https://github.com/nette/tracy.git",
- "reference": "08710e2708a67e360b82e243c09489b2af2e3f54"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nette/tracy/zipball/08710e2708a67e360b82e243c09489b2af2e3f54",
- "reference": "08710e2708a67e360b82e243c09489b2af2e3f54",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-session": "*",
- "php": ">=7.1"
- },
- "require-dev": {
- "nette/di": "^2.4 || ~3.0.0",
- "nette/tester": "^2.2",
- "nette/utils": "^2.4 || ^3.0",
- "psr/log": "^1.0"
- },
- "suggest": {
- "https://nette.org/donate": "Please support Tracy via a donation"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.6-dev"
- }
- },
- "autoload": {
- "files": [
- "src/Tracy/shortcuts.php"
- ],
- "classmap": [
- "src"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "David Grudl",
- "homepage": "https://davidgrudl.com"
- },
- {
- "name": "Nette Community",
- "homepage": "https://nette.org/contributors"
- }
- ],
- "description": "😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.",
- "homepage": "https://tracy.nette.org",
- "keywords": [
- "Xdebug",
- "debug",
- "debugger",
- "nette",
- "profiler"
- ],
- "support": {
- "issues": "https://github.com/nette/tracy/issues",
- "source": "https://github.com/nette/tracy/tree/v2.6.8"
- },
- "time": "2022-02-15T16:14:57+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozarts/assert.git",
- "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25",
- "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25",
- "shasum": ""
- },
- "require": {
- "php": "^7.2 || ^8.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "conflict": {
- "phpstan/phpstan": "<0.12.20",
- "vimeo/psalm": "<4.6.1 || 4.6.2"
- },
- "require-dev": {
- "phpunit/phpunit": "^8.5.13"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.10-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "support": {
- "issues": "https://github.com/webmozarts/assert/issues",
- "source": "https://github.com/webmozarts/assert/tree/1.10.0"
- },
- "time": "2021-03-09T10:59:23+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.5.0"
- },
- "platform-dev": [],
- "plugin-api-version": "2.0.0"
-}