!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/twilio/sdk/src/Twilio/Rest/Taskrouter/V1/Workspace/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     WorkerOptions.php (15.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * This code was generated by
 * \ / _    _  _|   _  _
 * | (_)\/(_)(_|\/| |(/_  v1.0.0
 * /       /
 */

namespace Twilio\Rest\Taskrouter\V1\Workspace;

use 
Twilio\Options;
use 
Twilio\Values;

abstract class 
WorkerOptions {
    
/**
     * @param string $activityName The activity_name of the Worker resources to read
     * @param string $activitySid The activity_sid of the Worker resources to read
     * @param string $available Whether to return Worker resources that are
     *                          available or unavailable
     * @param string $friendlyName The friendly_name of the Worker resources to read
     * @param string $targetWorkersExpression Filter by Workers that would match an
     *                                        expression on a TaskQueue
     * @param string $taskQueueName The friendly_name of the TaskQueue that the
     *                              Workers to read are eligible for
     * @param string $taskQueueSid The SID of the TaskQueue that the Workers to
     *                             read are eligible for
     * @param string $ordering Sorting parameter for Workers
     * @return ReadWorkerOptions Options builder
     */
    
public static function read(string $activityName Values::NONEstring $activitySid Values::NONEstring $available Values::NONEstring $friendlyName Values::NONEstring $targetWorkersExpression Values::NONEstring $taskQueueName Values::NONEstring $taskQueueSid Values::NONEstring $ordering Values::NONE): ReadWorkerOptions {
        return new 
ReadWorkerOptions($activityName$activitySid$available$friendlyName$targetWorkersExpression$taskQueueName$taskQueueSid$ordering);
    }

    
/**
     * @param string $activitySid The SID of a valid Activity that describes the
     *                            new Worker's initial state
     * @param string $attributes A valid JSON string that describes the new Worker
     * @return CreateWorkerOptions Options builder
     */
    
public static function create(string $activitySid Values::NONEstring $attributes Values::NONE): CreateWorkerOptions {
        return new 
CreateWorkerOptions($activitySid$attributes);
    }

    
/**
     * @param string $activitySid The SID of the Activity that describes the
     *                            Worker's initial state
     * @param string $attributes The JSON string that describes the Worker
     * @param string $friendlyName A string to describe the Worker
     * @param bool $rejectPendingReservations Whether to reject the Worker's
     *                                        pending reservations
     * @param string $ifMatch The If-Match HTTP request header
     * @return UpdateWorkerOptions Options builder
     */
    
public static function update(string $activitySid Values::NONEstring $attributes Values::NONEstring $friendlyName Values::NONEbool $rejectPendingReservations Values::NONEstring $ifMatch Values::NONE): UpdateWorkerOptions {
        return new 
UpdateWorkerOptions($activitySid$attributes$friendlyName$rejectPendingReservations$ifMatch);
    }

    
/**
     * @param string $ifMatch The If-Match HTTP request header
     * @return DeleteWorkerOptions Options builder
     */
    
public static function delete(string $ifMatch Values::NONE): DeleteWorkerOptions {
        return new 
DeleteWorkerOptions($ifMatch);
    }
}

class 
ReadWorkerOptions extends Options {
    
/**
     * @param string $activityName The activity_name of the Worker resources to read
     * @param string $activitySid The activity_sid of the Worker resources to read
     * @param string $available Whether to return Worker resources that are
     *                          available or unavailable
     * @param string $friendlyName The friendly_name of the Worker resources to read
     * @param string $targetWorkersExpression Filter by Workers that would match an
     *                                        expression on a TaskQueue
     * @param string $taskQueueName The friendly_name of the TaskQueue that the
     *                              Workers to read are eligible for
     * @param string $taskQueueSid The SID of the TaskQueue that the Workers to
     *                             read are eligible for
     * @param string $ordering Sorting parameter for Workers
     */
    
public function __construct(string $activityName Values::NONEstring $activitySid Values::NONEstring $available Values::NONEstring $friendlyName Values::NONEstring $targetWorkersExpression Values::NONEstring $taskQueueName Values::NONEstring $taskQueueSid Values::NONEstring $ordering Values::NONE) {
        
$this->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;
        
$this->options['ordering'] = $ordering;
    }

    
/**
     * The `activity_name` of the Worker resources to read.
     *
     * @param string $activityName The activity_name of the Worker resources to read
     * @return $this Fluent Builder
     */
    
public function setActivityName(string $activityName): self {
        
$this->options['activityName'] = $activityName;
        return 
$this;
    }

    
/**
     * The `activity_sid` of the Worker resources to read.
     *
     * @param string $activitySid The activity_sid of the Worker resources to read
     * @return $this Fluent Builder
     */
    
public function setActivitySid(string $activitySid): self {
        
$this->options['activitySid'] = $activitySid;
        return 
$this;
    }

    
/**
     * Whether to return only Worker resources that are available or unavailable. Can be `true`, `1`, or `yes` to return Worker resources that are available, and `false`, or any value returns the Worker resources that are not available.
     *
     * @param string $available Whether to return Worker resources that are
     *                          available or unavailable
     * @return $this Fluent Builder
     */
    
public function setAvailable(string $available): self {
        
$this->options['available'] = $available;
        return 
$this;
    }

    
/**
     * The `friendly_name` of the Worker resources to read.
     *
     * @param string $friendlyName The friendly_name of the Worker resources to read
     * @return $this Fluent Builder
     */
    
public function setFriendlyName(string $friendlyName): self {
        
$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(string $targetWorkersExpression): self {
        
$this->options['targetWorkersExpression'] = $targetWorkersExpression;
        return 
$this;
    }

    
/**
     * The `friendly_name` of the TaskQueue that the Workers to read are eligible for.
     *
     * @param string $taskQueueName The friendly_name of the TaskQueue that the
     *                              Workers to read are eligible for
     * @return $this Fluent Builder
     */
    
public function setTaskQueueName(string $taskQueueName): self {
        
$this->options['taskQueueName'] = $taskQueueName;
        return 
$this;
    }

    
/**
     * The SID of the TaskQueue that the Workers to read are eligible for.
     *
     * @param string $taskQueueSid The SID of the TaskQueue that the Workers to
     *                             read are eligible for
     * @return $this Fluent Builder
     */
    
public function setTaskQueueSid(string $taskQueueSid): self {
        
$this->options['taskQueueSid'] = $taskQueueSid;
        return 
$this;
    }

    
/**
     * Sorting parameter for Workers
     *
     * @param string $ordering Sorting parameter for Workers
     * @return $this Fluent Builder
     */
    
public function setOrdering(string $ordering): self {
        
$this->options['ordering'] = $ordering;
        return 
$this;
    }

    
/**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    
public function __toString(): string {
        
$options \http_build_query(Values::of($this->options), ''' ');
        return 
'[Twilio.Taskrouter.V1.ReadWorkerOptions ' $options ']';
    }
}

class 
CreateWorkerOptions extends Options {
    
/**
     * @param string $activitySid The SID of a valid Activity that describes the
     *                            new Worker's initial state
     * @param string $attributes A valid JSON string that describes the new Worker
     */
    
public function __construct(string $activitySid Values::NONEstring $attributes Values::NONE) {
        
$this->options['activitySid'] = $activitySid;
        
$this->options['attributes'] = $attributes;
    }

    
/**
     * The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace.
     *
     * @param string $activitySid The SID of a valid Activity that describes the
     *                            new Worker's initial state
     * @return $this Fluent Builder
     */
    
public function setActivitySid(string $activitySid): self {
        
$this->options['activitySid'] = $activitySid;
        return 
$this;
    }

    
/**
     * A valid JSON string that describes the new Worker. For example: `{ "email": "Bob@example.com", "phone": "+5095551234" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}.
     *
     * @param string $attributes A valid JSON string that describes the new Worker
     * @return $this Fluent Builder
     */
    
public function setAttributes(string $attributes): self {
        
$this->options['attributes'] = $attributes;
        return 
$this;
    }

    
/**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    
public function __toString(): string {
        
$options \http_build_query(Values::of($this->options), ''' ');
        return 
'[Twilio.Taskrouter.V1.CreateWorkerOptions ' $options ']';
    }
}

class 
UpdateWorkerOptions extends Options {
    
/**
     * @param string $activitySid The SID of the Activity that describes the
     *                            Worker's initial state
     * @param string $attributes The JSON string that describes the Worker
     * @param string $friendlyName A string to describe the Worker
     * @param bool $rejectPendingReservations Whether to reject the Worker's
     *                                        pending reservations
     * @param string $ifMatch The If-Match HTTP request header
     */
    
public function __construct(string $activitySid Values::NONEstring $attributes Values::NONEstring $friendlyName Values::NONEbool $rejectPendingReservations Values::NONEstring $ifMatch Values::NONE) {
        
$this->options['activitySid'] = $activitySid;
        
$this->options['attributes'] = $attributes;
        
$this->options['friendlyName'] = $friendlyName;
        
$this->options['rejectPendingReservations'] = $rejectPendingReservations;
        
$this->options['ifMatch'] = $ifMatch;
    }

    
/**
     * The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information.
     *
     * @param string $activitySid The SID of the Activity that describes the
     *                            Worker's initial state
     * @return $this Fluent Builder
     */
    
public function setActivitySid(string $activitySid): self {
        
$this->options['activitySid'] = $activitySid;
        return 
$this;
    }

    
/**
     * The JSON string that describes the Worker. For example: `{ "email": "Bob@example.com", "phone": "+5095551234" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}.
     *
     * @param string $attributes The JSON string that describes the Worker
     * @return $this Fluent Builder
     */
    
public function setAttributes(string $attributes): self {
        
$this->options['attributes'] = $attributes;
        return 
$this;
    }

    
/**
     * A descriptive string that you create to describe the Worker. It can be up to 64 characters long.
     *
     * @param string $friendlyName A string to describe the Worker
     * @return $this Fluent Builder
     */
    
public function setFriendlyName(string $friendlyName): self {
        
$this->options['friendlyName'] = $friendlyName;
        return 
$this;
    }

    
/**
     * Whether to reject the Worker's pending reservations. This option is only valid if the Worker's new [Activity](https://www.twilio.com/docs/taskrouter/api/activity) resource has its `availability` property set to `False`.
     *
     * @param bool $rejectPendingReservations Whether to reject the Worker's
     *                                        pending reservations
     * @return $this Fluent Builder
     */
    
public function setRejectPendingReservations(bool $rejectPendingReservations): self {
        
$this->options['rejectPendingReservations'] = $rejectPendingReservations;
        return 
$this;
    }

    
/**
     * The If-Match HTTP request header
     *
     * @param string $ifMatch The If-Match HTTP request header
     * @return $this Fluent Builder
     */
    
public function setIfMatch(string $ifMatch): self {
        
$this->options['ifMatch'] = $ifMatch;
        return 
$this;
    }

    
/**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    
public function __toString(): string {
        
$options \http_build_query(Values::of($this->options), ''' ');
        return 
'[Twilio.Taskrouter.V1.UpdateWorkerOptions ' $options ']';
    }
}

class 
DeleteWorkerOptions extends Options {
    
/**
     * @param string $ifMatch The If-Match HTTP request header
     */
    
public function __construct(string $ifMatch Values::NONE) {
        
$this->options['ifMatch'] = $ifMatch;
    }

    
/**
     * The If-Match HTTP request header
     *
     * @param string $ifMatch The If-Match HTTP request header
     * @return $this Fluent Builder
     */
    
public function setIfMatch(string $ifMatch): self {
        
$this->options['ifMatch'] = $ifMatch;
        return 
$this;
    }

    
/**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    
public function __toString(): string {
        
$options \http_build_query(Values::of($this->options), ''' ');
        return 
'[Twilio.Taskrouter.V1.DeleteWorkerOptions ' $options ']';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0077 ]--