Documentation

DevicePreviewNativeTargetAvailabilityDto
in package
implements ModelInterface, ArrayAccess, JsonSerializable

DevicePreviewNativeTargetAvailabilityDto Class Doc Comment

Tags
category

Class

author

OpenAPI Generator team

link
https://openapi-generator.tech
implements

\ArrayAccess<string, mixed>

Interfaces, Classes, Traits and Enums

ModelInterface
Interface abstracting model access.
ArrayAccess
JsonSerializable

Table of Contents

DISCRIMINATOR  = null
STATUS_AVAILABLE  = 'AVAILABLE'
STATUS_DEGRADED  = 'DEGRADED'
STATUS_DISABLED  = 'DISABLED'
STATUS_NOT_CONFIGURED  = 'NOT_CONFIGURED'
STATUS_OFFLINE  = 'OFFLINE'
STATUS_SETUP_REQUIRED  = 'SETUP_REQUIRED'
TIER_PREMIUM  = 'PREMIUM'
TIER_STANDARD  = 'STANDARD'
$attributeMap  : array<string|int, string>
Array of attributes where the key is the local name, and the value is the original name
$container  : array<string|int, mixed>
Associative array for storing property values
$getters  : array<string|int, string>
Array of attributes to getter functions (for serialization of requests)
$openAPIFormats  : array<string|int, string>
Array of property to format mappings. Used for (de)serialization
$openAPIModelName  : string
The original name of the model.
$openAPINullables  : array<string|int, mixed>
Array of nullable properties. Used for (de)serialization
$openAPINullablesSetToNull  : array<string|int, mixed>
If a nullable field gets set to null, insert it here
$openAPITypes  : array<string|int, string>
Array of property to type mappings. Used for (de)serialization
$setters  : array<string|int, string>
Array of attributes to setter functions (for deserialization of responses)
__construct()  : mixed
Constructor
__toString()  : string
Gets the string presentation of the object
attributeMap()  : array<string|int, mixed>
Array of attributes where the key is the local name, and the value is the original name
getAppearance()  : string
Gets appearance
getAvailableSlots()  : int
Gets available_slots
getBaseTarget()  : string
Gets base_target
getBusyLanes()  : int
Gets busy_lanes
getClient()  : string
Gets client
getCreditCost()  : int
Gets credit_cost
getDegradedLanes()  : int
Gets degraded_lanes
getDesiredLanes()  : int
Gets desired_lanes
getDesiredReleasePublicPollingWorkers()  : int|null
Gets desired_release_public_polling_workers
getDesiredReleaseWorkers()  : int|null
Gets desired_release_workers
getDesiredWorkerReleaseVersion()  : string|null
Gets desired_worker_release_version
getEnabled()  : bool
Gets enabled
getEngine()  : string
Gets engine
getFormFactor()  : string
Gets form_factor
getHealthyWorkers()  : int
Gets healthy_workers
getIdentityMismatchLanes()  : int
Gets identity_mismatch_lanes
getMatchedLiveLanes()  : int
Gets matched_live_lanes
getMinimumWorkerReleaseVersion()  : string|null
Gets minimum_worker_release_version
getModelName()  : string
The original name of the model.
getPlatform()  : string
Gets platform
getProvider()  : string|null
Gets provider
getPublicPollingWorkers()  : int
Gets public_polling_workers
getQuarantinedLanes()  : int
Gets quarantined_lanes
getRecentWorkers()  : int
Gets recent_workers
getReleaseVersions()  : array<string, int>
Gets release_versions
getRequestQueueConfigured()  : bool
Gets request_queue_configured
getServingLanes()  : int
Gets serving_lanes
getSpareLanes()  : int
Gets spare_lanes
getStatus()  : string
Gets status
getStatusAllowableValues()  : array<string|int, string>
Gets allowable values of the enum
getStatusReason()  : string|null
Gets status_reason
getSurface()  : string
Gets surface
getTarget()  : string
Gets target
getters()  : array<string|int, mixed>
Array of attributes to getter functions (for serialization of requests)
getTier()  : string
Gets tier
getTierAllowableValues()  : array<string|int, string>
Gets allowable values of the enum
getTimeoutSeconds()  : int
Gets timeout_seconds
getVisible()  : bool
Gets visible
getZeroCapacityLanes()  : int
Gets zero_capacity_lanes
isNullable()  : bool
Checks if a property is nullable
isNullableSetToNull()  : bool
Checks if a nullable property is set to null.
jsonSerialize()  : mixed
Serializes the object to a value that can be serialized natively by json_encode().
listInvalidProperties()  : array<string|int, mixed>
Show all the invalid properties with reasons.
offsetExists()  : bool
Returns true if offset exists. False otherwise.
offsetGet()  : mixed|null
Gets offset.
offsetSet()  : void
Sets value based on offset.
offsetUnset()  : void
Unsets offset.
openAPIFormats()  : array<string|int, mixed>
Array of property to format mappings. Used for (de)serialization
openAPITypes()  : array<string|int, mixed>
Array of property to type mappings. Used for (de)serialization
setAppearance()  : self
Sets appearance
setAvailableSlots()  : self
Sets available_slots
setBaseTarget()  : self
Sets base_target
setBusyLanes()  : self
Sets busy_lanes
setClient()  : self
Sets client
setCreditCost()  : self
Sets credit_cost
setDegradedLanes()  : self
Sets degraded_lanes
setDesiredLanes()  : self
Sets desired_lanes
setDesiredReleasePublicPollingWorkers()  : self
Sets desired_release_public_polling_workers
setDesiredReleaseWorkers()  : self
Sets desired_release_workers
setDesiredWorkerReleaseVersion()  : self
Sets desired_worker_release_version
setEnabled()  : self
Sets enabled
setEngine()  : self
Sets engine
setFormFactor()  : self
Sets form_factor
setHealthyWorkers()  : self
Sets healthy_workers
setIdentityMismatchLanes()  : self
Sets identity_mismatch_lanes
setMatchedLiveLanes()  : self
Sets matched_live_lanes
setMinimumWorkerReleaseVersion()  : self
Sets minimum_worker_release_version
setPlatform()  : self
Sets platform
setProvider()  : self
Sets provider
setPublicPollingWorkers()  : self
Sets public_polling_workers
setQuarantinedLanes()  : self
Sets quarantined_lanes
setRecentWorkers()  : self
Sets recent_workers
setReleaseVersions()  : self
Sets release_versions
setRequestQueueConfigured()  : self
Sets request_queue_configured
setServingLanes()  : self
Sets serving_lanes
setSpareLanes()  : self
Sets spare_lanes
setStatus()  : self
Sets status
setStatusReason()  : self
Sets status_reason
setSurface()  : self
Sets surface
setTarget()  : self
Sets target
setters()  : array<string|int, mixed>
Array of attributes to setter functions (for deserialization of responses)
setTier()  : self
Sets tier
setTimeoutSeconds()  : self
Sets timeout_seconds
setVisible()  : self
Sets visible
setZeroCapacityLanes()  : self
Sets zero_capacity_lanes
toHeaderValue()  : string
Gets a header-safe presentation of the object
valid()  : bool
Validate all the properties in the model return true if all passed
openAPINullables()  : array<string|int, mixed>
Array of nullable properties
getOpenAPINullablesSetToNull()  : array<string|int, bool>
Array of nullable field names deliberately set to null
setIfExists()  : void
Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the $this->openAPINullablesSetToNull array
setOpenAPINullablesSetToNull()  : void
Setter - Array of nullable field names deliberately set to null

