diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ab41e79..30e82d3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### API 1. [#151](https://github.com/influxdata/influxdb-client-python/pull/151): Default port changed from 9999 -> 8086 +1. [#156](https://github.com/influxdata/influxdb-client-python/pull/156): Removed labels in organization API, removed Pkg* structure and package service ### Bug Fixes 1. [#154](https://github.com/influxdata/influxdb-client-python/pull/154): Fixed escaping string fields in DataFrame serialization diff --git a/influxdb_client/__init__.py b/influxdb_client/__init__.py index db7ad855..1c2d1b3c 100644 --- a/influxdb_client/__init__.py +++ b/influxdb_client/__init__.py @@ -22,7 +22,6 @@ from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.health_service import HealthService -from influxdb_client.service.influx_packages_service import InfluxPackagesService from influxdb_client.service.labels_service import LabelsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService @@ -185,24 +184,6 @@ from influxdb_client.domain.permission_resource import PermissionResource from influxdb_client.domain.pipe_expression import PipeExpression from influxdb_client.domain.pipe_literal import PipeLiteral -from influxdb_client.domain.pkg import Pkg -from influxdb_client.domain.pkg_apply import PkgApply -from influxdb_client.domain.pkg_chart import PkgChart -from influxdb_client.domain.pkg_create import PkgCreate -from influxdb_client.domain.pkg_create_resources import PkgCreateResources -from influxdb_client.domain.pkg_meta import PkgMeta -from influxdb_client.domain.pkg_spec import PkgSpec -from influxdb_client.domain.pkg_summary import PkgSummary -from influxdb_client.domain.pkg_summary_diff import PkgSummaryDiff -from influxdb_client.domain.pkg_summary_diff_buckets import PkgSummaryDiffBuckets -from influxdb_client.domain.pkg_summary_diff_dashboards import PkgSummaryDiffDashboards -from influxdb_client.domain.pkg_summary_diff_label_mappings import PkgSummaryDiffLabelMappings -from influxdb_client.domain.pkg_summary_diff_labels import PkgSummaryDiffLabels -from influxdb_client.domain.pkg_summary_diff_variables import PkgSummaryDiffVariables -from influxdb_client.domain.pkg_summary_errors import PkgSummaryErrors -from influxdb_client.domain.pkg_summary_summary import PkgSummarySummary -from influxdb_client.domain.pkg_summary_summary_dashboards import PkgSummarySummaryDashboards -from influxdb_client.domain.pkg_summary_summary_label_mappings import PkgSummarySummaryLabelMappings from influxdb_client.domain.post_bucket_request import PostBucketRequest from influxdb_client.domain.post_check import PostCheck from influxdb_client.domain.post_notification_endpoint import PostNotificationEndpoint diff --git a/influxdb_client/client/__init__.py b/influxdb_client/client/__init__.py index 9cce6043..1545ae8c 100644 --- a/influxdb_client/client/__init__.py +++ b/influxdb_client/client/__init__.py @@ -20,7 +20,6 @@ from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.health_service import HealthService -from influxdb_client.service.influx_packages_service import InfluxPackagesService from influxdb_client.service.labels_service import LabelsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService diff --git a/influxdb_client/client/write/__init__.py b/influxdb_client/client/write/__init__.py index 9cce6043..1545ae8c 100644 --- a/influxdb_client/client/write/__init__.py +++ b/influxdb_client/client/write/__init__.py @@ -20,7 +20,6 @@ from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.health_service import HealthService -from influxdb_client.service.influx_packages_service import InfluxPackagesService from influxdb_client.service.labels_service import LabelsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService diff --git a/influxdb_client/domain/__init__.py b/influxdb_client/domain/__init__.py index 791a6b70..d8864244 100644 --- a/influxdb_client/domain/__init__.py +++ b/influxdb_client/domain/__init__.py @@ -152,24 +152,6 @@ from influxdb_client.domain.permission_resource import PermissionResource from influxdb_client.domain.pipe_expression import PipeExpression from influxdb_client.domain.pipe_literal import PipeLiteral -from influxdb_client.domain.pkg import Pkg -from influxdb_client.domain.pkg_apply import PkgApply -from influxdb_client.domain.pkg_chart import PkgChart -from influxdb_client.domain.pkg_create import PkgCreate -from influxdb_client.domain.pkg_create_resources import PkgCreateResources -from influxdb_client.domain.pkg_meta import PkgMeta -from influxdb_client.domain.pkg_spec import PkgSpec -from influxdb_client.domain.pkg_summary import PkgSummary -from influxdb_client.domain.pkg_summary_diff import PkgSummaryDiff -from influxdb_client.domain.pkg_summary_diff_buckets import PkgSummaryDiffBuckets -from influxdb_client.domain.pkg_summary_diff_dashboards import PkgSummaryDiffDashboards -from influxdb_client.domain.pkg_summary_diff_label_mappings import PkgSummaryDiffLabelMappings -from influxdb_client.domain.pkg_summary_diff_labels import PkgSummaryDiffLabels -from influxdb_client.domain.pkg_summary_diff_variables import PkgSummaryDiffVariables -from influxdb_client.domain.pkg_summary_errors import PkgSummaryErrors -from influxdb_client.domain.pkg_summary_summary import PkgSummarySummary -from influxdb_client.domain.pkg_summary_summary_dashboards import PkgSummarySummaryDashboards -from influxdb_client.domain.pkg_summary_summary_label_mappings import PkgSummarySummaryLabelMappings from influxdb_client.domain.post_bucket_request import PostBucketRequest from influxdb_client.domain.post_check import PostCheck from influxdb_client.domain.post_notification_endpoint import PostNotificationEndpoint diff --git a/influxdb_client/domain/pkg.py b/influxdb_client/domain/pkg.py deleted file mode 100644 index 8b97e1f5..00000000 --- a/influxdb_client/domain/pkg.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Pkg(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'api_version': 'str', - 'kind': 'str', - 'meta': 'PkgMeta', - 'spec': 'PkgSpec' - } - - attribute_map = { - 'api_version': 'apiVersion', - 'kind': 'kind', - 'meta': 'meta', - 'spec': 'spec' - } - - def __init__(self, api_version=None, kind=None, meta=None, spec=None): # noqa: E501,D401,D403 - """Pkg - a model defined in OpenAPI.""" # noqa: E501 - self._api_version = None - self._kind = None - self._meta = None - self._spec = None - self.discriminator = None - - if api_version is not None: - self.api_version = api_version - if kind is not None: - self.kind = kind - if meta is not None: - self.meta = meta - if spec is not None: - self.spec = spec - - @property - def api_version(self): - """Get the api_version of this Pkg. - - :return: The api_version of this Pkg. - :rtype: str - """ # noqa: E501 - return self._api_version - - @api_version.setter - def api_version(self, api_version): - """Set the api_version of this Pkg. - - :param api_version: The api_version of this Pkg. - :type: str - """ # noqa: E501 - self._api_version = api_version - - @property - def kind(self): - """Get the kind of this Pkg. - - :return: The kind of this Pkg. - :rtype: str - """ # noqa: E501 - return self._kind - - @kind.setter - def kind(self, kind): - """Set the kind of this Pkg. - - :param kind: The kind of this Pkg. - :type: str - """ # noqa: E501 - self._kind = kind - - @property - def meta(self): - """Get the meta of this Pkg. - - :return: The meta of this Pkg. - :rtype: PkgMeta - """ # noqa: E501 - return self._meta - - @meta.setter - def meta(self, meta): - """Set the meta of this Pkg. - - :param meta: The meta of this Pkg. - :type: PkgMeta - """ # noqa: E501 - self._meta = meta - - @property - def spec(self): - """Get the spec of this Pkg. - - :return: The spec of this Pkg. - :rtype: PkgSpec - """ # noqa: E501 - return self._spec - - @spec.setter - def spec(self, spec): - """Set the spec of this Pkg. - - :param spec: The spec of this Pkg. - :type: PkgSpec - """ # noqa: E501 - self._spec = spec - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, Pkg): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_apply.py b/influxdb_client/domain/pkg_apply.py deleted file mode 100644 index d993f1f8..00000000 --- a/influxdb_client/domain/pkg_apply.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgApply(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'apply': 'bool', - 'package': 'Pkg' - } - - attribute_map = { - 'apply': 'apply', - 'package': 'package' - } - - def __init__(self, apply=None, package=None): # noqa: E501,D401,D403 - """PkgApply - a model defined in OpenAPI.""" # noqa: E501 - self._apply = None - self._package = None - self.discriminator = None - - if apply is not None: - self.apply = apply - if package is not None: - self.package = package - - @property - def apply(self): - """Get the apply of this PkgApply. - - :return: The apply of this PkgApply. - :rtype: bool - """ # noqa: E501 - return self._apply - - @apply.setter - def apply(self, apply): - """Set the apply of this PkgApply. - - :param apply: The apply of this PkgApply. - :type: bool - """ # noqa: E501 - self._apply = apply - - @property - def package(self): - """Get the package of this PkgApply. - - :return: The package of this PkgApply. - :rtype: Pkg - """ # noqa: E501 - return self._package - - @package.setter - def package(self, package): - """Set the package of this PkgApply. - - :param package: The package of this PkgApply. - :type: Pkg - """ # noqa: E501 - self._package = package - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgApply): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_chart.py b/influxdb_client/domain/pkg_chart.py deleted file mode 100644 index 123a1479..00000000 --- a/influxdb_client/domain/pkg_chart.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgChart(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'x_pos': 'int', - 'y_pos': 'int', - 'height': 'int', - 'width': 'int', - 'properties': 'ViewProperties' - } - - attribute_map = { - 'x_pos': 'xPos', - 'y_pos': 'yPos', - 'height': 'height', - 'width': 'width', - 'properties': 'properties' - } - - def __init__(self, x_pos=None, y_pos=None, height=None, width=None, properties=None): # noqa: E501,D401,D403 - """PkgChart - a model defined in OpenAPI.""" # noqa: E501 - self._x_pos = None - self._y_pos = None - self._height = None - self._width = None - self._properties = None - self.discriminator = None - - if x_pos is not None: - self.x_pos = x_pos - if y_pos is not None: - self.y_pos = y_pos - if height is not None: - self.height = height - if width is not None: - self.width = width - if properties is not None: - self.properties = properties - - @property - def x_pos(self): - """Get the x_pos of this PkgChart. - - :return: The x_pos of this PkgChart. - :rtype: int - """ # noqa: E501 - return self._x_pos - - @x_pos.setter - def x_pos(self, x_pos): - """Set the x_pos of this PkgChart. - - :param x_pos: The x_pos of this PkgChart. - :type: int - """ # noqa: E501 - self._x_pos = x_pos - - @property - def y_pos(self): - """Get the y_pos of this PkgChart. - - :return: The y_pos of this PkgChart. - :rtype: int - """ # noqa: E501 - return self._y_pos - - @y_pos.setter - def y_pos(self, y_pos): - """Set the y_pos of this PkgChart. - - :param y_pos: The y_pos of this PkgChart. - :type: int - """ # noqa: E501 - self._y_pos = y_pos - - @property - def height(self): - """Get the height of this PkgChart. - - :return: The height of this PkgChart. - :rtype: int - """ # noqa: E501 - return self._height - - @height.setter - def height(self, height): - """Set the height of this PkgChart. - - :param height: The height of this PkgChart. - :type: int - """ # noqa: E501 - self._height = height - - @property - def width(self): - """Get the width of this PkgChart. - - :return: The width of this PkgChart. - :rtype: int - """ # noqa: E501 - return self._width - - @width.setter - def width(self, width): - """Set the width of this PkgChart. - - :param width: The width of this PkgChart. - :type: int - """ # noqa: E501 - self._width = width - - @property - def properties(self): - """Get the properties of this PkgChart. - - :return: The properties of this PkgChart. - :rtype: ViewProperties - """ # noqa: E501 - return self._properties - - @properties.setter - def properties(self, properties): - """Set the properties of this PkgChart. - - :param properties: The properties of this PkgChart. - :type: ViewProperties - """ # noqa: E501 - self._properties = properties - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgChart): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_create.py b/influxdb_client/domain/pkg_create.py deleted file mode 100644 index 899037e3..00000000 --- a/influxdb_client/domain/pkg_create.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgCreate(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'pkg_name': 'str', - 'pkg_description': 'str', - 'pkg_version': 'str', - 'resources': 'PkgCreateResources' - } - - attribute_map = { - 'pkg_name': 'pkgName', - 'pkg_description': 'pkgDescription', - 'pkg_version': 'pkgVersion', - 'resources': 'resources' - } - - def __init__(self, pkg_name=None, pkg_description=None, pkg_version=None, resources=None): # noqa: E501,D401,D403 - """PkgCreate - a model defined in OpenAPI.""" # noqa: E501 - self._pkg_name = None - self._pkg_description = None - self._pkg_version = None - self._resources = None - self.discriminator = None - - if pkg_name is not None: - self.pkg_name = pkg_name - if pkg_description is not None: - self.pkg_description = pkg_description - if pkg_version is not None: - self.pkg_version = pkg_version - if resources is not None: - self.resources = resources - - @property - def pkg_name(self): - """Get the pkg_name of this PkgCreate. - - :return: The pkg_name of this PkgCreate. - :rtype: str - """ # noqa: E501 - return self._pkg_name - - @pkg_name.setter - def pkg_name(self, pkg_name): - """Set the pkg_name of this PkgCreate. - - :param pkg_name: The pkg_name of this PkgCreate. - :type: str - """ # noqa: E501 - self._pkg_name = pkg_name - - @property - def pkg_description(self): - """Get the pkg_description of this PkgCreate. - - :return: The pkg_description of this PkgCreate. - :rtype: str - """ # noqa: E501 - return self._pkg_description - - @pkg_description.setter - def pkg_description(self, pkg_description): - """Set the pkg_description of this PkgCreate. - - :param pkg_description: The pkg_description of this PkgCreate. - :type: str - """ # noqa: E501 - self._pkg_description = pkg_description - - @property - def pkg_version(self): - """Get the pkg_version of this PkgCreate. - - :return: The pkg_version of this PkgCreate. - :rtype: str - """ # noqa: E501 - return self._pkg_version - - @pkg_version.setter - def pkg_version(self, pkg_version): - """Set the pkg_version of this PkgCreate. - - :param pkg_version: The pkg_version of this PkgCreate. - :type: str - """ # noqa: E501 - self._pkg_version = pkg_version - - @property - def resources(self): - """Get the resources of this PkgCreate. - - :return: The resources of this PkgCreate. - :rtype: PkgCreateResources - """ # noqa: E501 - return self._resources - - @resources.setter - def resources(self, resources): - """Set the resources of this PkgCreate. - - :param resources: The resources of this PkgCreate. - :type: PkgCreateResources - """ # noqa: E501 - self._resources = resources - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgCreate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_create_resources.py b/influxdb_client/domain/pkg_create_resources.py deleted file mode 100644 index 25dcb54a..00000000 --- a/influxdb_client/domain/pkg_create_resources.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgCreateResources(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'id': 'str', - 'kind': 'str', - 'name': 'str' - } - - attribute_map = { - 'id': 'id', - 'kind': 'kind', - 'name': 'name' - } - - def __init__(self, id=None, kind=None, name=None): # noqa: E501,D401,D403 - """PkgCreateResources - a model defined in OpenAPI.""" # noqa: E501 - self._id = None - self._kind = None - self._name = None - self.discriminator = None - - self.id = id - self.kind = kind - if name is not None: - self.name = name - - @property - def id(self): - """Get the id of this PkgCreateResources. - - :return: The id of this PkgCreateResources. - :rtype: str - """ # noqa: E501 - return self._id - - @id.setter - def id(self, id): - """Set the id of this PkgCreateResources. - - :param id: The id of this PkgCreateResources. - :type: str - """ # noqa: E501 - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._id = id - - @property - def kind(self): - """Get the kind of this PkgCreateResources. - - :return: The kind of this PkgCreateResources. - :rtype: str - """ # noqa: E501 - return self._kind - - @kind.setter - def kind(self, kind): - """Set the kind of this PkgCreateResources. - - :param kind: The kind of this PkgCreateResources. - :type: str - """ # noqa: E501 - if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 - self._kind = kind - - @property - def name(self): - """Get the name of this PkgCreateResources. - - :return: The name of this PkgCreateResources. - :rtype: str - """ # noqa: E501 - return self._name - - @name.setter - def name(self, name): - """Set the name of this PkgCreateResources. - - :param name: The name of this PkgCreateResources. - :type: str - """ # noqa: E501 - self._name = name - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgCreateResources): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_meta.py b/influxdb_client/domain/pkg_meta.py deleted file mode 100644 index 675bf84c..00000000 --- a/influxdb_client/domain/pkg_meta.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgMeta(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'description': 'str', - 'pkg_name': 'str', - 'pkg_version': 'str' - } - - attribute_map = { - 'description': 'description', - 'pkg_name': 'pkgName', - 'pkg_version': 'pkgVersion' - } - - def __init__(self, description=None, pkg_name=None, pkg_version=None): # noqa: E501,D401,D403 - """PkgMeta - a model defined in OpenAPI.""" # noqa: E501 - self._description = None - self._pkg_name = None - self._pkg_version = None - self.discriminator = None - - if description is not None: - self.description = description - if pkg_name is not None: - self.pkg_name = pkg_name - if pkg_version is not None: - self.pkg_version = pkg_version - - @property - def description(self): - """Get the description of this PkgMeta. - - :return: The description of this PkgMeta. - :rtype: str - """ # noqa: E501 - return self._description - - @description.setter - def description(self, description): - """Set the description of this PkgMeta. - - :param description: The description of this PkgMeta. - :type: str - """ # noqa: E501 - self._description = description - - @property - def pkg_name(self): - """Get the pkg_name of this PkgMeta. - - :return: The pkg_name of this PkgMeta. - :rtype: str - """ # noqa: E501 - return self._pkg_name - - @pkg_name.setter - def pkg_name(self, pkg_name): - """Set the pkg_name of this PkgMeta. - - :param pkg_name: The pkg_name of this PkgMeta. - :type: str - """ # noqa: E501 - self._pkg_name = pkg_name - - @property - def pkg_version(self): - """Get the pkg_version of this PkgMeta. - - :return: The pkg_version of this PkgMeta. - :rtype: str - """ # noqa: E501 - return self._pkg_version - - @pkg_version.setter - def pkg_version(self, pkg_version): - """Set the pkg_version of this PkgMeta. - - :param pkg_version: The pkg_version of this PkgMeta. - :type: str - """ # noqa: E501 - self._pkg_version = pkg_version - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgMeta): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_spec.py b/influxdb_client/domain/pkg_spec.py deleted file mode 100644 index 8006f87e..00000000 --- a/influxdb_client/domain/pkg_spec.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSpec(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'resources': 'list[object]' - } - - attribute_map = { - 'resources': 'resources' - } - - def __init__(self, resources=None): # noqa: E501,D401,D403 - """PkgSpec - a model defined in OpenAPI.""" # noqa: E501 - self._resources = None - self.discriminator = None - - if resources is not None: - self.resources = resources - - @property - def resources(self): - """Get the resources of this PkgSpec. - - :return: The resources of this PkgSpec. - :rtype: list[object] - """ # noqa: E501 - return self._resources - - @resources.setter - def resources(self, resources): - """Set the resources of this PkgSpec. - - :param resources: The resources of this PkgSpec. - :type: list[object] - """ # noqa: E501 - self._resources = resources - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary.py b/influxdb_client/domain/pkg_summary.py deleted file mode 100644 index 04da042e..00000000 --- a/influxdb_client/domain/pkg_summary.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummary(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'summary': 'PkgSummarySummary', - 'diff': 'PkgSummaryDiff', - 'errors': 'list[PkgSummaryErrors]' - } - - attribute_map = { - 'summary': 'summary', - 'diff': 'diff', - 'errors': 'errors' - } - - def __init__(self, summary=None, diff=None, errors=None): # noqa: E501,D401,D403 - """PkgSummary - a model defined in OpenAPI.""" # noqa: E501 - self._summary = None - self._diff = None - self._errors = None - self.discriminator = None - - if summary is not None: - self.summary = summary - if diff is not None: - self.diff = diff - if errors is not None: - self.errors = errors - - @property - def summary(self): - """Get the summary of this PkgSummary. - - :return: The summary of this PkgSummary. - :rtype: PkgSummarySummary - """ # noqa: E501 - return self._summary - - @summary.setter - def summary(self, summary): - """Set the summary of this PkgSummary. - - :param summary: The summary of this PkgSummary. - :type: PkgSummarySummary - """ # noqa: E501 - self._summary = summary - - @property - def diff(self): - """Get the diff of this PkgSummary. - - :return: The diff of this PkgSummary. - :rtype: PkgSummaryDiff - """ # noqa: E501 - return self._diff - - @diff.setter - def diff(self, diff): - """Set the diff of this PkgSummary. - - :param diff: The diff of this PkgSummary. - :type: PkgSummaryDiff - """ # noqa: E501 - self._diff = diff - - @property - def errors(self): - """Get the errors of this PkgSummary. - - :return: The errors of this PkgSummary. - :rtype: list[PkgSummaryErrors] - """ # noqa: E501 - return self._errors - - @errors.setter - def errors(self, errors): - """Set the errors of this PkgSummary. - - :param errors: The errors of this PkgSummary. - :type: list[PkgSummaryErrors] - """ # noqa: E501 - self._errors = errors - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummary): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_diff.py b/influxdb_client/domain/pkg_summary_diff.py deleted file mode 100644 index f8c1a4d5..00000000 --- a/influxdb_client/domain/pkg_summary_diff.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryDiff(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'buckets': 'list[PkgSummaryDiffBuckets]', - 'dashboards': 'list[PkgSummaryDiffDashboards]', - 'labels': 'list[PkgSummaryDiffLabels]', - 'label_mappings': 'list[PkgSummaryDiffLabelMappings]', - 'variables': 'list[PkgSummaryDiffVariables]' - } - - attribute_map = { - 'buckets': 'buckets', - 'dashboards': 'dashboards', - 'labels': 'labels', - 'label_mappings': 'labelMappings', - 'variables': 'variables' - } - - def __init__(self, buckets=None, dashboards=None, labels=None, label_mappings=None, variables=None): # noqa: E501,D401,D403 - """PkgSummaryDiff - a model defined in OpenAPI.""" # noqa: E501 - self._buckets = None - self._dashboards = None - self._labels = None - self._label_mappings = None - self._variables = None - self.discriminator = None - - if buckets is not None: - self.buckets = buckets - if dashboards is not None: - self.dashboards = dashboards - if labels is not None: - self.labels = labels - if label_mappings is not None: - self.label_mappings = label_mappings - if variables is not None: - self.variables = variables - - @property - def buckets(self): - """Get the buckets of this PkgSummaryDiff. - - :return: The buckets of this PkgSummaryDiff. - :rtype: list[PkgSummaryDiffBuckets] - """ # noqa: E501 - return self._buckets - - @buckets.setter - def buckets(self, buckets): - """Set the buckets of this PkgSummaryDiff. - - :param buckets: The buckets of this PkgSummaryDiff. - :type: list[PkgSummaryDiffBuckets] - """ # noqa: E501 - self._buckets = buckets - - @property - def dashboards(self): - """Get the dashboards of this PkgSummaryDiff. - - :return: The dashboards of this PkgSummaryDiff. - :rtype: list[PkgSummaryDiffDashboards] - """ # noqa: E501 - return self._dashboards - - @dashboards.setter - def dashboards(self, dashboards): - """Set the dashboards of this PkgSummaryDiff. - - :param dashboards: The dashboards of this PkgSummaryDiff. - :type: list[PkgSummaryDiffDashboards] - """ # noqa: E501 - self._dashboards = dashboards - - @property - def labels(self): - """Get the labels of this PkgSummaryDiff. - - :return: The labels of this PkgSummaryDiff. - :rtype: list[PkgSummaryDiffLabels] - """ # noqa: E501 - return self._labels - - @labels.setter - def labels(self, labels): - """Set the labels of this PkgSummaryDiff. - - :param labels: The labels of this PkgSummaryDiff. - :type: list[PkgSummaryDiffLabels] - """ # noqa: E501 - self._labels = labels - - @property - def label_mappings(self): - """Get the label_mappings of this PkgSummaryDiff. - - :return: The label_mappings of this PkgSummaryDiff. - :rtype: list[PkgSummaryDiffLabelMappings] - """ # noqa: E501 - return self._label_mappings - - @label_mappings.setter - def label_mappings(self, label_mappings): - """Set the label_mappings of this PkgSummaryDiff. - - :param label_mappings: The label_mappings of this PkgSummaryDiff. - :type: list[PkgSummaryDiffLabelMappings] - """ # noqa: E501 - self._label_mappings = label_mappings - - @property - def variables(self): - """Get the variables of this PkgSummaryDiff. - - :return: The variables of this PkgSummaryDiff. - :rtype: list[PkgSummaryDiffVariables] - """ # noqa: E501 - return self._variables - - @variables.setter - def variables(self, variables): - """Set the variables of this PkgSummaryDiff. - - :param variables: The variables of this PkgSummaryDiff. - :type: list[PkgSummaryDiffVariables] - """ # noqa: E501 - self._variables = variables - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryDiff): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_diff_buckets.py b/influxdb_client/domain/pkg_summary_diff_buckets.py deleted file mode 100644 index 20c5ddf8..00000000 --- a/influxdb_client/domain/pkg_summary_diff_buckets.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryDiffBuckets(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'id': 'str', - 'name': 'str', - 'old_description': 'str', - 'new_description': 'str', - 'old_rp': 'str', - 'new_rp': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'old_description': 'oldDescription', - 'new_description': 'newDescription', - 'old_rp': 'oldRP', - 'new_rp': 'newRP' - } - - def __init__(self, id=None, name=None, old_description=None, new_description=None, old_rp=None, new_rp=None): # noqa: E501,D401,D403 - """PkgSummaryDiffBuckets - a model defined in OpenAPI.""" # noqa: E501 - self._id = None - self._name = None - self._old_description = None - self._new_description = None - self._old_rp = None - self._new_rp = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - if old_description is not None: - self.old_description = old_description - if new_description is not None: - self.new_description = new_description - if old_rp is not None: - self.old_rp = old_rp - if new_rp is not None: - self.new_rp = new_rp - - @property - def id(self): - """Get the id of this PkgSummaryDiffBuckets. - - :return: The id of this PkgSummaryDiffBuckets. - :rtype: str - """ # noqa: E501 - return self._id - - @id.setter - def id(self, id): - """Set the id of this PkgSummaryDiffBuckets. - - :param id: The id of this PkgSummaryDiffBuckets. - :type: str - """ # noqa: E501 - self._id = id - - @property - def name(self): - """Get the name of this PkgSummaryDiffBuckets. - - :return: The name of this PkgSummaryDiffBuckets. - :rtype: str - """ # noqa: E501 - return self._name - - @name.setter - def name(self, name): - """Set the name of this PkgSummaryDiffBuckets. - - :param name: The name of this PkgSummaryDiffBuckets. - :type: str - """ # noqa: E501 - self._name = name - - @property - def old_description(self): - """Get the old_description of this PkgSummaryDiffBuckets. - - :return: The old_description of this PkgSummaryDiffBuckets. - :rtype: str - """ # noqa: E501 - return self._old_description - - @old_description.setter - def old_description(self, old_description): - """Set the old_description of this PkgSummaryDiffBuckets. - - :param old_description: The old_description of this PkgSummaryDiffBuckets. - :type: str - """ # noqa: E501 - self._old_description = old_description - - @property - def new_description(self): - """Get the new_description of this PkgSummaryDiffBuckets. - - :return: The new_description of this PkgSummaryDiffBuckets. - :rtype: str - """ # noqa: E501 - return self._new_description - - @new_description.setter - def new_description(self, new_description): - """Set the new_description of this PkgSummaryDiffBuckets. - - :param new_description: The new_description of this PkgSummaryDiffBuckets. - :type: str - """ # noqa: E501 - self._new_description = new_description - - @property - def old_rp(self): - """Get the old_rp of this PkgSummaryDiffBuckets. - - :return: The old_rp of this PkgSummaryDiffBuckets. - :rtype: str - """ # noqa: E501 - return self._old_rp - - @old_rp.setter - def old_rp(self, old_rp): - """Set the old_rp of this PkgSummaryDiffBuckets. - - :param old_rp: The old_rp of this PkgSummaryDiffBuckets. - :type: str - """ # noqa: E501 - self._old_rp = old_rp - - @property - def new_rp(self): - """Get the new_rp of this PkgSummaryDiffBuckets. - - :return: The new_rp of this PkgSummaryDiffBuckets. - :rtype: str - """ # noqa: E501 - return self._new_rp - - @new_rp.setter - def new_rp(self, new_rp): - """Set the new_rp of this PkgSummaryDiffBuckets. - - :param new_rp: The new_rp of this PkgSummaryDiffBuckets. - :type: str - """ # noqa: E501 - self._new_rp = new_rp - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryDiffBuckets): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_diff_dashboards.py b/influxdb_client/domain/pkg_summary_diff_dashboards.py deleted file mode 100644 index e1f093fb..00000000 --- a/influxdb_client/domain/pkg_summary_diff_dashboards.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryDiffDashboards(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'name': 'str', - 'description': 'str', - 'charts': 'list[PkgChart]' - } - - attribute_map = { - 'name': 'name', - 'description': 'description', - 'charts': 'charts' - } - - def __init__(self, name=None, description=None, charts=None): # noqa: E501,D401,D403 - """PkgSummaryDiffDashboards - a model defined in OpenAPI.""" # noqa: E501 - self._name = None - self._description = None - self._charts = None - self.discriminator = None - - if name is not None: - self.name = name - if description is not None: - self.description = description - if charts is not None: - self.charts = charts - - @property - def name(self): - """Get the name of this PkgSummaryDiffDashboards. - - :return: The name of this PkgSummaryDiffDashboards. - :rtype: str - """ # noqa: E501 - return self._name - - @name.setter - def name(self, name): - """Set the name of this PkgSummaryDiffDashboards. - - :param name: The name of this PkgSummaryDiffDashboards. - :type: str - """ # noqa: E501 - self._name = name - - @property - def description(self): - """Get the description of this PkgSummaryDiffDashboards. - - :return: The description of this PkgSummaryDiffDashboards. - :rtype: str - """ # noqa: E501 - return self._description - - @description.setter - def description(self, description): - """Set the description of this PkgSummaryDiffDashboards. - - :param description: The description of this PkgSummaryDiffDashboards. - :type: str - """ # noqa: E501 - self._description = description - - @property - def charts(self): - """Get the charts of this PkgSummaryDiffDashboards. - - :return: The charts of this PkgSummaryDiffDashboards. - :rtype: list[PkgChart] - """ # noqa: E501 - return self._charts - - @charts.setter - def charts(self, charts): - """Set the charts of this PkgSummaryDiffDashboards. - - :param charts: The charts of this PkgSummaryDiffDashboards. - :type: list[PkgChart] - """ # noqa: E501 - self._charts = charts - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryDiffDashboards): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_diff_label_mappings.py b/influxdb_client/domain/pkg_summary_diff_label_mappings.py deleted file mode 100644 index 85c5b53a..00000000 --- a/influxdb_client/domain/pkg_summary_diff_label_mappings.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryDiffLabelMappings(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'is_new': 'bool', - 'resource_type': 'str', - 'resource_id': 'str', - 'resource_name': 'str', - 'label_id': 'str', - 'label_name': 'str' - } - - attribute_map = { - 'is_new': 'isNew', - 'resource_type': 'resourceType', - 'resource_id': 'resourceID', - 'resource_name': 'resourceName', - 'label_id': 'labelID', - 'label_name': 'labelName' - } - - def __init__(self, is_new=None, resource_type=None, resource_id=None, resource_name=None, label_id=None, label_name=None): # noqa: E501,D401,D403 - """PkgSummaryDiffLabelMappings - a model defined in OpenAPI.""" # noqa: E501 - self._is_new = None - self._resource_type = None - self._resource_id = None - self._resource_name = None - self._label_id = None - self._label_name = None - self.discriminator = None - - if is_new is not None: - self.is_new = is_new - if resource_type is not None: - self.resource_type = resource_type - if resource_id is not None: - self.resource_id = resource_id - if resource_name is not None: - self.resource_name = resource_name - if label_id is not None: - self.label_id = label_id - if label_name is not None: - self.label_name = label_name - - @property - def is_new(self): - """Get the is_new of this PkgSummaryDiffLabelMappings. - - :return: The is_new of this PkgSummaryDiffLabelMappings. - :rtype: bool - """ # noqa: E501 - return self._is_new - - @is_new.setter - def is_new(self, is_new): - """Set the is_new of this PkgSummaryDiffLabelMappings. - - :param is_new: The is_new of this PkgSummaryDiffLabelMappings. - :type: bool - """ # noqa: E501 - self._is_new = is_new - - @property - def resource_type(self): - """Get the resource_type of this PkgSummaryDiffLabelMappings. - - :return: The resource_type of this PkgSummaryDiffLabelMappings. - :rtype: str - """ # noqa: E501 - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Set the resource_type of this PkgSummaryDiffLabelMappings. - - :param resource_type: The resource_type of this PkgSummaryDiffLabelMappings. - :type: str - """ # noqa: E501 - self._resource_type = resource_type - - @property - def resource_id(self): - """Get the resource_id of this PkgSummaryDiffLabelMappings. - - :return: The resource_id of this PkgSummaryDiffLabelMappings. - :rtype: str - """ # noqa: E501 - return self._resource_id - - @resource_id.setter - def resource_id(self, resource_id): - """Set the resource_id of this PkgSummaryDiffLabelMappings. - - :param resource_id: The resource_id of this PkgSummaryDiffLabelMappings. - :type: str - """ # noqa: E501 - self._resource_id = resource_id - - @property - def resource_name(self): - """Get the resource_name of this PkgSummaryDiffLabelMappings. - - :return: The resource_name of this PkgSummaryDiffLabelMappings. - :rtype: str - """ # noqa: E501 - return self._resource_name - - @resource_name.setter - def resource_name(self, resource_name): - """Set the resource_name of this PkgSummaryDiffLabelMappings. - - :param resource_name: The resource_name of this PkgSummaryDiffLabelMappings. - :type: str - """ # noqa: E501 - self._resource_name = resource_name - - @property - def label_id(self): - """Get the label_id of this PkgSummaryDiffLabelMappings. - - :return: The label_id of this PkgSummaryDiffLabelMappings. - :rtype: str - """ # noqa: E501 - return self._label_id - - @label_id.setter - def label_id(self, label_id): - """Set the label_id of this PkgSummaryDiffLabelMappings. - - :param label_id: The label_id of this PkgSummaryDiffLabelMappings. - :type: str - """ # noqa: E501 - self._label_id = label_id - - @property - def label_name(self): - """Get the label_name of this PkgSummaryDiffLabelMappings. - - :return: The label_name of this PkgSummaryDiffLabelMappings. - :rtype: str - """ # noqa: E501 - return self._label_name - - @label_name.setter - def label_name(self, label_name): - """Set the label_name of this PkgSummaryDiffLabelMappings. - - :param label_name: The label_name of this PkgSummaryDiffLabelMappings. - :type: str - """ # noqa: E501 - self._label_name = label_name - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryDiffLabelMappings): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_diff_labels.py b/influxdb_client/domain/pkg_summary_diff_labels.py deleted file mode 100644 index 2c8e055e..00000000 --- a/influxdb_client/domain/pkg_summary_diff_labels.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryDiffLabels(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'id': 'str', - 'name': 'str', - 'old_description': 'str', - 'new_description': 'str', - 'old_color': 'str', - 'new_color': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'old_description': 'oldDescription', - 'new_description': 'newDescription', - 'old_color': 'oldColor', - 'new_color': 'newColor' - } - - def __init__(self, id=None, name=None, old_description=None, new_description=None, old_color=None, new_color=None): # noqa: E501,D401,D403 - """PkgSummaryDiffLabels - a model defined in OpenAPI.""" # noqa: E501 - self._id = None - self._name = None - self._old_description = None - self._new_description = None - self._old_color = None - self._new_color = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - if old_description is not None: - self.old_description = old_description - if new_description is not None: - self.new_description = new_description - if old_color is not None: - self.old_color = old_color - if new_color is not None: - self.new_color = new_color - - @property - def id(self): - """Get the id of this PkgSummaryDiffLabels. - - :return: The id of this PkgSummaryDiffLabels. - :rtype: str - """ # noqa: E501 - return self._id - - @id.setter - def id(self, id): - """Set the id of this PkgSummaryDiffLabels. - - :param id: The id of this PkgSummaryDiffLabels. - :type: str - """ # noqa: E501 - self._id = id - - @property - def name(self): - """Get the name of this PkgSummaryDiffLabels. - - :return: The name of this PkgSummaryDiffLabels. - :rtype: str - """ # noqa: E501 - return self._name - - @name.setter - def name(self, name): - """Set the name of this PkgSummaryDiffLabels. - - :param name: The name of this PkgSummaryDiffLabels. - :type: str - """ # noqa: E501 - self._name = name - - @property - def old_description(self): - """Get the old_description of this PkgSummaryDiffLabels. - - :return: The old_description of this PkgSummaryDiffLabels. - :rtype: str - """ # noqa: E501 - return self._old_description - - @old_description.setter - def old_description(self, old_description): - """Set the old_description of this PkgSummaryDiffLabels. - - :param old_description: The old_description of this PkgSummaryDiffLabels. - :type: str - """ # noqa: E501 - self._old_description = old_description - - @property - def new_description(self): - """Get the new_description of this PkgSummaryDiffLabels. - - :return: The new_description of this PkgSummaryDiffLabels. - :rtype: str - """ # noqa: E501 - return self._new_description - - @new_description.setter - def new_description(self, new_description): - """Set the new_description of this PkgSummaryDiffLabels. - - :param new_description: The new_description of this PkgSummaryDiffLabels. - :type: str - """ # noqa: E501 - self._new_description = new_description - - @property - def old_color(self): - """Get the old_color of this PkgSummaryDiffLabels. - - :return: The old_color of this PkgSummaryDiffLabels. - :rtype: str - """ # noqa: E501 - return self._old_color - - @old_color.setter - def old_color(self, old_color): - """Set the old_color of this PkgSummaryDiffLabels. - - :param old_color: The old_color of this PkgSummaryDiffLabels. - :type: str - """ # noqa: E501 - self._old_color = old_color - - @property - def new_color(self): - """Get the new_color of this PkgSummaryDiffLabels. - - :return: The new_color of this PkgSummaryDiffLabels. - :rtype: str - """ # noqa: E501 - return self._new_color - - @new_color.setter - def new_color(self, new_color): - """Set the new_color of this PkgSummaryDiffLabels. - - :param new_color: The new_color of this PkgSummaryDiffLabels. - :type: str - """ # noqa: E501 - self._new_color = new_color - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryDiffLabels): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_diff_variables.py b/influxdb_client/domain/pkg_summary_diff_variables.py deleted file mode 100644 index 87d501a5..00000000 --- a/influxdb_client/domain/pkg_summary_diff_variables.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryDiffVariables(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'id': 'str', - 'name': 'str', - 'old_description': 'str', - 'new_description': 'str', - 'old_args': 'VariableProperties', - 'new_args': 'VariableProperties' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'old_description': 'oldDescription', - 'new_description': 'newDescription', - 'old_args': 'oldArgs', - 'new_args': 'newArgs' - } - - def __init__(self, id=None, name=None, old_description=None, new_description=None, old_args=None, new_args=None): # noqa: E501,D401,D403 - """PkgSummaryDiffVariables - a model defined in OpenAPI.""" # noqa: E501 - self._id = None - self._name = None - self._old_description = None - self._new_description = None - self._old_args = None - self._new_args = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - if old_description is not None: - self.old_description = old_description - if new_description is not None: - self.new_description = new_description - if old_args is not None: - self.old_args = old_args - if new_args is not None: - self.new_args = new_args - - @property - def id(self): - """Get the id of this PkgSummaryDiffVariables. - - :return: The id of this PkgSummaryDiffVariables. - :rtype: str - """ # noqa: E501 - return self._id - - @id.setter - def id(self, id): - """Set the id of this PkgSummaryDiffVariables. - - :param id: The id of this PkgSummaryDiffVariables. - :type: str - """ # noqa: E501 - self._id = id - - @property - def name(self): - """Get the name of this PkgSummaryDiffVariables. - - :return: The name of this PkgSummaryDiffVariables. - :rtype: str - """ # noqa: E501 - return self._name - - @name.setter - def name(self, name): - """Set the name of this PkgSummaryDiffVariables. - - :param name: The name of this PkgSummaryDiffVariables. - :type: str - """ # noqa: E501 - self._name = name - - @property - def old_description(self): - """Get the old_description of this PkgSummaryDiffVariables. - - :return: The old_description of this PkgSummaryDiffVariables. - :rtype: str - """ # noqa: E501 - return self._old_description - - @old_description.setter - def old_description(self, old_description): - """Set the old_description of this PkgSummaryDiffVariables. - - :param old_description: The old_description of this PkgSummaryDiffVariables. - :type: str - """ # noqa: E501 - self._old_description = old_description - - @property - def new_description(self): - """Get the new_description of this PkgSummaryDiffVariables. - - :return: The new_description of this PkgSummaryDiffVariables. - :rtype: str - """ # noqa: E501 - return self._new_description - - @new_description.setter - def new_description(self, new_description): - """Set the new_description of this PkgSummaryDiffVariables. - - :param new_description: The new_description of this PkgSummaryDiffVariables. - :type: str - """ # noqa: E501 - self._new_description = new_description - - @property - def old_args(self): - """Get the old_args of this PkgSummaryDiffVariables. - - :return: The old_args of this PkgSummaryDiffVariables. - :rtype: VariableProperties - """ # noqa: E501 - return self._old_args - - @old_args.setter - def old_args(self, old_args): - """Set the old_args of this PkgSummaryDiffVariables. - - :param old_args: The old_args of this PkgSummaryDiffVariables. - :type: VariableProperties - """ # noqa: E501 - self._old_args = old_args - - @property - def new_args(self): - """Get the new_args of this PkgSummaryDiffVariables. - - :return: The new_args of this PkgSummaryDiffVariables. - :rtype: VariableProperties - """ # noqa: E501 - return self._new_args - - @new_args.setter - def new_args(self, new_args): - """Set the new_args of this PkgSummaryDiffVariables. - - :param new_args: The new_args of this PkgSummaryDiffVariables. - :type: VariableProperties - """ # noqa: E501 - self._new_args = new_args - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryDiffVariables): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_errors.py b/influxdb_client/domain/pkg_summary_errors.py deleted file mode 100644 index 0477cc13..00000000 --- a/influxdb_client/domain/pkg_summary_errors.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummaryErrors(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'kind': 'str', - 'reason': 'str', - 'fields': 'list[str]', - 'indexes': 'list[int]' - } - - attribute_map = { - 'kind': 'kind', - 'reason': 'reason', - 'fields': 'fields', - 'indexes': 'indexes' - } - - def __init__(self, kind=None, reason=None, fields=None, indexes=None): # noqa: E501,D401,D403 - """PkgSummaryErrors - a model defined in OpenAPI.""" # noqa: E501 - self._kind = None - self._reason = None - self._fields = None - self._indexes = None - self.discriminator = None - - if kind is not None: - self.kind = kind - if reason is not None: - self.reason = reason - if fields is not None: - self.fields = fields - if indexes is not None: - self.indexes = indexes - - @property - def kind(self): - """Get the kind of this PkgSummaryErrors. - - :return: The kind of this PkgSummaryErrors. - :rtype: str - """ # noqa: E501 - return self._kind - - @kind.setter - def kind(self, kind): - """Set the kind of this PkgSummaryErrors. - - :param kind: The kind of this PkgSummaryErrors. - :type: str - """ # noqa: E501 - self._kind = kind - - @property - def reason(self): - """Get the reason of this PkgSummaryErrors. - - :return: The reason of this PkgSummaryErrors. - :rtype: str - """ # noqa: E501 - return self._reason - - @reason.setter - def reason(self, reason): - """Set the reason of this PkgSummaryErrors. - - :param reason: The reason of this PkgSummaryErrors. - :type: str - """ # noqa: E501 - self._reason = reason - - @property - def fields(self): - """Get the fields of this PkgSummaryErrors. - - :return: The fields of this PkgSummaryErrors. - :rtype: list[str] - """ # noqa: E501 - return self._fields - - @fields.setter - def fields(self, fields): - """Set the fields of this PkgSummaryErrors. - - :param fields: The fields of this PkgSummaryErrors. - :type: list[str] - """ # noqa: E501 - self._fields = fields - - @property - def indexes(self): - """Get the indexes of this PkgSummaryErrors. - - :return: The indexes of this PkgSummaryErrors. - :rtype: list[int] - """ # noqa: E501 - return self._indexes - - @indexes.setter - def indexes(self, indexes): - """Set the indexes of this PkgSummaryErrors. - - :param indexes: The indexes of this PkgSummaryErrors. - :type: list[int] - """ # noqa: E501 - self._indexes = indexes - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummaryErrors): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_summary.py b/influxdb_client/domain/pkg_summary_summary.py deleted file mode 100644 index aea16f28..00000000 --- a/influxdb_client/domain/pkg_summary_summary.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummarySummary(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'buckets': 'list[Bucket]', - 'labels': 'list[Label]', - 'dashboards': 'list[PkgSummarySummaryDashboards]', - 'label_mappings': 'list[PkgSummarySummaryLabelMappings]', - 'variables': 'list[Variable]' - } - - attribute_map = { - 'buckets': 'buckets', - 'labels': 'labels', - 'dashboards': 'dashboards', - 'label_mappings': 'labelMappings', - 'variables': 'variables' - } - - def __init__(self, buckets=None, labels=None, dashboards=None, label_mappings=None, variables=None): # noqa: E501,D401,D403 - """PkgSummarySummary - a model defined in OpenAPI.""" # noqa: E501 - self._buckets = None - self._labels = None - self._dashboards = None - self._label_mappings = None - self._variables = None - self.discriminator = None - - if buckets is not None: - self.buckets = buckets - if labels is not None: - self.labels = labels - if dashboards is not None: - self.dashboards = dashboards - if label_mappings is not None: - self.label_mappings = label_mappings - if variables is not None: - self.variables = variables - - @property - def buckets(self): - """Get the buckets of this PkgSummarySummary. - - :return: The buckets of this PkgSummarySummary. - :rtype: list[Bucket] - """ # noqa: E501 - return self._buckets - - @buckets.setter - def buckets(self, buckets): - """Set the buckets of this PkgSummarySummary. - - :param buckets: The buckets of this PkgSummarySummary. - :type: list[Bucket] - """ # noqa: E501 - self._buckets = buckets - - @property - def labels(self): - """Get the labels of this PkgSummarySummary. - - :return: The labels of this PkgSummarySummary. - :rtype: list[Label] - """ # noqa: E501 - return self._labels - - @labels.setter - def labels(self, labels): - """Set the labels of this PkgSummarySummary. - - :param labels: The labels of this PkgSummarySummary. - :type: list[Label] - """ # noqa: E501 - self._labels = labels - - @property - def dashboards(self): - """Get the dashboards of this PkgSummarySummary. - - :return: The dashboards of this PkgSummarySummary. - :rtype: list[PkgSummarySummaryDashboards] - """ # noqa: E501 - return self._dashboards - - @dashboards.setter - def dashboards(self, dashboards): - """Set the dashboards of this PkgSummarySummary. - - :param dashboards: The dashboards of this PkgSummarySummary. - :type: list[PkgSummarySummaryDashboards] - """ # noqa: E501 - self._dashboards = dashboards - - @property - def label_mappings(self): - """Get the label_mappings of this PkgSummarySummary. - - :return: The label_mappings of this PkgSummarySummary. - :rtype: list[PkgSummarySummaryLabelMappings] - """ # noqa: E501 - return self._label_mappings - - @label_mappings.setter - def label_mappings(self, label_mappings): - """Set the label_mappings of this PkgSummarySummary. - - :param label_mappings: The label_mappings of this PkgSummarySummary. - :type: list[PkgSummarySummaryLabelMappings] - """ # noqa: E501 - self._label_mappings = label_mappings - - @property - def variables(self): - """Get the variables of this PkgSummarySummary. - - :return: The variables of this PkgSummarySummary. - :rtype: list[Variable] - """ # noqa: E501 - return self._variables - - @variables.setter - def variables(self, variables): - """Set the variables of this PkgSummarySummary. - - :param variables: The variables of this PkgSummarySummary. - :type: list[Variable] - """ # noqa: E501 - self._variables = variables - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummarySummary): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_summary_dashboards.py b/influxdb_client/domain/pkg_summary_summary_dashboards.py deleted file mode 100644 index ce5e06ce..00000000 --- a/influxdb_client/domain/pkg_summary_summary_dashboards.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummarySummaryDashboards(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'id': 'str', - 'org_id': 'str', - 'name': 'str', - 'description': 'str', - 'label_associations': 'list[Label]', - 'charts': 'list[PkgChart]' - } - - attribute_map = { - 'id': 'id', - 'org_id': 'orgID', - 'name': 'name', - 'description': 'description', - 'label_associations': 'labelAssociations', - 'charts': 'charts' - } - - def __init__(self, id=None, org_id=None, name=None, description=None, label_associations=None, charts=None): # noqa: E501,D401,D403 - """PkgSummarySummaryDashboards - a model defined in OpenAPI.""" # noqa: E501 - self._id = None - self._org_id = None - self._name = None - self._description = None - self._label_associations = None - self._charts = None - self.discriminator = None - - if id is not None: - self.id = id - if org_id is not None: - self.org_id = org_id - if name is not None: - self.name = name - if description is not None: - self.description = description - if label_associations is not None: - self.label_associations = label_associations - if charts is not None: - self.charts = charts - - @property - def id(self): - """Get the id of this PkgSummarySummaryDashboards. - - :return: The id of this PkgSummarySummaryDashboards. - :rtype: str - """ # noqa: E501 - return self._id - - @id.setter - def id(self, id): - """Set the id of this PkgSummarySummaryDashboards. - - :param id: The id of this PkgSummarySummaryDashboards. - :type: str - """ # noqa: E501 - self._id = id - - @property - def org_id(self): - """Get the org_id of this PkgSummarySummaryDashboards. - - :return: The org_id of this PkgSummarySummaryDashboards. - :rtype: str - """ # noqa: E501 - return self._org_id - - @org_id.setter - def org_id(self, org_id): - """Set the org_id of this PkgSummarySummaryDashboards. - - :param org_id: The org_id of this PkgSummarySummaryDashboards. - :type: str - """ # noqa: E501 - self._org_id = org_id - - @property - def name(self): - """Get the name of this PkgSummarySummaryDashboards. - - :return: The name of this PkgSummarySummaryDashboards. - :rtype: str - """ # noqa: E501 - return self._name - - @name.setter - def name(self, name): - """Set the name of this PkgSummarySummaryDashboards. - - :param name: The name of this PkgSummarySummaryDashboards. - :type: str - """ # noqa: E501 - self._name = name - - @property - def description(self): - """Get the description of this PkgSummarySummaryDashboards. - - :return: The description of this PkgSummarySummaryDashboards. - :rtype: str - """ # noqa: E501 - return self._description - - @description.setter - def description(self, description): - """Set the description of this PkgSummarySummaryDashboards. - - :param description: The description of this PkgSummarySummaryDashboards. - :type: str - """ # noqa: E501 - self._description = description - - @property - def label_associations(self): - """Get the label_associations of this PkgSummarySummaryDashboards. - - :return: The label_associations of this PkgSummarySummaryDashboards. - :rtype: list[Label] - """ # noqa: E501 - return self._label_associations - - @label_associations.setter - def label_associations(self, label_associations): - """Set the label_associations of this PkgSummarySummaryDashboards. - - :param label_associations: The label_associations of this PkgSummarySummaryDashboards. - :type: list[Label] - """ # noqa: E501 - self._label_associations = label_associations - - @property - def charts(self): - """Get the charts of this PkgSummarySummaryDashboards. - - :return: The charts of this PkgSummarySummaryDashboards. - :rtype: list[PkgChart] - """ # noqa: E501 - return self._charts - - @charts.setter - def charts(self, charts): - """Set the charts of this PkgSummarySummaryDashboards. - - :param charts: The charts of this PkgSummarySummaryDashboards. - :type: list[PkgChart] - """ # noqa: E501 - self._charts = charts - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummarySummaryDashboards): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/domain/pkg_summary_summary_label_mappings.py b/influxdb_client/domain/pkg_summary_summary_label_mappings.py deleted file mode 100644 index dc6f5dd4..00000000 --- a/influxdb_client/domain/pkg_summary_summary_label_mappings.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PkgSummarySummaryLabelMappings(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - 'resource_name': 'str', - 'resource_id': 'str', - 'resource_type': 'str', - 'label_name': 'str', - 'label_id': 'str' - } - - attribute_map = { - 'resource_name': 'resourceName', - 'resource_id': 'resourceID', - 'resource_type': 'resourceType', - 'label_name': 'labelName', - 'label_id': 'labelID' - } - - def __init__(self, resource_name=None, resource_id=None, resource_type=None, label_name=None, label_id=None): # noqa: E501,D401,D403 - """PkgSummarySummaryLabelMappings - a model defined in OpenAPI.""" # noqa: E501 - self._resource_name = None - self._resource_id = None - self._resource_type = None - self._label_name = None - self._label_id = None - self.discriminator = None - - if resource_name is not None: - self.resource_name = resource_name - if resource_id is not None: - self.resource_id = resource_id - if resource_type is not None: - self.resource_type = resource_type - if label_name is not None: - self.label_name = label_name - if label_id is not None: - self.label_id = label_id - - @property - def resource_name(self): - """Get the resource_name of this PkgSummarySummaryLabelMappings. - - :return: The resource_name of this PkgSummarySummaryLabelMappings. - :rtype: str - """ # noqa: E501 - return self._resource_name - - @resource_name.setter - def resource_name(self, resource_name): - """Set the resource_name of this PkgSummarySummaryLabelMappings. - - :param resource_name: The resource_name of this PkgSummarySummaryLabelMappings. - :type: str - """ # noqa: E501 - self._resource_name = resource_name - - @property - def resource_id(self): - """Get the resource_id of this PkgSummarySummaryLabelMappings. - - :return: The resource_id of this PkgSummarySummaryLabelMappings. - :rtype: str - """ # noqa: E501 - return self._resource_id - - @resource_id.setter - def resource_id(self, resource_id): - """Set the resource_id of this PkgSummarySummaryLabelMappings. - - :param resource_id: The resource_id of this PkgSummarySummaryLabelMappings. - :type: str - """ # noqa: E501 - self._resource_id = resource_id - - @property - def resource_type(self): - """Get the resource_type of this PkgSummarySummaryLabelMappings. - - :return: The resource_type of this PkgSummarySummaryLabelMappings. - :rtype: str - """ # noqa: E501 - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Set the resource_type of this PkgSummarySummaryLabelMappings. - - :param resource_type: The resource_type of this PkgSummarySummaryLabelMappings. - :type: str - """ # noqa: E501 - self._resource_type = resource_type - - @property - def label_name(self): - """Get the label_name of this PkgSummarySummaryLabelMappings. - - :return: The label_name of this PkgSummarySummaryLabelMappings. - :rtype: str - """ # noqa: E501 - return self._label_name - - @label_name.setter - def label_name(self, label_name): - """Set the label_name of this PkgSummarySummaryLabelMappings. - - :param label_name: The label_name of this PkgSummarySummaryLabelMappings. - :type: str - """ # noqa: E501 - self._label_name = label_name - - @property - def label_id(self): - """Get the label_id of this PkgSummarySummaryLabelMappings. - - :return: The label_id of this PkgSummarySummaryLabelMappings. - :rtype: str - """ # noqa: E501 - return self._label_id - - @label_id.setter - def label_id(self, label_id): - """Set the label_id of this PkgSummarySummaryLabelMappings. - - :param label_id: The label_id of this PkgSummarySummaryLabelMappings. - :type: str - """ # noqa: E501 - self._label_id = label_id - - def to_dict(self): - """Return the model properties as a dict.""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Return the string representation of the model.""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`.""" - return self.to_str() - - def __eq__(self, other): - """Return true if both objects are equal.""" - if not isinstance(other, PkgSummarySummaryLabelMappings): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Return true if both objects are not equal.""" - return not self == other diff --git a/influxdb_client/service/__init__.py b/influxdb_client/service/__init__.py index 9cce6043..1545ae8c 100644 --- a/influxdb_client/service/__init__.py +++ b/influxdb_client/service/__init__.py @@ -20,7 +20,6 @@ from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.health_service import HealthService -from influxdb_client.service.influx_packages_service import InfluxPackagesService from influxdb_client.service.labels_service import LabelsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService diff --git a/influxdb_client/service/buckets_service.py b/influxdb_client/service/buckets_service.py index 259c5c83..dc3cf35b 100644 --- a/influxdb_client/service/buckets_service.py +++ b/influxdb_client/service/buckets_service.py @@ -486,6 +486,7 @@ def get_buckets(self, **kwargs): # noqa: E501,D401,D403 :param str zap_trace_span: OpenTracing span context :param int offset: :param int limit: + :param str after: The last resource ID from which to seek from (but not including). This is to be used instead of `offset`. :param str org: The organization name. :param str org_id: The organization ID. :param str name: Only returns buckets with a specific name. @@ -512,6 +513,7 @@ def get_buckets_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param str zap_trace_span: OpenTracing span context :param int offset: :param int limit: + :param str after: The last resource ID from which to seek from (but not including). This is to be used instead of `offset`. :param str org: The organization name. :param str org_id: The organization ID. :param str name: Only returns buckets with a specific name. @@ -521,7 +523,7 @@ def get_buckets_with_http_info(self, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 local_var_params = locals() - all_params = ['zap_trace_span', 'offset', 'limit', 'org', 'org_id', 'name'] # noqa: E501 + all_params = ['zap_trace_span', 'offset', 'limit', 'after', 'org', 'org_id', 'name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -552,6 +554,8 @@ def get_buckets_with_http_info(self, **kwargs): # noqa: E501,D401,D403 query_params.append(('offset', local_var_params['offset'])) # noqa: E501 if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'after' in local_var_params: + query_params.append(('after', local_var_params['after'])) # noqa: E501 if 'org' in local_var_params: query_params.append(('org', local_var_params['org'])) # noqa: E501 if 'org_id' in local_var_params: diff --git a/influxdb_client/service/influx_packages_service.py b/influxdb_client/service/influx_packages_service.py deleted file mode 100644 index 97f96fa7..00000000 --- a/influxdb_client/service/influx_packages_service.py +++ /dev/null @@ -1,239 +0,0 @@ -# coding: utf-8 - -""" -Influx API Service. - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - -OpenAPI spec version: 0.1.0 -Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from influxdb_client.api_client import ApiClient - - -class InfluxPackagesService(object): - """NOTE: This class is auto generated by OpenAPI Generator. - - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None): # noqa: E501,D401,D403 - """InfluxPackagesService - a operation defined in OpenAPI.""" - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def apply_pkg(self, pkg_apply, **kwargs): # noqa: E501,D401,D403 - """Apply or dry-run an Influx package. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.apply_pkg(pkg_apply, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PkgApply pkg_apply: (required) - :return: PkgSummary - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.apply_pkg_with_http_info(pkg_apply, **kwargs) # noqa: E501 - else: - (data) = self.apply_pkg_with_http_info(pkg_apply, **kwargs) # noqa: E501 - return data - - def apply_pkg_with_http_info(self, pkg_apply, **kwargs): # noqa: E501,D401,D403 - """Apply or dry-run an Influx package. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.apply_pkg_with_http_info(pkg_apply, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PkgApply pkg_apply: (required) - :return: PkgSummary - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['pkg_apply'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method apply_pkg" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'pkg_apply' is set - if ('pkg_apply' not in local_var_params or - local_var_params['pkg_apply'] is None): - raise ValueError("Missing the required parameter `pkg_apply` when calling `apply_pkg`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'pkg_apply' in local_var_params: - body_params = local_var_params['pkg_apply'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json', 'text/yml']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/packages/apply', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PkgSummary', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - - def create_pkg(self, **kwargs): # noqa: E501,D401,D403 - """Create a new Influx package. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_pkg(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PkgCreate pkg_create: Influx package to create. - :return: Pkg - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_pkg_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.create_pkg_with_http_info(**kwargs) # noqa: E501 - return data - - def create_pkg_with_http_info(self, **kwargs): # noqa: E501,D401,D403 - """Create a new Influx package. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_pkg_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param PkgCreate pkg_create: Influx package to create. - :return: Pkg - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['pkg_create'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_pkg" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'pkg_create' in local_var_params: - body_params = local_var_params['pkg_create'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/packages', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Pkg', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) diff --git a/influxdb_client/service/organizations_service.py b/influxdb_client/service/organizations_service.py index 227ffe19..77253bee 100644 --- a/influxdb_client/service/organizations_service.py +++ b/influxdb_client/service/organizations_service.py @@ -138,118 +138,6 @@ def delete_orgs_id_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D4 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def delete_orgs_id_labels_id(self, org_id, label_id, **kwargs): # noqa: E501,D401,D403 - """Delete a label from an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_orgs_id_labels_id(org_id, label_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param str label_id: The label ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_orgs_id_labels_id_with_http_info(org_id, label_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_orgs_id_labels_id_with_http_info(org_id, label_id, **kwargs) # noqa: E501 - return data - - def delete_orgs_id_labels_id_with_http_info(self, org_id, label_id, **kwargs): # noqa: E501,D401,D403 - """Delete a label from an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_orgs_id_labels_id_with_http_info(org_id, label_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param str label_id: The label ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['org_id', 'label_id', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_orgs_id_labels_id" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `delete_orgs_id_labels_id`") # noqa: E501 - # verify the required parameter 'label_id' is set - if ('label_id' not in local_var_params or - local_var_params['label_id'] is None): - raise ValueError("Missing the required parameter `label_id` when calling `delete_orgs_id_labels_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'org_id' in local_var_params: - path_params['orgID'] = local_var_params['org_id'] # noqa: E501 - if 'label_id' in local_var_params: - path_params['labelID'] = local_var_params['label_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/orgs/{orgID}/labels/{labelID}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - def delete_orgs_id_members_id(self, user_id, org_id, **kwargs): # noqa: E501,D401,D403 """Remove a member from an organization. @@ -484,6 +372,9 @@ def get_orgs(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context + :param int offset: + :param int limit: + :param bool descending: :param str org: Filter organizations to a specific organization name. :param str org_id: Filter organizations to a specific organization ID. :param str user_id: Filter organizations to a specific user ID. @@ -508,6 +399,9 @@ def get_orgs_with_http_info(self, **kwargs): # noqa: E501,D401,D403 :param async_req bool :param str zap_trace_span: OpenTracing span context + :param int offset: + :param int limit: + :param bool descending: :param str org: Filter organizations to a specific organization name. :param str org_id: Filter organizations to a specific organization ID. :param str user_id: Filter organizations to a specific user ID. @@ -517,7 +411,7 @@ def get_orgs_with_http_info(self, **kwargs): # noqa: E501,D401,D403 """ # noqa: E501 local_var_params = locals() - all_params = ['zap_trace_span', 'org', 'org_id', 'user_id'] # noqa: E501 + all_params = ['zap_trace_span', 'offset', 'limit', 'descending', 'org', 'org_id', 'user_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -533,11 +427,23 @@ def get_orgs_with_http_info(self, **kwargs): # noqa: E501,D401,D403 local_var_params[key] = val del local_var_params['kwargs'] + if 'offset' in local_var_params and local_var_params['offset'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `offset` when calling `get_orgs`, must be a value greater than or equal to `0`") # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] > 100: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_orgs`, must be a value less than or equal to `100`") # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_orgs`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'descending' in local_var_params: + query_params.append(('descending', local_var_params['descending'])) # noqa: E501 if 'org' in local_var_params: query_params.append(('org', local_var_params['org'])) # noqa: E501 if 'org_id' in local_var_params: @@ -686,110 +592,6 @@ def get_orgs_id_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def get_orgs_id_labels(self, org_id, **kwargs): # noqa: E501,D401,D403 - """List all labels for a organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs_id_labels(org_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelsResponse - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_orgs_id_labels_with_http_info(org_id, **kwargs) # noqa: E501 - else: - (data) = self.get_orgs_id_labels_with_http_info(org_id, **kwargs) # noqa: E501 - return data - - def get_orgs_id_labels_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 - """List all labels for a organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_orgs_id_labels_with_http_info(org_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelsResponse - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['org_id', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_orgs_id_labels" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `get_orgs_id_labels`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'org_id' in local_var_params: - path_params['orgID'] = local_var_params['org_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/orgs/{orgID}/labels', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='LabelsResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - def get_orgs_id_members(self, org_id, **kwargs): # noqa: E501,D401,D403 """List all members of an organization. @@ -1442,122 +1244,6 @@ def post_orgs_with_http_info(self, organization, **kwargs): # noqa: E501,D401,D collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def post_orgs_id_labels(self, org_id, label_mapping, **kwargs): # noqa: E501,D401,D403 - """Add a label to an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_orgs_id_labels(org_id, label_mapping, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param LabelMapping label_mapping: Label to add (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelResponse - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.post_orgs_id_labels_with_http_info(org_id, label_mapping, **kwargs) # noqa: E501 - else: - (data) = self.post_orgs_id_labels_with_http_info(org_id, label_mapping, **kwargs) # noqa: E501 - return data - - def post_orgs_id_labels_with_http_info(self, org_id, label_mapping, **kwargs): # noqa: E501,D401,D403 - """Add a label to an organization. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_orgs_id_labels_with_http_info(org_id, label_mapping, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str org_id: The organization ID. (required) - :param LabelMapping label_mapping: Label to add (required) - :param str zap_trace_span: OpenTracing span context - :return: LabelResponse - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['org_id', 'label_mapping', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method post_orgs_id_labels" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'org_id' is set - if ('org_id' not in local_var_params or - local_var_params['org_id'] is None): - raise ValueError("Missing the required parameter `org_id` when calling `post_orgs_id_labels`") # noqa: E501 - # verify the required parameter 'label_mapping' is set - if ('label_mapping' not in local_var_params or - local_var_params['label_mapping'] is None): - raise ValueError("Missing the required parameter `label_mapping` when calling `post_orgs_id_labels`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'org_id' in local_var_params: - path_params['orgID'] = local_var_params['org_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - if 'label_mapping' in local_var_params: - body_params = local_var_params['label_mapping'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/orgs/{orgID}/labels', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='LabelResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - def post_orgs_id_members(self, org_id, add_resource_member_request_body, **kwargs): # noqa: E501,D401,D403 """Add a member to an organization. diff --git a/influxdb_client/service/scraper_targets_service.py b/influxdb_client/service/scraper_targets_service.py index 84046565..28f3aee0 100644 --- a/influxdb_client/service/scraper_targets_service.py +++ b/influxdb_client/service/scraper_targets_service.py @@ -1119,130 +1119,6 @@ def patch_scrapers_id_with_http_info(self, scraper_target_id, scraper_target_req collection_formats=collection_formats, urlopen_kw=urlopen_kw) - def patch_scrapers_id_labels_id(self, scraper_target_id, label_id, label, **kwargs): # noqa: E501,D401,D403 - """Update a label on a scraper target. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_scrapers_id_labels_id(scraper_target_id, label_id, label, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) - :param str label_id: The label ID. (required) - :param Label label: Label update to apply (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_scrapers_id_labels_id_with_http_info(scraper_target_id, label_id, label, **kwargs) # noqa: E501 - else: - (data) = self.patch_scrapers_id_labels_id_with_http_info(scraper_target_id, label_id, label, **kwargs) # noqa: E501 - return data - - def patch_scrapers_id_labels_id_with_http_info(self, scraper_target_id, label_id, label, **kwargs): # noqa: E501,D401,D403 - """Update a label on a scraper target. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.patch_scrapers_id_labels_id_with_http_info(scraper_target_id, label_id, label, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str scraper_target_id: The scraper target ID. (required) - :param str label_id: The label ID. (required) - :param Label label: Label update to apply (required) - :param str zap_trace_span: OpenTracing span context - :return: None - If the method is called asynchronously, - returns the request thread. - """ # noqa: E501 - local_var_params = locals() - - all_params = ['scraper_target_id', 'label_id', 'label', 'zap_trace_span'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - all_params.append('urlopen_kw') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method patch_scrapers_id_labels_id" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'scraper_target_id' is set - if ('scraper_target_id' not in local_var_params or - local_var_params['scraper_target_id'] is None): - raise ValueError("Missing the required parameter `scraper_target_id` when calling `patch_scrapers_id_labels_id`") # noqa: E501 - # verify the required parameter 'label_id' is set - if ('label_id' not in local_var_params or - local_var_params['label_id'] is None): - raise ValueError("Missing the required parameter `label_id` when calling `patch_scrapers_id_labels_id`") # noqa: E501 - # verify the required parameter 'label' is set - if ('label' not in local_var_params or - local_var_params['label'] is None): - raise ValueError("Missing the required parameter `label` when calling `patch_scrapers_id_labels_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'scraper_target_id' in local_var_params: - path_params['scraperTargetID'] = local_var_params['scraper_target_id'] # noqa: E501 - if 'label_id' in local_var_params: - path_params['labelID'] = local_var_params['label_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'zap_trace_span' in local_var_params: - header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - if 'label' in local_var_params: - body_params = local_var_params['label'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - # urlopen optional setting - urlopen_kw = None - if 'urlopen_kw' in kwargs: - urlopen_kw = kwargs['urlopen_kw'] - - return self.api_client.call_api( - '/api/v2/scrapers/{scraperTargetID}/labels/{labelID}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=local_var_params.get('async_req'), - _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats, - urlopen_kw=urlopen_kw) - def post_scrapers(self, scraper_target_request, **kwargs): # noqa: E501,D401,D403 """Create a scraper target. diff --git a/tests/__init__.py b/tests/__init__.py index 9cce6043..1545ae8c 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -20,7 +20,6 @@ from influxdb_client.service.dbr_ps_service import DBRPsService from influxdb_client.service.dashboards_service import DashboardsService from influxdb_client.service.health_service import HealthService -from influxdb_client.service.influx_packages_service import InfluxPackagesService from influxdb_client.service.labels_service import LabelsService from influxdb_client.service.notification_endpoints_service import NotificationEndpointsService from influxdb_client.service.notification_rules_service import NotificationRulesService