code
stringlengths 17
296k
| docstring
stringlengths 30
30.3k
| func_name
stringlengths 1
89
| language
stringclasses 1
value | repo
stringlengths 7
63
| path
stringlengths 7
153
| url
stringlengths 51
209
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Sources.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Sources.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Sources.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Sources.php | MIT |
public function __construct(array $data = null)
{
$this->container['links'] = isset($data['links']) ? $data['links'] : null;
$this->container['sources'] = isset($data['sources']) ? $data['sources'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Sources.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Sources.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Sources.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Sources.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Sources.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Sources.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Sources.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Sources.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats;
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public static function attributeMap()
{
return self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public static function setters()
{
return self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public function getStatusAllowableValues()
{
return [
self::STATUS_ACTIVE,
self::STATUS_INACTIVE,
];
} | Gets allowable values of the enum
@return string[] | getStatusAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public function __construct(array $data = null)
{
$this->container['links'] = isset($data['links']) ? $data['links'] : null;
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
$this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null;
$this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : 'active';
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['name'] === null) {
$invalidProperties[] = "'name' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Organization.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Organization.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats;
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public static function attributeMap()
{
return self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public static function setters()
{
return self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public function __construct(array $data = null)
{
$this->container['links'] = isset($data['links']) ? $data['links'] : null;
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['properties'] = isset($data['properties']) ? $data['properties'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['name'] === null) {
$invalidProperties[] = "'name' can't be null";
}
if ($this->container['properties'] === null) {
$invalidProperties[] = "'properties' can't be null";
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/View.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/View.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes + parent::openAPITypes();
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats + parent::openAPIFormats();
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public static function attributeMap()
{
return parent::attributeMap() + self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public static function setters()
{
return parent::setters() + self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public static function getters()
{
return parent::getters() + self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
$this->container['url'] = isset($data['url']) ? $data['url'] : null;
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/SlackNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/SlackNotificationEndpoint.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats;
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public static function attributeMap()
{
return self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public static function setters()
{
return self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public function __construct(array $data = null)
{
$this->container['stack_id'] = isset($data['stack_id']) ? $data['stack_id'] : null;
$this->container['org_i_ds'] = isset($data['org_i_ds']) ? $data['org_i_ds'] : null;
$this->container['resources'] = isset($data['resources']) ? $data['resources'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/TemplateExportByID.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/TemplateExportByID.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats;
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public static function attributeMap()
{
return self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public static function setters()
{
return self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public function getTypeAllowableValues()
{
return [
self::TYPE_PROMETHEUS,
];
} | Gets allowable values of the enum
@return string[] | getTypeAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public function __construct(array $data = null)
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['url'] = isset($data['url']) ? $data['url'] : null;
$this->container['org_id'] = isset($data['org_id']) ? $data['org_id'] : null;
$this->container['bucket_id'] = isset($data['bucket_id']) ? $data['bucket_id'] : null;
$this->container['allow_insecure'] = isset($data['allow_insecure']) ? $data['allow_insecure'] : false;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
$allowedValues = $this->getTypeAllowableValues();
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ScraperTargetRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ScraperTargetRequest.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats;
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public static function attributeMap()
{
return self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public static function setters()
{
return self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public function __construct(array $data = null)
{
$this->container['links'] = isset($data['links']) ? $data['links'] : null;
$this->container['views'] = isset($data['views']) ? $data['views'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Views.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Views.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes + parent::openAPITypes();
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats + parent::openAPIFormats();
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public static function attributeMap()
{
return parent::attributeMap() + self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public static function setters()
{
return parent::setters() + self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public static function getters()
{
return parent::getters() + self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
// Initialize discriminator property with the model name.
$discriminator = array_search('type', self::$attributeMap, true);
$this->container[$discriminator] = static::$openAPIModelName;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Threshold.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Threshold.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats;
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public static function attributeMap()
{
return self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public static function setters()
{
return self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public static function getters()
{
return self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public function __construct(array $data = null)
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
$this->container['template_ur_ls'] = isset($data['template_ur_ls']) ? $data['template_ur_ls'] : null;
$this->container['additional_resources'] = isset($data['additional_resources']) ? $data['additional_resources'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchStackRequest.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchStackRequest.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes + parent::openAPITypes();
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public static function openAPIFormats()
{
return self::$openAPIFormats + parent::openAPIFormats();
} | Array of property to format mappings. Used for (de)serialization
@return array | openAPIFormats | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public static function attributeMap()
{
return parent::attributeMap() + self::$attributeMap;
} | Array of attributes where the key is the local name,
and the value is the original name
@return array | attributeMap | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public static function setters()
{
return parent::setters() + self::$setters;
} | Array of attributes to setter functions (for deserialization of responses)
@return array | setters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public static function getters()
{
return parent::getters() + self::$getters;
} | Array of attributes to getter functions (for serialization of requests)
@return array | getters | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public function getModelName()
{
return self::$openAPIModelName;
} | The original name of the model.
@return string | getModelName | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public function getTypeAllowableValues()
{
return [
self::TYPE_THRESHOLD,
];
} | Gets allowable values of the enum
@return string[] | getTypeAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
$this->container['type'] = isset($data['type']) ? $data['type'] : "threshold";
$this->container['thresholds'] = isset($data['thresholds']) ? $data['thresholds'] : null;
$this->container['every'] = isset($data['every']) ? $data['every'] : null;
$this->container['offset'] = isset($data['offset']) ? $data['offset'] : null;
$this->container['tags'] = isset($data['tags']) ? $data['tags'] : null;
$this->container['status_message_template'] = isset($data['status_message_template']) ? $data['status_message_template'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
if ($this->container['type'] === null) {
$invalidProperties[] = "'type' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | valid | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
} | Gets the string presentation of the object
@return string | __toString | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ThresholdCheck.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ThresholdCheck.php | MIT |
public static function openAPITypes()
{
return self::$openAPITypes;
} | Array of property to type mappings. Used for (de)serialization
@return array | openAPITypes | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Buckets.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Buckets.php | MIT |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.