Constants

Properties

$attributeMap

Array of attributes where the key is the local name, and the value is the original name

protected static array<string|int, string> $attributeMap = ['target' => 'target', 'base_target' => 'baseTarget', 'provider' => 'provider', 'client' => 'client', 'surface' => 'surface', 'platform' => 'platform', 'form_factor' => 'formFactor', 'engine' => 'engine', 'appearance' => 'appearance', 'visible' => 'visible', 'credit_cost' => 'creditCost', 'tier' => 'tier', 'enabled' => 'enabled', 'request_queue_configured' => 'requestQueueConfigured', 'status' => 'status', 'status_reason' => 'statusReason', 'healthy_workers' => 'healthyWorkers', 'recent_workers' => 'recentWorkers', 'timeout_seconds' => 'timeoutSeconds', 'available_slots' => 'availableSlots', 'public_polling_workers' => 'publicPollingWorkers', 'minimum_worker_release_version' => 'minimumWorkerReleaseVersion', 'desired_worker_release_version' => 'desiredWorkerReleaseVersion', 'desired_release_workers' => 'desiredReleaseWorkers', 'desired_release_public_polling_workers' => 'desiredReleasePublicPollingWorkers', 'release_versions' => 'releaseVersions', 'desired_lanes' => 'desiredLanes', 'matched_live_lanes' => 'matchedLiveLanes', 'identity_mismatch_lanes' => 'identityMismatchLanes', 'serving_lanes' => 'servingLanes', 'spare_lanes' => 'spareLanes', 'busy_lanes' => 'busyLanes', 'degraded_lanes' => 'degradedLanes', 'quarantined_lanes' => 'quarantinedLanes', 'zero_capacity_lanes' => 'zeroCapacityLanes']

