From 3fbde5c93cbe9064a8b23e07d18e3a098d95b3e4 Mon Sep 17 00:00:00 2001 From: wf-jenkins Date: Wed, 13 Sep 2023 08:16:21 -0700 Subject: [PATCH] Autogenerated Update v2.201.1. --- .swagger-codegen/config.json | 2 +- .swagger-codegen/config.jsone | 2 +- README.md | 2 +- docs/MonitoredServiceDTO.md | 4 + setup.py | 2 +- wavefront_api_client/api_client.py | 2 +- wavefront_api_client/configuration.py | 2 +- .../models/monitored_service_dto.py | 114 +++++++++++++++++- wavefront_api_client/models/saved_search.py | 2 +- 9 files changed, 124 insertions(+), 8 deletions(-) diff --git a/.swagger-codegen/config.json b/.swagger-codegen/config.json index 1f0b9a86..9d1014bb 100644 --- a/.swagger-codegen/config.json +++ b/.swagger-codegen/config.json @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.199.1" + "packageVersion": "2.201.1" } diff --git a/.swagger-codegen/config.jsone b/.swagger-codegen/config.jsone index de0eb6ba..1f0b9a86 100644 --- a/.swagger-codegen/config.jsone +++ b/.swagger-codegen/config.jsone @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.197.1" + "packageVersion": "2.199.1" } diff --git a/README.md b/README.md index 1dc5bc17..fbdc3a5a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v2 -- Package version: 2.199.1 +- Package version: 2.201.1 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/docs/MonitoredServiceDTO.md b/docs/MonitoredServiceDTO.md index 748b07ab..03147557 100644 --- a/docs/MonitoredServiceDTO.md +++ b/docs/MonitoredServiceDTO.md @@ -4,12 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application** | **str** | Application Name of the monitored service | +**cluster** | **str** | Cluster of monitored service | [optional] **component** | **str** | Component Name of the monitored service | **created** | **int** | Created epoch of monitored service | [optional] **custom_dashboard_link** | **str** | Customer dashboard link | [optional] +**favorite** | **bool** | favorite status of monitored service | [optional] **hidden** | **bool** | Monitored service is hidden or not | [optional] +**id** | **str** | unique ID of monitored service | [optional] **last_reported** | **int** | Last reported epoch of monitored service | [optional] **last_updated** | **int** | Last update epoch of monitored service | [optional] +**origin** | **str** | origin of monitored service | [optional] **satisfied_latency_millis** | **int** | Satisfied latency of monitored service | [optional] **service** | **str** | Service Name of the monitored service | **service_instance_count** | **int** | Service Instance count of the monitored service | diff --git a/setup.py b/setup.py index 36ca0e4b..6680e2a0 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "wavefront-api-client" -VERSION = "2.199.1" +VERSION = "2.201.1" # To install the library, run the following # # python setup.py install diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py index 08e0e6d4..2092b708 100644 --- a/wavefront_api_client/api_client.py +++ b/wavefront_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.199.1/python' + self.user_agent = 'Swagger-Codegen/2.201.1/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/wavefront_api_client/configuration.py b/wavefront_api_client/configuration.py index 5c772d3d..b1f7b052 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -251,5 +251,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2\n"\ - "SDK Package Version: 2.199.1".\ + "SDK Package Version: 2.201.1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/wavefront_api_client/models/monitored_service_dto.py b/wavefront_api_client/models/monitored_service_dto.py index 528f1a1f..1fe25862 100644 --- a/wavefront_api_client/models/monitored_service_dto.py +++ b/wavefront_api_client/models/monitored_service_dto.py @@ -34,12 +34,16 @@ class MonitoredServiceDTO(object): """ swagger_types = { 'application': 'str', + 'cluster': 'str', 'component': 'str', 'created': 'int', 'custom_dashboard_link': 'str', + 'favorite': 'bool', 'hidden': 'bool', + 'id': 'str', 'last_reported': 'int', 'last_updated': 'int', + 'origin': 'str', 'satisfied_latency_millis': 'int', 'service': 'str', 'service_instance_count': 'int', @@ -50,12 +54,16 @@ class MonitoredServiceDTO(object): attribute_map = { 'application': 'application', + 'cluster': 'cluster', 'component': 'component', 'created': 'created', 'custom_dashboard_link': 'customDashboardLink', + 'favorite': 'favorite', 'hidden': 'hidden', + 'id': 'id', 'last_reported': 'lastReported', 'last_updated': 'lastUpdated', + 'origin': 'origin', 'satisfied_latency_millis': 'satisfiedLatencyMillis', 'service': 'service', 'service_instance_count': 'serviceInstanceCount', @@ -64,19 +72,23 @@ class MonitoredServiceDTO(object): 'update_user_id': 'updateUserId' } - def __init__(self, application=None, component=None, created=None, custom_dashboard_link=None, hidden=None, last_reported=None, last_updated=None, satisfied_latency_millis=None, service=None, service_instance_count=None, source=None, status=None, update_user_id=None, _configuration=None): # noqa: E501 + def __init__(self, application=None, cluster=None, component=None, created=None, custom_dashboard_link=None, favorite=None, hidden=None, id=None, last_reported=None, last_updated=None, origin=None, satisfied_latency_millis=None, service=None, service_instance_count=None, source=None, status=None, update_user_id=None, _configuration=None): # noqa: E501 """MonitoredServiceDTO - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._application = None + self._cluster = None self._component = None self._created = None self._custom_dashboard_link = None + self._favorite = None self._hidden = None + self._id = None self._last_reported = None self._last_updated = None + self._origin = None self._satisfied_latency_millis = None self._service = None self._service_instance_count = None @@ -86,17 +98,25 @@ def __init__(self, application=None, component=None, created=None, custom_dashbo self.discriminator = None self.application = application + if cluster is not None: + self.cluster = cluster self.component = component if created is not None: self.created = created if custom_dashboard_link is not None: self.custom_dashboard_link = custom_dashboard_link + if favorite is not None: + self.favorite = favorite if hidden is not None: self.hidden = hidden + if id is not None: + self.id = id if last_reported is not None: self.last_reported = last_reported if last_updated is not None: self.last_updated = last_updated + if origin is not None: + self.origin = origin if satisfied_latency_millis is not None: self.satisfied_latency_millis = satisfied_latency_millis self.service = service @@ -132,6 +152,29 @@ def application(self, application): self._application = application + @property + def cluster(self): + """Gets the cluster of this MonitoredServiceDTO. # noqa: E501 + + Cluster of monitored service # noqa: E501 + + :return: The cluster of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._cluster + + @cluster.setter + def cluster(self, cluster): + """Sets the cluster of this MonitoredServiceDTO. + + Cluster of monitored service # noqa: E501 + + :param cluster: The cluster of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._cluster = cluster + @property def component(self): """Gets the component of this MonitoredServiceDTO. # noqa: E501 @@ -203,6 +246,29 @@ def custom_dashboard_link(self, custom_dashboard_link): self._custom_dashboard_link = custom_dashboard_link + @property + def favorite(self): + """Gets the favorite of this MonitoredServiceDTO. # noqa: E501 + + favorite status of monitored service # noqa: E501 + + :return: The favorite of this MonitoredServiceDTO. # noqa: E501 + :rtype: bool + """ + return self._favorite + + @favorite.setter + def favorite(self, favorite): + """Sets the favorite of this MonitoredServiceDTO. + + favorite status of monitored service # noqa: E501 + + :param favorite: The favorite of this MonitoredServiceDTO. # noqa: E501 + :type: bool + """ + + self._favorite = favorite + @property def hidden(self): """Gets the hidden of this MonitoredServiceDTO. # noqa: E501 @@ -226,6 +292,29 @@ def hidden(self, hidden): self._hidden = hidden + @property + def id(self): + """Gets the id of this MonitoredServiceDTO. # noqa: E501 + + unique ID of monitored service # noqa: E501 + + :return: The id of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this MonitoredServiceDTO. + + unique ID of monitored service # noqa: E501 + + :param id: The id of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._id = id + @property def last_reported(self): """Gets the last_reported of this MonitoredServiceDTO. # noqa: E501 @@ -272,6 +361,29 @@ def last_updated(self, last_updated): self._last_updated = last_updated + @property + def origin(self): + """Gets the origin of this MonitoredServiceDTO. # noqa: E501 + + origin of monitored service # noqa: E501 + + :return: The origin of this MonitoredServiceDTO. # noqa: E501 + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this MonitoredServiceDTO. + + origin of monitored service # noqa: E501 + + :param origin: The origin of this MonitoredServiceDTO. # noqa: E501 + :type: str + """ + + self._origin = origin + @property def satisfied_latency_millis(self): """Gets the satisfied_latency_millis of this MonitoredServiceDTO. # noqa: E501 diff --git a/wavefront_api_client/models/saved_search.py b/wavefront_api_client/models/saved_search.py index 58c40a57..17fafc71 100644 --- a/wavefront_api_client/models/saved_search.py +++ b/wavefront_api_client/models/saved_search.py @@ -149,7 +149,7 @@ def entity_type(self, entity_type): """ if self._configuration.client_side_validation and entity_type is None: raise ValueError("Invalid value for `entity_type`, must not be `None`") # noqa: E501 - allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION", "APPLICATION", "REGISTERED_QUERY", "USER", "USER_GROUP", "SERVICE_ACCOUNT", "INGESTION_POLICY", "ROLE", "TOKEN", "ALERT_ANALYTICS", "LOG_ALERT"] # noqa: E501 + allowed_values = ["DASHBOARD", "ALERT", "MAINTENANCE_WINDOW", "NOTIFICANT", "EVENT", "SOURCE", "EXTERNAL_LINK", "AGENT", "CLOUD_INTEGRATION", "APPLICATION", "REGISTERED_QUERY", "USER", "USER_GROUP", "SERVICE_ACCOUNT", "INGESTION_POLICY", "ROLE", "TOKEN", "ALERT_ANALYTICS", "LOG_ALERT", "MONITORED_SERVICE"] # noqa: E501 if (self._configuration.client_side_validation and entity_type not in allowed_values): raise ValueError(