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 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/PipeExpression.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PipeExpression.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/PipeExpression.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PipeExpression.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/PipeExpression.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PipeExpression.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.php | MIT |
public function getActionAllowableValues()
{
return [
self::ACTION_READ,
self::ACTION_WRITE,
];
} | Gets allowable values of the enum
@return string[] | getActionAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.php | MIT |
public function __construct(array $data = null)
{
$this->container['action'] = isset($data['action']) ? $data['action'] : null;
$this->container['resource'] = isset($data['resource']) ? $data['resource'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['action'] === null) {
$invalidProperties[] = "'action' can't be null";
}
$allowedValues = $this->getActionAllowableValues();
if (!is_null($this->container['action']) && !in_array($this->container['action'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'action', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if ($this->container['resource'] === null) {
$invalidProperties[] = "'resource' 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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/Permission.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/Permission.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function getTypeAllowableValues()
{
return [
self::TYPE_XY,
];
} | Gets allowable values of the enum
@return string[] | getTypeAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function getShapeAllowableValues()
{
return [
self::SHAPE_CHRONOGRAF_V2,
];
} | Gets allowable values of the enum
@return string[] | getShapeAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function getHoverDimensionAllowableValues()
{
return [
self::HOVER_DIMENSION_AUTO,
self::HOVER_DIMENSION_X,
self::HOVER_DIMENSION_Y,
self::HOVER_DIMENSION_XY,
];
} | Gets allowable values of the enum
@return string[] | getHoverDimensionAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function getPositionAllowableValues()
{
return [
self::POSITION_OVERLAID,
self::POSITION_STACKED,
];
} | Gets allowable values of the enum
@return string[] | getPositionAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
$this->container['adaptive_zoom_hide'] = isset($data['adaptive_zoom_hide']) ? $data['adaptive_zoom_hide'] : null;
$this->container['time_format'] = isset($data['time_format']) ? $data['time_format'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : TYPE_XY;
$this->container['queries'] = isset($data['queries']) ? $data['queries'] : null;
$this->container['colors'] = isset($data['colors']) ? $data['colors'] : null;
$this->container['color_mapping'] = isset($data['color_mapping']) ? $data['color_mapping'] : null;
$this->container['shape'] = isset($data['shape']) ? $data['shape'] : SHAPE_CHRONOGRAF_V2;
$this->container['note'] = isset($data['note']) ? $data['note'] : null;
$this->container['show_note_when_empty'] = isset($data['show_note_when_empty']) ? $data['show_note_when_empty'] : null;
$this->container['axes'] = isset($data['axes']) ? $data['axes'] : null;
$this->container['static_legend'] = isset($data['static_legend']) ? $data['static_legend'] : null;
$this->container['x_column'] = isset($data['x_column']) ? $data['x_column'] : null;
$this->container['generate_x_axis_ticks'] = isset($data['generate_x_axis_ticks']) ? $data['generate_x_axis_ticks'] : null;
$this->container['x_total_ticks'] = isset($data['x_total_ticks']) ? $data['x_total_ticks'] : null;
$this->container['x_tick_start'] = isset($data['x_tick_start']) ? $data['x_tick_start'] : null;
$this->container['x_tick_step'] = isset($data['x_tick_step']) ? $data['x_tick_step'] : null;
$this->container['y_column'] = isset($data['y_column']) ? $data['y_column'] : null;
$this->container['generate_y_axis_ticks'] = isset($data['generate_y_axis_ticks']) ? $data['generate_y_axis_ticks'] : null;
$this->container['y_total_ticks'] = isset($data['y_total_ticks']) ? $data['y_total_ticks'] : null;
$this->container['y_tick_start'] = isset($data['y_tick_start']) ? $data['y_tick_start'] : null;
$this->container['y_tick_step'] = isset($data['y_tick_step']) ? $data['y_tick_step'] : null;
$this->container['shade_below'] = isset($data['shade_below']) ? $data['shade_below'] : null;
$this->container['hover_dimension'] = isset($data['hover_dimension']) ? $data['hover_dimension'] : null;
$this->container['position'] = isset($data['position']) ? $data['position'] : null;
$this->container['geom'] = isset($data['geom']) ? $data['geom'] : null;
$this->container['legend_colorize_rows'] = isset($data['legend_colorize_rows']) ? $data['legend_colorize_rows'] : null;
$this->container['legend_hide'] = isset($data['legend_hide']) ? $data['legend_hide'] : null;
$this->container['legend_opacity'] = isset($data['legend_opacity']) ? $data['legend_opacity'] : null;
$this->container['legend_orientation_threshold'] = isset($data['legend_orientation_threshold']) ? $data['legend_orientation_threshold'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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)
);
}
if ($this->container['queries'] === null) {
$invalidProperties[] = "'queries' can't be null";
}
if ($this->container['colors'] === null) {
$invalidProperties[] = "'colors' can't be null";
}
if ($this->container['shape'] === null) {
$invalidProperties[] = "'shape' can't be null";
}
$allowedValues = $this->getShapeAllowableValues();
if (!is_null($this->container['shape']) && !in_array($this->container['shape'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'shape', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if ($this->container['note'] === null) {
$invalidProperties[] = "'note' can't be null";
}
if ($this->container['show_note_when_empty'] === null) {
$invalidProperties[] = "'show_note_when_empty' can't be null";
}
if ($this->container['axes'] === null) {
$invalidProperties[] = "'axes' can't be null";
}
$allowedValues = $this->getHoverDimensionAllowableValues();
if (!is_null($this->container['hover_dimension']) && !in_array($this->container['hover_dimension'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'hover_dimension', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if ($this->container['position'] === null) {
$invalidProperties[] = "'position' can't be null";
}
$allowedValues = $this->getPositionAllowableValues();
if (!is_null($this->container['position']) && !in_array($this->container['position'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'position', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if ($this->container['geom'] === null) {
$invalidProperties[] = "'geom' 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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function getLegendOrientationThreshold()
{
return $this->container['legend_orientation_threshold'];
} | Gets legend_orientation_threshold
@return int|null | getLegendOrientationThreshold | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.php | MIT |
public function setLegendOrientationThreshold($legend_orientation_threshold)
{
$this->container['legend_orientation_threshold'] = $legend_orientation_threshold;
return $this;
} | Sets legend_orientation_threshold
@param int|null $legend_orientation_threshold legend_orientation_threshold
@return $this | setLegendOrientationThreshold | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/XYViewProperties.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/XYViewProperties.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
$this->container['client_url'] = isset($data['client_url']) ? $data['client_url'] : null;
$this->container['routing_key'] = isset($data['routing_key']) ? $data['routing_key'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
if ($this->container['routing_key'] === null) {
$invalidProperties[] = "'routing_key' 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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/PagerDutyNotificationEndpoint.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PagerDutyNotificationEndpoint.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['expression'] = isset($data['expression']) ? $data['expression'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/ExpressionStatement.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ExpressionStatement.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.php | MIT |
public function __construct(array $data = 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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/PostRestoreKVResponse.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PostRestoreKVResponse.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.php | MIT |
public function getRoleAllowableValues()
{
return [
self::ROLE_OWNER,
];
} | Gets allowable values of the enum
@return string[] | getRoleAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.php | MIT |
public function __construct(array $data = null)
{
parent::__construct($data);
$this->container['role'] = isset($data['role']) ? $data['role'] : 'owner';
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
$allowedValues = $this->getRoleAllowableValues();
if (!is_null($this->container['role']) && !in_array($this->container['role'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'role', 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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/ResourceOwner.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/ResourceOwner.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.php | MIT |
public function getTypeAllowableValues()
{
return [
self::TYPE_MIN,
self::TYPE_MAX,
self::TYPE_THRESHOLD,
self::TYPE_SCALE,
self::TYPE_TEXT,
self::TYPE_BACKGROUND,
];
} | Gets allowable values of the enum
@return string[] | getTypeAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.php | MIT |
public function __construct(array $data = null)
{
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['hex'] = isset($data['hex']) ? $data['hex'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.php | MIT |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['id'] === null) {
$invalidProperties[] = "'id' can't be null";
}
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)
);
}
if ($this->container['hex'] === null) {
$invalidProperties[] = "'hex' can't be null";
}
if ((mb_strlen($this->container['hex']) > 7)) {
$invalidProperties[] = "invalid value for 'hex', the character length must be smaller than or equal to 7.";
}
if ((mb_strlen($this->container['hex']) < 7)) {
$invalidProperties[] = "invalid value for 'hex', the character length must be bigger than or equal to 7.";
}
if ($this->container['name'] === null) {
$invalidProperties[] = "'name' can't be null";
}
if ($this->container['value'] === null) {
$invalidProperties[] = "'value' 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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/DashboardColor.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/DashboardColor.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.php | MIT |
public function getTypeAllowableValues()
{
return [
self::TYPE_EXPIRE,
];
} | Gets allowable values of the enum
@return string[] | getTypeAllowableValues | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.php | MIT |
public function __construct(array $data = null)
{
$this->container['type'] = isset($data['type']) ? $data['type'] : 'expire';
$this->container['every_seconds'] = isset($data['every_seconds']) ? $data['every_seconds'] : 2592000;
$this->container['shard_group_duration_seconds'] = isset($data['shard_group_duration_seconds']) ? $data['shard_group_duration_seconds'] : null;
} | Constructor
@param mixed[] $data Associated array of property values
initializing the model | __construct | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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)
);
}
if ($this->container['every_seconds'] === null) {
$invalidProperties[] = "'every_seconds' can't be null";
}
if (($this->container['every_seconds'] < 0)) {
$invalidProperties[] = "invalid value for 'every_seconds', must be bigger than or equal to 0.";
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | listInvalidProperties | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.php | MIT |
public function getShardGroupDurationSeconds()
{
return $this->container['shard_group_duration_seconds'];
} | Gets shard_group_duration_seconds
@return int|null | getShardGroupDurationSeconds | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.php | MIT |
public function setShardGroupDurationSeconds($shard_group_duration_seconds)
{
$this->container['shard_group_duration_seconds'] = $shard_group_duration_seconds;
return $this;
} | Sets shard_group_duration_seconds
@param int|null $shard_group_duration_seconds The [shard group duration](https://docs.influxdata.com/influxdb/v2.3/reference/glossary/#shard). The number of seconds that each shard group covers. #### InfluxDB Cloud - Doesn't use `shardGroupDurationsSeconds`. #### InfluxDB OSS - Default value depends on the [bucket retention period](https://docs.influxdata.com/influxdb/v2.3/reference/internals/shards/#shard-group-duration). #### Related guides - InfluxDB [shards and shard groups](https://docs.influxdata.com/influxdb/v2.3/reference/internals/shards/)
@return $this | setShardGroupDurationSeconds | php | influxdata/influxdb-client-php | src/InfluxDB2/Model/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/PatchRetentionRule.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/PatchRetentionRule.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/NotificationRuleUpdate.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/NotificationRuleUpdate.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/NotificationRuleUpdate.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/NotificationRuleUpdate.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/NotificationRuleUpdate.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/NotificationRuleUpdate.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/NotificationRuleUpdate.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/NotificationRuleUpdate.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/NotificationRuleUpdate.php | https://github.com/influxdata/influxdb-client-php/blob/master/src/InfluxDB2/Model/NotificationRuleUpdate.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.