$getters

Array of attributes to getter functions (for serialization of requests)

protected static array<string|int, string> $getters = ['target' => 'getTarget', 'base_target' => 'getBaseTarget', 'provider' => 'getProvider', 'client' => 'getClient', 'surface' => 'getSurface', 'platform' => 'getPlatform', 'form_factor' => 'getFormFactor', 'engine' => 'getEngine', 'appearance' => 'getAppearance', 'visible' => 'getVisible', 'credit_cost' => 'getCreditCost', 'tier' => 'getTier', 'enabled' => 'getEnabled', 'request_queue_configured' => 'getRequestQueueConfigured', 'status' => 'getStatus', 'status_reason' => 'getStatusReason', 'healthy_workers' => 'getHealthyWorkers', 'recent_workers' => 'getRecentWorkers', 'timeout_seconds' => 'getTimeoutSeconds', 'available_slots' => 'getAvailableSlots', 'public_polling_workers' => 'getPublicPollingWorkers', 'minimum_worker_release_version' => 'getMinimumWorkerReleaseVersion', 'desired_worker_release_version' => 'getDesiredWorkerReleaseVersion', 'desired_release_workers' => 'getDesiredReleaseWorkers', 'desired_release_public_polling_workers' => 'getDesiredReleasePublicPollingWorkers', 'release_versions' => 'getReleaseVersions', 'desired_lanes' => 'getDesiredLanes', 'matched_live_lanes' => 'getMatchedLiveLanes', 'identity_mismatch_lanes' => 'getIdentityMismatchLanes', 'serving_lanes' => 'getServingLanes', 'spare_lanes' => 'getSpareLanes', 'busy_lanes' => 'getBusyLanes', 'degraded_lanes' => 'getDegradedLanes', 'quarantined_lanes' => 'getQuarantinedLanes', 'zero_capacity_lanes' => 'getZeroCapacityLanes']

$openAPIFormats

Array of property to format mappings. Used for (de)serialization

protected static array<string|int, string> $openAPIFormats = ['target' => null, 'base_target' => null, 'provider' => null, 'client' => null, 'surface' => null, 'platform' => null, 'form_factor' => null, 'engine' => null, 'appearance' => null, 'visible' => null, 'credit_cost' => 'int64', 'tier' => null, 'enabled' => null, 'request_queue_configured' => null, 'status' => null, 'status_reason' => null, 'healthy_workers' => 'int32', 'recent_workers' => 'int32', 'timeout_seconds' => 'int64', 'available_slots' => 'int32', 'public_polling_workers' => 'int32', 'minimum_worker_release_version' => null, 'desired_worker_release_version' => null, 'desired_release_workers' => 'int32', 'desired_release_public_polling_workers' => 'int32', 'release_versions' => 'int32', 'desired_lanes' => 'int32', 'matched_live_lanes' => 'int32', 'identity_mismatch_lanes' => 'int32', 'serving_lanes' => 'int32', 'spare_lanes' => 'int32', 'busy_lanes' => 'int32', 'degraded_lanes' => 'int32', 'quarantined_lanes' => 'int32', 'zero_capacity_lanes' => 'int32']
Tags
phpstan-var

array<string, string|null>

psalm-var

array<string, string|null>

$openAPINullables

Array of nullable properties. Used for (de)serialization

protected static array<string|int, mixed> $openAPINullables = ['target' => false, 'base_target' => false, 'provider' => true, 'client' => false, 'surface' => false, 'platform' => false, 'form_factor' => false, 'engine' => false, 'appearance' => false, 'visible' => false, 'credit_cost' => false, 'tier' => false, 'enabled' => false, 'request_queue_configured' => false, 'status' => false, 'status_reason' => true, 'healthy_workers' => false, 'recent_workers' => false, 'timeout_seconds' => false, 'available_slots' => false, 'public_polling_workers' => false, 'minimum_worker_release_version' => true, 'desired_worker_release_version' => true, 'desired_release_workers' => true, 'desired_release_public_polling_workers' => true, 'release_versions' => false, 'desired_lanes' => false, 'matched_live_lanes' => false, 'identity_mismatch_lanes' => false, 'serving_lanes' => false, 'spare_lanes' => false, 'busy_lanes' => false, 'degraded_lanes' => false, 'quarantined_lanes' => false, 'zero_capacity_lanes' => false]

