Skip to content

Commit

Permalink
feat: Update swagger to latest version, Removed log system from Bucke…
Browse files Browse the repository at this point in the history
…t, Dashboard, Organization, Task and Users API - [influxdb#18459](influxdata/influxdb#18459) (#110)
  • Loading branch information
bednar authored Jun 17, 2020
1 parent 33d98b7 commit 6d609c5
Show file tree
Hide file tree
Showing 33 changed files with 2,450 additions and 2,137 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
### Features
1. [#92](https://github.com/influxdata/influxdb-client-python/issues/92): Optimize serializing Pandas DataFrame for writing

### API
1. [#110](https://github.com/influxdata/influxdb-client-python/pull/110): Removed log system from Bucket, Dashboard, Organization, Task and Users API - [influxdb#18459](https://github.com/influxdata/influxdb/pull/18459), Update swagger to latest version

### Bug Fixes
1. [#105](https://github.com/influxdata/influxdb-client-python/pull/105): Fixed mapping dictionary without timestamp and tags into LineProtocol
1. [#108](https://github.com/influxdata/influxdb-client-python/pull/108): The WriteApi uses precision from Point instead a default precision
Expand Down
8 changes: 4 additions & 4 deletions influxdb_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
from influxdb_client.service.buckets_service import BucketsService
from influxdb_client.service.cells_service import CellsService
from influxdb_client.service.checks_service import ChecksService
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
from influxdb_client.service.operation_logs_service import OperationLogsService
from influxdb_client.service.organizations_service import OrganizationsService
from influxdb_client.service.query_service import QueryService
from influxdb_client.service.ready_service import ReadyService
Expand Down Expand Up @@ -88,6 +88,9 @@
from influxdb_client.domain.constant_variable_properties import ConstantVariableProperties
from influxdb_client.domain.create_cell import CreateCell
from influxdb_client.domain.create_dashboard_request import CreateDashboardRequest
from influxdb_client.domain.dbrp import DBRP
from influxdb_client.domain.dbrp_update import DBRPUpdate
from influxdb_client.domain.dbr_ps import DBRPs
from influxdb_client.domain.dashboard import Dashboard
from influxdb_client.domain.dashboard_color import DashboardColor
from influxdb_client.domain.dashboard_query import DashboardQuery
Expand Down Expand Up @@ -167,9 +170,6 @@
from influxdb_client.domain.object_expression import ObjectExpression
from influxdb_client.domain.onboarding_request import OnboardingRequest
from influxdb_client.domain.onboarding_response import OnboardingResponse
from influxdb_client.domain.operation_log import OperationLog
from influxdb_client.domain.operation_log_links import OperationLogLinks
from influxdb_client.domain.operation_logs import OperationLogs
from influxdb_client.domain.option_statement import OptionStatement
from influxdb_client.domain.organization import Organization
from influxdb_client.domain.organization_links import OrganizationLinks
Expand Down
2 changes: 1 addition & 1 deletion influxdb_client/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from influxdb_client.service.buckets_service import BucketsService
from influxdb_client.service.cells_service import CellsService
from influxdb_client.service.checks_service import ChecksService
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
from influxdb_client.service.operation_logs_service import OperationLogsService
from influxdb_client.service.organizations_service import OrganizationsService
from influxdb_client.service.query_service import QueryService
from influxdb_client.service.ready_service import ReadyService
Expand Down
2 changes: 1 addition & 1 deletion influxdb_client/client/write/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from influxdb_client.service.buckets_service import BucketsService
from influxdb_client.service.cells_service import CellsService
from influxdb_client.service.checks_service import ChecksService
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
from influxdb_client.service.operation_logs_service import OperationLogsService
from influxdb_client.service.organizations_service import OrganizationsService
from influxdb_client.service.query_service import QueryService
from influxdb_client.service.ready_service import ReadyService
Expand Down
6 changes: 3 additions & 3 deletions influxdb_client/domain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
from influxdb_client.domain.constant_variable_properties import ConstantVariableProperties
from influxdb_client.domain.create_cell import CreateCell
from influxdb_client.domain.create_dashboard_request import CreateDashboardRequest
from influxdb_client.domain.dbrp import DBRP
from influxdb_client.domain.dbrp_update import DBRPUpdate
from influxdb_client.domain.dbr_ps import DBRPs
from influxdb_client.domain.dashboard import Dashboard
from influxdb_client.domain.dashboard_color import DashboardColor
from influxdb_client.domain.dashboard_query import DashboardQuery
Expand Down Expand Up @@ -134,9 +137,6 @@
from influxdb_client.domain.object_expression import ObjectExpression
from influxdb_client.domain.onboarding_request import OnboardingRequest
from influxdb_client.domain.onboarding_response import OnboardingResponse
from influxdb_client.domain.operation_log import OperationLog
from influxdb_client.domain.operation_log_links import OperationLogLinks
from influxdb_client.domain.operation_logs import OperationLogs
from influxdb_client.domain.option_statement import OptionStatement
from influxdb_client.domain.organization import Organization
from influxdb_client.domain.organization_links import OrganizationLinks
Expand Down
30 changes: 1 addition & 29 deletions influxdb_client/domain/bucket_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class BucketLinks(object):
"""
openapi_types = {
'labels': 'str',
'logs': 'str',
'members': 'str',
'org': 'str',
'owners': 'str',
Expand All @@ -42,19 +41,17 @@ class BucketLinks(object):

attribute_map = {
'labels': 'labels',
'logs': 'logs',
'members': 'members',
'org': 'org',
'owners': 'owners',
'_self': 'self',
'write': 'write'
}

def __init__(self, labels=None, logs=None, members=None, org=None, owners=None, _self=None, write=None): # noqa: E501
def __init__(self, labels=None, members=None, org=None, owners=None, _self=None, write=None): # noqa: E501
"""BucketLinks - a model defined in OpenAPI""" # noqa: E501

self._labels = None
self._logs = None
self._members = None
self._org = None
self._owners = None
Expand All @@ -64,8 +61,6 @@ def __init__(self, labels=None, logs=None, members=None, org=None, owners=None,

if labels is not None:
self.labels = labels
if logs is not None:
self.logs = logs
if members is not None:
self.members = members
if org is not None:
Expand Down Expand Up @@ -100,29 +95,6 @@ def labels(self, labels):

self._labels = labels

@property
def logs(self):
"""Gets the logs of this BucketLinks. # noqa: E501
URI of resource. # noqa: E501
:return: The logs of this BucketLinks. # noqa: E501
:rtype: str
"""
return self._logs

@logs.setter
def logs(self, logs):
"""Sets the logs of this BucketLinks.
URI of resource. # noqa: E501
:param logs: The logs of this BucketLinks. # noqa: E501
:type: str
"""

self._logs = logs

@property
def members(self):
"""Gets the members of this BucketLinks. # noqa: E501
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import six


class OperationLogs(object):
class DBRPs(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Expand All @@ -31,64 +31,64 @@ class OperationLogs(object):
and the value is json key in definition.
"""
openapi_types = {
'logs': 'list[OperationLog]',
'notification_endpoints': 'list[DBRP]',
'links': 'Links'
}

attribute_map = {
'logs': 'logs',
'notification_endpoints': 'notificationEndpoints',
'links': 'links'
}

def __init__(self, logs=None, links=None): # noqa: E501
"""OperationLogs - a model defined in OpenAPI""" # noqa: E501
def __init__(self, notification_endpoints=None, links=None): # noqa: E501
"""DBRPs - a model defined in OpenAPI""" # noqa: E501

self._logs = None
self._notification_endpoints = None
self._links = None
self.discriminator = None

if logs is not None:
self.logs = logs
if notification_endpoints is not None:
self.notification_endpoints = notification_endpoints
if links is not None:
self.links = links

@property
def logs(self):
"""Gets the logs of this OperationLogs. # noqa: E501
def notification_endpoints(self):
"""Gets the notification_endpoints of this DBRPs. # noqa: E501
:return: The logs of this OperationLogs. # noqa: E501
:rtype: list[OperationLog]
:return: The notification_endpoints of this DBRPs. # noqa: E501
:rtype: list[DBRP]
"""
return self._logs
return self._notification_endpoints

@logs.setter
def logs(self, logs):
"""Sets the logs of this OperationLogs.
@notification_endpoints.setter
def notification_endpoints(self, notification_endpoints):
"""Sets the notification_endpoints of this DBRPs.
:param logs: The logs of this OperationLogs. # noqa: E501
:type: list[OperationLog]
:param notification_endpoints: The notification_endpoints of this DBRPs. # noqa: E501
:type: list[DBRP]
"""

self._logs = logs
self._notification_endpoints = notification_endpoints

@property
def links(self):
"""Gets the links of this OperationLogs. # noqa: E501
"""Gets the links of this DBRPs. # noqa: E501
:return: The links of this OperationLogs. # noqa: E501
:return: The links of this DBRPs. # noqa: E501
:rtype: Links
"""
return self._links

@links.setter
def links(self, links):
"""Sets the links of this OperationLogs.
"""Sets the links of this DBRPs.
:param links: The links of this OperationLogs. # noqa: E501
:param links: The links of this DBRPs. # noqa: E501
:type: Links
"""

Expand Down Expand Up @@ -128,7 +128,7 @@ def __repr__(self):

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, OperationLogs):
if not isinstance(other, DBRPs):
return False

return self.__dict__ == other.__dict__
Expand Down
Loading

0 comments on commit 6d609c5

Please sign in to comment.