Skip to content

Commit

Permalink
feat: Updated swagger to latest version (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored Oct 2, 2019
1 parent f6a7685 commit c7cc5ea
Show file tree
Hide file tree
Showing 120 changed files with 3,895 additions and 2,502 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 0.0.3 [unreleased]

### API
1. [#21](https://github.com/bonitoo-io/influxdb-client-python/pull/21): Updated swagger to latest version

### Bugs
1. [#19](https://github.com/bonitoo-io/influxdb-client-python/pull/19): Removed strict checking of enum values

Expand All @@ -10,7 +13,7 @@
1. [#5](https://github.com/bonitoo-io/influxdb-client-python/issues/5): Added support for gzip compression of query response and write body

### API
1. [#10](https://github.com/bonitoo-io/influxdb-client-python/issues/10): Updated swagger to latest version
1. [#10](https://github.com/bonitoo-io/influxdb-client-python/pull/10): Updated swagger to latest version

### Bugs
1. [#3](https://github.com/bonitoo-io/influxdb-client-python/issues/3): The management API correctly supports inheritance defined in Influx API
Expand Down
6 changes: 6 additions & 0 deletions influxdb_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from influxdb_client.service.organizations_service import OrganizationsService
from influxdb_client.service.query_service import QueryService
from influxdb_client.service.ready_service import ReadyService
from influxdb_client.service.rules_service import RulesService
from influxdb_client.service.scraper_targets_service import ScraperTargetsService
from influxdb_client.service.secrets_service import SecretsService
from influxdb_client.service.setup_service import SetupService
Expand Down Expand Up @@ -75,7 +76,9 @@
from influxdb_client.domain.cell_update import CellUpdate
from influxdb_client.domain.check import Check
from influxdb_client.domain.check_base import CheckBase
from influxdb_client.domain.check_base_links import CheckBaseLinks
from influxdb_client.domain.check_base_tags import CheckBaseTags
from influxdb_client.domain.check_patch import CheckPatch
from influxdb_client.domain.check_status_level import CheckStatusLevel
from influxdb_client.domain.check_view_properties import CheckViewProperties
from influxdb_client.domain.checks import Checks
Expand Down Expand Up @@ -147,11 +150,13 @@
from influxdb_client.domain.node import Node
from influxdb_client.domain.notification_endpoint import NotificationEndpoint
from influxdb_client.domain.notification_endpoint_base import NotificationEndpointBase
from influxdb_client.domain.notification_endpoint_base_links import NotificationEndpointBaseLinks
from influxdb_client.domain.notification_endpoint_type import NotificationEndpointType
from influxdb_client.domain.notification_endpoint_update import NotificationEndpointUpdate
from influxdb_client.domain.notification_endpoints import NotificationEndpoints
from influxdb_client.domain.notification_rule import NotificationRule
from influxdb_client.domain.notification_rule_base import NotificationRuleBase
from influxdb_client.domain.notification_rule_base_links import NotificationRuleBaseLinks
from influxdb_client.domain.notification_rule_update import NotificationRuleUpdate
from influxdb_client.domain.notification_rules import NotificationRules
from influxdb_client.domain.object_expression import ObjectExpression
Expand All @@ -169,6 +174,7 @@
from influxdb_client.domain.pager_duty_notification_endpoint import PagerDutyNotificationEndpoint
from influxdb_client.domain.pager_duty_notification_rule import PagerDutyNotificationRule
from influxdb_client.domain.pager_duty_notification_rule_base import PagerDutyNotificationRuleBase
from influxdb_client.domain.paren_expression import ParenExpression
from influxdb_client.domain.password_reset_body import PasswordResetBody
from influxdb_client.domain.permission import Permission
from influxdb_client.domain.permission_resource import PermissionResource
Expand Down
1 change: 1 addition & 0 deletions influxdb_client/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from influxdb_client.service.organizations_service import OrganizationsService
from influxdb_client.service.query_service import QueryService
from influxdb_client.service.ready_service import ReadyService
from influxdb_client.service.rules_service import RulesService
from influxdb_client.service.scraper_targets_service import ScraperTargetsService
from influxdb_client.service.secrets_service import SecretsService
from influxdb_client.service.setup_service import SetupService
Expand Down
1 change: 1 addition & 0 deletions influxdb_client/client/write/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from influxdb_client.service.organizations_service import OrganizationsService
from influxdb_client.service.query_service import QueryService
from influxdb_client.service.ready_service import ReadyService
from influxdb_client.service.rules_service import RulesService
from influxdb_client.service.scraper_targets_service import ScraperTargetsService
from influxdb_client.service.secrets_service import SecretsService
from influxdb_client.service.setup_service import SetupService
Expand Down
5 changes: 5 additions & 0 deletions influxdb_client/domain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
from influxdb_client.domain.cell_update import CellUpdate
from influxdb_client.domain.check import Check
from influxdb_client.domain.check_base import CheckBase
from influxdb_client.domain.check_base_links import CheckBaseLinks
from influxdb_client.domain.check_base_tags import CheckBaseTags
from influxdb_client.domain.check_patch import CheckPatch
from influxdb_client.domain.check_status_level import CheckStatusLevel
from influxdb_client.domain.check_view_properties import CheckViewProperties
from influxdb_client.domain.checks import Checks
Expand Down Expand Up @@ -116,11 +118,13 @@
from influxdb_client.domain.node import Node
from influxdb_client.domain.notification_endpoint import NotificationEndpoint
from influxdb_client.domain.notification_endpoint_base import NotificationEndpointBase
from influxdb_client.domain.notification_endpoint_base_links import NotificationEndpointBaseLinks
from influxdb_client.domain.notification_endpoint_type import NotificationEndpointType
from influxdb_client.domain.notification_endpoint_update import NotificationEndpointUpdate
from influxdb_client.domain.notification_endpoints import NotificationEndpoints
from influxdb_client.domain.notification_rule import NotificationRule
from influxdb_client.domain.notification_rule_base import NotificationRuleBase
from influxdb_client.domain.notification_rule_base_links import NotificationRuleBaseLinks
from influxdb_client.domain.notification_rule_update import NotificationRuleUpdate
from influxdb_client.domain.notification_rules import NotificationRules
from influxdb_client.domain.object_expression import ObjectExpression
Expand All @@ -138,6 +142,7 @@
from influxdb_client.domain.pager_duty_notification_endpoint import PagerDutyNotificationEndpoint
from influxdb_client.domain.pager_duty_notification_rule import PagerDutyNotificationRule
from influxdb_client.domain.pager_duty_notification_rule_base import PagerDutyNotificationRuleBase
from influxdb_client.domain.paren_expression import ParenExpression
from influxdb_client.domain.password_reset_body import PasswordResetBody
from influxdb_client.domain.permission import Permission
from influxdb_client.domain.permission_resource import PermissionResource
Expand Down
8 changes: 4 additions & 4 deletions influxdb_client/domain/array_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, type=None, elements=None): # noqa: E501
def type(self):
"""Gets the type of this ArrayExpression. # noqa: E501
type of AST node # noqa: E501
Type of AST node # noqa: E501
:return: The type of this ArrayExpression. # noqa: E501
:rtype: str
Expand All @@ -67,7 +67,7 @@ def type(self):
def type(self, type):
"""Sets the type of this ArrayExpression.
type of AST node # noqa: E501
Type of AST node # noqa: E501
:param type: The type of this ArrayExpression. # noqa: E501
:type: str
Expand All @@ -79,7 +79,7 @@ def type(self, type):
def elements(self):
"""Gets the elements of this ArrayExpression. # noqa: E501
elements of the array # noqa: E501
Elements of the array # noqa: E501
:return: The elements of this ArrayExpression. # noqa: E501
:rtype: list[Expression]
Expand All @@ -90,7 +90,7 @@ def elements(self):
def elements(self, elements):
"""Sets the elements of this ArrayExpression.
elements of the array # noqa: E501
Elements of the array # noqa: E501
:param elements: The elements of this ArrayExpression. # noqa: E501
:type: list[Expression]
Expand Down
4 changes: 2 additions & 2 deletions influxdb_client/domain/authorization_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, status='active', description=None): # noqa: E501
def status(self):
"""Gets the status of this AuthorizationUpdateRequest. # noqa: E501
if inactive the token is inactive and requests using the token will be rejected. # noqa: E501
If inactive the token is inactive and requests using the token will be rejected. # noqa: E501
:return: The status of this AuthorizationUpdateRequest. # noqa: E501
:rtype: str
Expand All @@ -67,7 +67,7 @@ def status(self):
def status(self, status):
"""Sets the status of this AuthorizationUpdateRequest.
if inactive the token is inactive and requests using the token will be rejected. # noqa: E501
If inactive the token is inactive and requests using the token will be rejected. # noqa: E501
:param status: The status of this AuthorizationUpdateRequest. # noqa: E501
:type: str
Expand Down
4 changes: 2 additions & 2 deletions influxdb_client/domain/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def bounds(self, bounds):
def label(self):
"""Gets the label of this Axis. # noqa: E501
label is a description of this Axis # noqa: E501
Label is a description of this Axis # noqa: E501
:return: The label of this Axis. # noqa: E501
:rtype: str
Expand All @@ -110,7 +110,7 @@ def label(self):
def label(self, label):
"""Sets the label of this Axis.
label is a description of this Axis # noqa: E501
Label is a description of this Axis # noqa: E501
:param label: The label of this Axis. # noqa: E501
:type: str
Expand Down
8 changes: 4 additions & 4 deletions influxdb_client/domain/bad_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, type=None, text=None): # noqa: E501
def type(self):
"""Gets the type of this BadStatement. # noqa: E501
type of AST node # noqa: E501
Type of AST node # noqa: E501
:return: The type of this BadStatement. # noqa: E501
:rtype: str
Expand All @@ -67,7 +67,7 @@ def type(self):
def type(self, type):
"""Sets the type of this BadStatement.
type of AST node # noqa: E501
Type of AST node # noqa: E501
:param type: The type of this BadStatement. # noqa: E501
:type: str
Expand All @@ -79,7 +79,7 @@ def type(self, type):
def text(self):
"""Gets the text of this BadStatement. # noqa: E501
raw source text # noqa: E501
Raw source text # noqa: E501
:return: The text of this BadStatement. # noqa: E501
:rtype: str
Expand All @@ -90,7 +90,7 @@ def text(self):
def text(self, text):
"""Sets the text of this BadStatement.
raw source text # noqa: E501
Raw source text # noqa: E501
:param text: The text of this BadStatement. # noqa: E501
:type: str
Expand Down
4 changes: 2 additions & 2 deletions influxdb_client/domain/binary_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, type=None, operator=None, left=None, right=None): # noqa: E5
def type(self):
"""Gets the type of this BinaryExpression. # noqa: E501
type of AST node # noqa: E501
Type of AST node # noqa: E501
:return: The type of this BinaryExpression. # noqa: E501
:rtype: str
Expand All @@ -77,7 +77,7 @@ def type(self):
def type(self, type):
"""Sets the type of this BinaryExpression.
type of AST node # noqa: E501
Type of AST node # noqa: E501
:param type: The type of this BinaryExpression. # noqa: E501
:type: str
Expand Down
8 changes: 4 additions & 4 deletions influxdb_client/domain/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, type=None, body=None): # noqa: E501
def type(self):
"""Gets the type of this Block. # noqa: E501
type of AST node # noqa: E501
Type of AST node # noqa: E501
:return: The type of this Block. # noqa: E501
:rtype: str
Expand All @@ -67,7 +67,7 @@ def type(self):
def type(self, type):
"""Sets the type of this Block.
type of AST node # noqa: E501
Type of AST node # noqa: E501
:param type: The type of this Block. # noqa: E501
:type: str
Expand All @@ -79,7 +79,7 @@ def type(self, type):
def body(self):
"""Gets the body of this Block. # noqa: E501
block body # noqa: E501
Block body # noqa: E501
:return: The body of this Block. # noqa: E501
:rtype: list[Statement]
Expand All @@ -90,7 +90,7 @@ def body(self):
def body(self, body):
"""Sets the body of this Block.
block body # noqa: E501
Block body # noqa: E501
:param body: The body of this Block. # noqa: E501
:type: list[Statement]
Expand Down
4 changes: 2 additions & 2 deletions influxdb_client/domain/boolean_literal.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, type=None, value=None): # noqa: E501
def type(self):
"""Gets the type of this BooleanLiteral. # noqa: E501
type of AST node # noqa: E501
Type of AST node # noqa: E501
:return: The type of this BooleanLiteral. # noqa: E501
:rtype: str
Expand All @@ -67,7 +67,7 @@ def type(self):
def type(self, type):
"""Sets the type of this BooleanLiteral.
type of AST node # noqa: E501
Type of AST node # noqa: E501
:param type: The type of this BooleanLiteral. # noqa: E501
:type: str
Expand Down
32 changes: 29 additions & 3 deletions influxdb_client/domain/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Bucket(object):
openapi_types = {
'links': 'BucketLinks',
'id': 'str',
'type': 'str',
'name': 'str',
'description': 'str',
'org_id': 'str',
Expand All @@ -46,6 +47,7 @@ class Bucket(object):
attribute_map = {
'links': 'links',
'id': 'id',
'type': 'type',
'name': 'name',
'description': 'description',
'org_id': 'orgID',
Expand All @@ -56,11 +58,12 @@ class Bucket(object):
'labels': 'labels'
}

def __init__(self, links=None, id=None, name=None, description=None, org_id=None, rp=None, created_at=None, updated_at=None, retention_rules=None, labels=None): # noqa: E501
def __init__(self, links=None, id=None, type='user', name=None, description=None, org_id=None, rp=None, created_at=None, updated_at=None, retention_rules=None, labels=None): # noqa: E501
"""Bucket - a model defined in OpenAPI""" # noqa: E501

self._links = None
self._id = None
self._type = None
self._name = None
self._description = None
self._org_id = None
Expand All @@ -75,6 +78,8 @@ def __init__(self, links=None, id=None, name=None, description=None, org_id=None
self.links = links
if id is not None:
self.id = id
if type is not None:
self.type = type
self.name = name
if description is not None:
self.description = description
Expand Down Expand Up @@ -132,6 +137,27 @@ def id(self, id):

self._id = id

@property
def type(self):
"""Gets the type of this Bucket. # noqa: E501
:return: The type of this Bucket. # noqa: E501
:rtype: str
"""
return self._type

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

self._type = type

@property
def name(self):
"""Gets the name of this Bucket. # noqa: E501
Expand Down Expand Up @@ -264,7 +290,7 @@ def updated_at(self, updated_at):
def retention_rules(self):
"""Gets the retention_rules of this Bucket. # noqa: E501
rules to expire or retain data. No rules means data never expires. # noqa: E501
Rules to expire or retain data. No rules means data never expires. # noqa: E501
:return: The retention_rules of this Bucket. # noqa: E501
:rtype: list[BucketRetentionRules]
Expand All @@ -275,7 +301,7 @@ def retention_rules(self):
def retention_rules(self, retention_rules):
"""Sets the retention_rules of this Bucket.
rules to expire or retain data. No rules means data never expires. # noqa: E501
Rules to expire or retain data. No rules means data never expires. # noqa: E501
:param retention_rules: The retention_rules of this Bucket. # noqa: E501
:type: list[BucketRetentionRules]
Expand Down
4 changes: 2 additions & 2 deletions influxdb_client/domain/bucket_retention_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def type(self, type):
def every_seconds(self):
"""Gets the every_seconds of this BucketRetentionRules. # noqa: E501
duration in seconds for how long data will be kept in the database. # noqa: E501
Duration in seconds for how long data will be kept in the database. # noqa: E501
:return: The every_seconds of this BucketRetentionRules. # noqa: E501
:rtype: int
Expand All @@ -88,7 +88,7 @@ def every_seconds(self):
def every_seconds(self, every_seconds):
"""Sets the every_seconds of this BucketRetentionRules.
duration in seconds for how long data will be kept in the database. # noqa: E501
Duration in seconds for how long data will be kept in the database. # noqa: E501
:param every_seconds: The every_seconds of this BucketRetentionRules. # noqa: E501
:type: int
Expand Down
Loading

0 comments on commit c7cc5ea

Please sign in to comment.