$openAPITypes

Array of property to type mappings. Used for (de)serialization

protected static array<string|int, string> $openAPITypes = ['target' => 'string', 'base_target' => 'string', 'provider' => 'string', 'client' => 'string', 'surface' => 'string', 'platform' => 'string', 'form_factor' => 'string', 'engine' => 'string', 'appearance' => 'string', 'visible' => 'bool', 'credit_cost' => 'int', 'tier' => 'string', 'enabled' => 'bool', 'request_queue_configured' => 'bool', 'status' => 'string', 'status_reason' => 'string', 'healthy_workers' => 'int', 'recent_workers' => 'int', 'timeout_seconds' => 'int', 'available_slots' => 'int', 'public_polling_workers' => 'int', 'minimum_worker_release_version' => 'string', 'desired_worker_release_version' => 'string', 'desired_release_workers' => 'int', 'desired_release_public_polling_workers' => 'int', 'release_versions' => 'array<string,int>', 'desired_lanes' => 'int', 'matched_live_lanes' => 'int', 'identity_mismatch_lanes' => 'int', 'serving_lanes' => 'int', 'spare_lanes' => 'int', 'busy_lanes' => 'int', 'degraded_lanes' => 'int', 'quarantined_lanes' => 'int', 'zero_capacity_lanes' => 'int']

$setters

Array of attributes to setter functions (for deserialization of responses)

protected static array<string|int, string> $setters = ['target' => 'setTarget', 'base_target' => 'setBaseTarget', 'provider' => 'setProvider', 'client' => 'setClient', 'surface' => 'setSurface', 'platform' => 'setPlatform', 'form_factor' => 'setFormFactor', 'engine' => 'setEngine', 'appearance' => 'setAppearance', 'visible' => 'setVisible', 'credit_cost' => 'setCreditCost', 'tier' => 'setTier', 'enabled' => 'setEnabled', 'request_queue_configured' => 'setRequestQueueConfigured', 'status' => 'setStatus', 'status_reason' => 'setStatusReason', 'healthy_workers' => 'setHealthyWorkers', 'recent_workers' => 'setRecentWorkers', 'timeout_seconds' => 'setTimeoutSeconds', 'available_slots' => 'setAvailableSlots', 'public_polling_workers' => 'setPublicPollingWorkers', 'minimum_worker_release_version' => 'setMinimumWorkerReleaseVersion', 'desired_worker_release_version' => 'setDesiredWorkerReleaseVersion', 'desired_release_workers' => 'setDesiredReleaseWorkers', 'desired_release_public_polling_workers' => 'setDesiredReleasePublicPollingWorkers', 'release_versions' => 'setReleaseVersions', 'desired_lanes' => 'setDesiredLanes', 'matched_live_lanes' => 'setMatchedLiveLanes', 'identity_mismatch_lanes' => 'setIdentityMismatchLanes', 'serving_lanes' => 'setServingLanes', 'spare_lanes' => 'setSpareLanes', 'busy_lanes' => 'setBusyLanes', 'degraded_lanes' => 'setDegradedLanes', 'quarantined_lanes' => 'setQuarantinedLanes', 'zero_capacity_lanes' => 'setZeroCapacityLanes']

Methods

__construct()

Constructor

public __construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
$data : array<string|int, mixed> = null

Associated array of property values initializing the model

Return values
mixed —

attributeMap()

Array of attributes where the key is the local name, and the value is the original name

public static attributeMap() : array<string|int, mixed>
Return values
array<string|int, mixed> —

getDesiredReleasePublicPollingWorkers()

Gets desired_release_public_polling_workers

public getDesiredReleasePublicPollingWorkers() : int|null
Return values
int|null —

getters()

Array of attributes to getter functions (for serialization of requests)

public static getters() : array<string|int, mixed>
Return values
array<string|int, mixed> —

isNullableSetToNull()

Checks if a nullable property is set to null.

public isNullableSetToNull(string $property) : bool
Parameters
$property : string
Return values
bool —

listInvalidProperties()

Show all the invalid properties with reasons.

public listInvalidProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —

invalid properties with reasons

offsetSet()

Sets value based on offset.

public offsetSet(int|null $offset, mixed $value) : void
Parameters
$offset : int|null

Offset

$value : mixed

Value to be set

Return values
void —

