idx int64 0 60.3k | question stringlengths 101 6.21k | target stringlengths 7 803 |
|---|---|---|
12,800 | 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' ] ) ; } | Create a new SyncListItemInstance |
12,801 | 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 single page of SyncListItemInstance records from the API . Request is executed immediately |
12,802 | public function getPage ( $ targetUrl ) { $ response = $ this -> version -> getDomain ( ) -> getClient ( ) -> request ( 'GET' , $ targetUrl ) ; return new SyncListItemPage ( $ this -> version , $ response , $ this -> solution ) ; } | Retrieve a specific page of SyncListItemInstance records from the API . Request is executed immediately |
12,803 | public function getContext ( $ index ) { return new SyncListItemContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'listSid' ] , $ index ) ; } | Constructs a SyncListItemContext |
12,804 | public function fetch ( $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ params = Values :: of ( array ( 'UiVersion' => $ options [ 'uiVersion' ] , ) ) ; $ payload = $ this -> version -> fetch ( 'GET' , $ this -> uri , $ params ) ; return new ConfigurationInstance ( $ this -> version , $ payload ) ; } | Fetch a ConfigurationInstance |
12,805 | public function create ( ) { $ data = Values :: of ( array ( ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new ConfigurationInstance ( $ this -> version , $ payload ) ; } | Create a new ConfigurationInstance |
12,806 | protected function getFunctionVersions ( ) { if ( ! $ this -> _functionVersions ) { $ this -> _functionVersions = new FunctionVersionList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _functionVersions ; } | Access the functionVersions |
12,807 | protected function getUserChannels ( ) { if ( ! $ this -> _userChannels ) { $ this -> _userChannels = new UserChannelList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _userChannels ; } | Access the userChannels |
12,808 | protected function getMembers ( ) { if ( ! $ this -> _members ) { $ this -> _members = new MemberList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _members ; } | Access the members |
12,809 | protected function getMessages ( ) { if ( ! $ this -> _messages ) { $ this -> _messages = new MessageList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _messages ; } | Access the messages |
12,810 | protected function getInvites ( ) { if ( ! $ this -> _invites ) { $ this -> _invites = new InviteList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _invites ; } | Access the invites |
12,811 | 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' ] ) ; } | Create a new FieldTypeInstance |
12,812 | public function getContext ( $ identity ) { return new DocumentPermissionContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'documentSid' ] , $ identity ) ; } | Constructs a DocumentPermissionContext |
12,813 | 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' ] ) ; } | Update the InstalledAddOnExtensionInstance |
12,814 | protected function getEnvironments ( ) { if ( ! $ this -> _environments ) { $ this -> _environments = new EnvironmentList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _environments ; } | Access the environments |
12,815 | protected function getFunctions ( ) { if ( ! $ this -> _functions ) { $ this -> _functions = new FunctionList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _functions ; } | Access the functions |
12,816 | protected function getAssets ( ) { if ( ! $ this -> _assets ) { $ this -> _assets = new AssetList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _assets ; } | Access the assets |
12,817 | protected function getBuilds ( ) { if ( ! $ this -> _builds ) { $ this -> _builds = new BuildList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _builds ; } | Access the builds |
12,818 | 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' ] ) ; } | Create a new SampleInstance |
12,819 | public function getContext ( $ sid ) { return new SampleContext ( $ this -> version , $ this -> solution [ 'assistantSid' ] , $ this -> solution [ 'taskSid' ] , $ sid ) ; } | Constructs a SampleContext |
12,820 | protected function getStreamMessages ( ) { if ( ! $ this -> _streamMessages ) { $ this -> _streamMessages = new StreamMessageList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _streamMessages ; } | Access the streamMessages |
12,821 | 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 ) ; } | Create a new CompositionHookInstance |
12,822 | protected function getPayloads ( ) { if ( ! $ this -> _payloads ) { $ this -> _payloads = new PayloadList ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'referenceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _payloads ; } | Access the payloads |
12,823 | protected function getMessageInteractions ( ) { if ( ! $ this -> _messageInteractions ) { $ this -> _messageInteractions = new MessageInteractionList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sessionSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _messageInteractions ; } | Access the messageInteractions |
12,824 | public function create ( $ code , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'Code' => $ code , 'To' => $ options [ 'to' ] , 'VerificationSid' => $ options [ 'verificationSid' ] , 'Amount' => $ options [ 'amount' ] , 'Payee' => $ options [ 'payee' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new VerificationCheckInstance ( $ this -> version , $ payload , $ this -> solution [ 'serviceSid' ] ) ; } | Create a new VerificationCheckInstance |
12,825 | 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' ] ) ; } | Create a new RoleInstance |
12,826 | 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' ] ) ; } | Update the RecordingInstance |
12,827 | protected function getDevices ( ) { if ( ! $ this -> _devices ) { $ this -> _devices = new DeviceList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _devices ; } | Access the devices |
12,828 | protected function getCertificates ( ) { if ( ! $ this -> _certificates ) { $ this -> _certificates = new CertificateList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _certificates ; } | Access the certificates |
12,829 | protected function getVariables ( ) { if ( ! $ this -> _variables ) { $ this -> _variables = new VariableList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _variables ; } | Access the variables |
12,830 | protected function getDeployments ( ) { if ( ! $ this -> _deployments ) { $ this -> _deployments = new DeploymentList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _deployments ; } | Access the deployments |
12,831 | protected function getEngagements ( ) { if ( ! $ this -> _engagements ) { $ this -> _engagements = new EngagementList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _engagements ; } | Access the engagements |
12,832 | protected function getExecutions ( ) { if ( ! $ this -> _executions ) { $ this -> _executions = new ExecutionList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _executions ; } | Access the executions |
12,833 | protected function getDependentPhoneNumbers ( ) { if ( ! $ this -> _dependentPhoneNumbers ) { $ this -> _dependentPhoneNumbers = new DependentPhoneNumberList ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _dependentPhoneNumbers ; } | Access the dependentPhoneNumbers |
12,834 | public function create ( $ buildSid ) { $ data = Values :: of ( array ( 'BuildSid' => $ buildSid , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new DeploymentInstance ( $ this -> version , $ payload , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'environmentSid' ] ) ; } | Create a new DeploymentInstance |
12,835 | public function getContext ( $ sid ) { return new DeploymentContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'environmentSid' ] , $ sid ) ; } | Constructs a DeploymentContext |
12,836 | 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' ] ) ; } | Create a new ShortCodeInstance |
12,837 | public function create ( $ sipDomainSid ) { $ data = Values :: of ( array ( 'SipDomainSid' => $ sipDomainSid , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new TerminatingSipDomainInstance ( $ this -> version , $ payload , $ this -> solution [ 'trunkSid' ] ) ; } | Create a new TerminatingSipDomainInstance |
12,838 | public function getContext ( $ sid ) { return new RecordingContext ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'callSid' ] , $ sid ) ; } | Constructs a RecordingContext |
12,839 | public function create ( $ roomSid , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'RoomSid' => $ 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 ) ; } | Create a new CompositionInstance |
12,840 | protected function getEntities ( ) { if ( ! $ this -> _entities ) { $ this -> _entities = new EntityList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _entities ; } | Access the entities |
12,841 | public function getContext ( ) { return new StepContextContext ( $ this -> version , $ this -> solution [ 'flowSid' ] , $ this -> solution [ 'engagementSid' ] , $ this -> solution [ 'stepSid' ] ) ; } | Constructs a StepContextContext |
12,842 | public function getContext ( $ sid ) { return new AddOnResultContext ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'referenceSid' ] , $ sid ) ; } | Constructs a AddOnResultContext |
12,843 | protected function getIpAddresses ( ) { if ( ! $ this -> _ipAddresses ) { $ this -> _ipAddresses = new IpAddressList ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _ipAddresses ; } | Access the ipAddresses |
12,844 | public function getContext ( $ sid ) { return new MediaContext ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'messageSid' ] , $ sid ) ; } | Constructs a MediaContext |
12,845 | public function update ( $ read , $ write , $ manage ) { return $ this -> proxy ( ) -> update ( $ read , $ write , $ manage ) ; } | Update the DocumentPermissionInstance |
12,846 | protected function getVerifications ( ) { if ( ! $ this -> _verifications ) { $ this -> _verifications = new VerificationList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _verifications ; } | Access the verifications |
12,847 | protected function getVerificationChecks ( ) { if ( ! $ this -> _verificationChecks ) { $ this -> _verificationChecks = new VerificationCheckList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _verificationChecks ; } | Access the verificationChecks |
12,848 | 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' ] ) ; } | Update the DocumentInstance |
12,849 | protected function getDocumentPermissions ( ) { if ( ! $ this -> _documentPermissions ) { $ this -> _documentPermissions = new DocumentPermissionList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _documentPermissions ; } | Access the documentPermissions |
12,850 | protected function getReservations ( ) { if ( ! $ this -> _reservations ) { $ this -> _reservations = new ReservationList ( $ this -> version , $ this -> solution [ 'workspaceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _reservations ; } | Access the reservations |
12,851 | protected function getWorkerChannels ( ) { if ( ! $ this -> _workerChannels ) { $ this -> _workerChannels = new WorkerChannelList ( $ this -> version , $ this -> solution [ 'workspaceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _workerChannels ; } | Access the workerChannels |
12,852 | protected function getSyncStreams ( ) { if ( ! $ this -> _syncStreams ) { $ this -> _syncStreams = new SyncStreamList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _syncStreams ; } | Access the syncStreams |
12,853 | 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 ) ; } | Parse a scope URI into a ScopeURI object |
12,854 | 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 ) ; } | Create a new CommandInstance |
12,855 | 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' ] ) ; } | Update the SyncListPermissionInstance |
12,856 | protected function getAssetVersions ( ) { if ( ! $ this -> _assetVersions ) { $ this -> _assetVersions = new AssetVersionList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _assetVersions ; } | Access the assetVersions |
12,857 | protected function getFieldTypes ( ) { if ( ! $ this -> _fieldTypes ) { $ this -> _fieldTypes = new FieldTypeList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _fieldTypes ; } | Access the fieldTypes |
12,858 | protected function getModelBuilds ( ) { if ( ! $ this -> _modelBuilds ) { $ this -> _modelBuilds = new ModelBuildList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _modelBuilds ; } | Access the modelBuilds |
12,859 | protected function getQueries ( ) { if ( ! $ this -> _queries ) { $ this -> _queries = new QueryList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _queries ; } | Access the queries |
12,860 | protected function getStyleSheet ( ) { if ( ! $ this -> _styleSheet ) { $ this -> _styleSheet = new StyleSheetList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _styleSheet ; } | Access the styleSheet |
12,861 | protected function getDefaults ( ) { if ( ! $ this -> _defaults ) { $ this -> _defaults = new DefaultsList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _defaults ; } | Access the defaults |
12,862 | protected function getDialogues ( ) { if ( ! $ this -> _dialogues ) { $ this -> _dialogues = new DialogueList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _dialogues ; } | Access the dialogues |
12,863 | protected function getOriginationUrls ( ) { if ( ! $ this -> _originationUrls ) { $ this -> _originationUrls = new OriginationUrlList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _originationUrls ; } | Access the originationUrls |
12,864 | protected function getCredentialsLists ( ) { if ( ! $ this -> _credentialsLists ) { $ this -> _credentialsLists = new CredentialListList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _credentialsLists ; } | Access the credentialsLists |
12,865 | protected function getTerminatingSipDomains ( ) { if ( ! $ this -> _terminatingSipDomains ) { $ this -> _terminatingSipDomains = new TerminatingSipDomainList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _terminatingSipDomains ; } | Access the terminatingSipDomains |
12,866 | 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 ) ; } | Create a new RatePlanInstance |
12,867 | public function getContext ( $ sid ) { return new CredentialContext ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'credentialListSid' ] , $ sid ) ; } | Constructs a CredentialContext |
12,868 | 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' ] , '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' ] , 'MachineDetectionSpeechThreshold' => $ options [ 'machineDetectionSpeechThreshold' ] , 'MachineDetectionSpeechEndThreshold' => $ options [ 'machineDetectionSpeechEndThreshold' ] , 'MachineDetectionSilenceTimeout' => $ options [ 'machineDetectionSilenceTimeout' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new CallInstance ( $ this -> version , $ payload , $ this -> solution [ 'accountSid' ] ) ; } | Create a new CallInstance |
12,869 | protected function getFeedbackSummaries ( ) { if ( ! $ this -> _feedbackSummaries ) { $ this -> _feedbackSummaries = new FeedbackSummaryList ( $ this -> version , $ this -> solution [ 'accountSid' ] ) ; } return $ this -> _feedbackSummaries ; } | Access the feedbackSummaries |
12,870 | public function getContext ( $ sid ) { return new MessageContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'channelSid' ] , $ sid ) ; } | Constructs a MessageContext |
12,871 | protected function getNumbers ( ) { if ( ! $ this -> _numbers ) { $ this -> _numbers = new NumberList ( $ this -> version ) ; } return $ this -> _numbers ; } | Access the numbers |
12,872 | public function getContext ( $ sid ) { return new AssignedAddOnExtensionContext ( $ this -> version , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'resourceSid' ] , $ this -> solution [ 'assignedAddOnSid' ] , $ sid ) ; } | Constructs a AssignedAddOnExtensionContext |
12,873 | 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' ] ) ; } | Create a new ValidationRequestInstance |
12,874 | 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' ] ) ; } | Create a new ChallengeInstance |
12,875 | public function getContext ( $ sid ) { return new ChallengeContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'identity' ] , $ this -> solution [ 'factorSid' ] , $ sid ) ; } | Constructs a ChallengeContext |
12,876 | 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' ] ) ; } | Create a new FieldValueInstance |
12,877 | public function getContext ( $ sid ) { return new FieldValueContext ( $ this -> version , $ this -> solution [ 'assistantSid' ] , $ this -> solution [ 'fieldTypeSid' ] , $ sid ) ; } | Constructs a FieldValueContext |
12,878 | 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 ) ; } | Create a new BulkCountryUpdateInstance |
12,879 | public function update ( $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'FriendlyName' => $ options [ 'friendlyName' ] , '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 SessionInstance ( $ this -> version , $ payload , $ this -> solution [ 'sid' ] ) ; } | Update the SessionInstance |
12,880 | protected function getWebhooks ( ) { if ( ! $ this -> _webhooks ) { $ this -> _webhooks = new WebhookList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _webhooks ; } | Access the webhooks |
12,881 | public function getContext ( $ sid ) { return new InteractionContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sessionSid' ] , $ sid ) ; } | Constructs a InteractionContext |
12,882 | 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' ] ) ; } | Update the WorkflowInstance |
12,883 | 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' ] ) ; } | Create a new SyncMapItemInstance |
12,884 | public function getContext ( $ key ) { return new SyncMapItemContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'mapSid' ] , $ key ) ; } | Constructs a SyncMapItemContext |
12,885 | 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' ] ) ; } | Create a new BindingInstance |
12,886 | 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' ] ) ; } | Create a new OriginationUrlInstance |
12,887 | public function create ( $ key , $ value ) { $ data = Values :: of ( array ( 'Key' => $ key , 'Value' => $ value , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new VariableInstance ( $ this -> version , $ payload , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'environmentSid' ] ) ; } | Create a new VariableInstance |
12,888 | public function getContext ( $ sid ) { return new VariableContext ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'environmentSid' ] , $ sid ) ; } | Constructs a VariableContext |
12,889 | protected function getAssistantFallbackActions ( ) { if ( ! $ this -> _assistantFallbackActions ) { $ this -> _assistantFallbackActions = new AssistantFallbackActionsList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _assistantFallbackActions ; } | Access the assistantFallbackActions |
12,890 | protected function getAssistantInitiationActions ( ) { if ( ! $ this -> _assistantInitiationActions ) { $ this -> _assistantInitiationActions = new AssistantInitiationActionsList ( $ this -> version , $ this -> solution [ 'sid' ] ) ; } return $ this -> _assistantInitiationActions ; } | Access the assistantInitiationActions |
12,891 | 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' ] ) ; } | Create a new PhoneNumberInstance |
12,892 | public function fetch ( ) { $ params = Values :: of ( array ( ) ) ; $ payload = $ this -> version -> fetch ( 'GET' , $ this -> uri , $ params ) ; return new SettingsInstance ( $ this -> version , $ payload ) ; } | Fetch a SettingsInstance |
12,893 | public function update ( $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'DialingPermissionsInheritance' => Serialize :: booleanToString ( $ options [ 'dialingPermissionsInheritance' ] ) , ) ) ; $ payload = $ this -> version -> update ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new SettingsInstance ( $ this -> version , $ payload ) ; } | Update the SettingsInstance |
12,894 | protected function getExecutionContext ( ) { if ( ! $ this -> _executionContext ) { $ this -> _executionContext = new ExecutionContextList ( $ this -> version , $ this -> solution [ 'flowSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _executionContext ; } | Access the executionContext |
12,895 | 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 ) ; } | Create a new HostedNumberOrderInstance |
12,896 | protected function getChallenges ( ) { if ( ! $ this -> _challenges ) { $ this -> _challenges = new ChallengeList ( $ this -> version , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'identity' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _challenges ; } | Access the challenges |
12,897 | public function getContext ( ) { return new ExecutionStepContextContext ( $ this -> version , $ this -> solution [ 'flowSid' ] , $ this -> solution [ 'executionSid' ] , $ this -> solution [ 'stepSid' ] ) ; } | Constructs a ExecutionStepContextContext |
12,898 | protected function getFields ( ) { if ( ! $ this -> _fields ) { $ this -> _fields = new FieldList ( $ this -> version , $ this -> solution [ 'assistantSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _fields ; } | Access the fields |
12,899 | protected function getSamples ( ) { if ( ! $ this -> _samples ) { $ this -> _samples = new SampleList ( $ this -> version , $ this -> solution [ 'assistantSid' ] , $ this -> solution [ 'sid' ] ) ; } return $ this -> _samples ; } | Access the samples |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.