openAPIFormats()

Array of property to format mappings. Used for (de)serialization

public static openAPIFormats() : array<string|int, mixed>
Return values
array<string|int, mixed> —

openAPITypes()

Array of property to type mappings. Used for (de)serialization

public static openAPITypes() : array<string|int, mixed>
Return values
array<string|int, mixed> —

setAvailableSlots()

Sets available_slots

public setAvailableSlots(int $available_slots) : self
Parameters
$available_slots : int

available_slots

Return values
self —

setDesiredReleasePublicPollingWorkers()

Sets desired_release_public_polling_workers

public setDesiredReleasePublicPollingWorkers(int|null $desired_release_public_polling_workers) : self
Parameters
$desired_release_public_polling_workers : int|null

desired_release_public_polling_workers

Return values
self —

setDesiredReleaseWorkers()

Sets desired_release_workers

public setDesiredReleaseWorkers(int|null $desired_release_workers) : self
Parameters
$desired_release_workers : int|null

desired_release_workers

Return values
self —

setDesiredWorkerReleaseVersion()

Sets desired_worker_release_version

public setDesiredWorkerReleaseVersion(string|null $desired_worker_release_version) : self
Parameters
$desired_worker_release_version : string|null

desired_worker_release_version

Return values
self —

setHealthyWorkers()

Sets healthy_workers

public setHealthyWorkers(int $healthy_workers) : self
Parameters
$healthy_workers : int

healthy_workers

Return values
self —

setIdentityMismatchLanes()

Sets identity_mismatch_lanes

public setIdentityMismatchLanes(int $identity_mismatch_lanes) : self
Parameters
$identity_mismatch_lanes : int

identity_mismatch_lanes

Return values
self —

setMatchedLiveLanes()

Sets matched_live_lanes

public setMatchedLiveLanes(int $matched_live_lanes) : self
Parameters
$matched_live_lanes : int

matched_live_lanes

Return values
self —

setMinimumWorkerReleaseVersion()

Sets minimum_worker_release_version

public setMinimumWorkerReleaseVersion(string|null $minimum_worker_release_version) : self
Parameters
$minimum_worker_release_version : string|null

minimum_worker_release_version

Return values
self —

setPublicPollingWorkers()

Sets public_polling_workers

public setPublicPollingWorkers(int $public_polling_workers) : self
Parameters
$public_polling_workers : int

public_polling_workers

Return values
self —

setQuarantinedLanes()

Sets quarantined_lanes

public setQuarantinedLanes(int $quarantined_lanes) : self
Parameters
$quarantined_lanes : int

quarantined_lanes

Return values
self —

setReleaseVersions()

Sets release_versions

public setReleaseVersions(array<string, int> $release_versions) : self
Parameters
$release_versions : array<string, int>

release_versions

Return values
self —

setRequestQueueConfigured()

Sets request_queue_configured

public setRequestQueueConfigured(bool $request_queue_configured) : self
Parameters
$request_queue_configured : bool

request_queue_configured

Return values
self —

setStatusReason()

Sets status_reason

public setStatusReason(string|null $status_reason) : self
Parameters
$status_reason : string|null

status_reason

Return values
self —

setters()

Array of attributes to setter functions (for deserialization of responses)

public static setters() : array<string|int, mixed>
Return values
array<string|int, mixed> —

setTimeoutSeconds()

Sets timeout_seconds

public setTimeoutSeconds(int $timeout_seconds) : self
Parameters
$timeout_seconds : int

timeout_seconds

Return values
self —

setZeroCapacityLanes()

Sets zero_capacity_lanes

public setZeroCapacityLanes(int $zero_capacity_lanes) : self
Parameters
$zero_capacity_lanes : int

zero_capacity_lanes

Return values
self —

getOpenAPINullablesSetToNull()

Array of nullable field names deliberately set to null

private getOpenAPINullablesSetToNull() : array<string|int, bool>
Return values
array<string|int, bool> —

setIfExists()

Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the $this->openAPINullablesSetToNull array

private setIfExists(string $variableName, array<string|int, mixed> $fields, mixed $defaultValue) : void
Parameters
$variableName : string
$fields : array<string|int, mixed>
$defaultValue : mixed
Return values
void —

setOpenAPINullablesSetToNull()

Setter - Array of nullable field names deliberately set to null

private setOpenAPINullablesSetToNull(array<string|int, bool> $openAPINullablesSetToNull) : void
Parameters
$openAPINullablesSetToNull : array<string|int, bool>
Return values
void —

Search results