From 775c13f79071905621672e3eb2561492a494671e Mon Sep 17 00:00:00 2001 From: wf-jenkins Date: Thu, 25 Jan 2024 08:16:20 -0800 Subject: [PATCH] Autogenerated Update v2.217.0. --- .swagger-codegen/config.json | 2 +- .swagger-codegen/config.jsone | 2 +- README.md | 2 +- docs/EC2Configuration.md | 1 + setup.py | 2 +- wavefront_api_client/api_client.py | 2 +- wavefront_api_client/configuration.py | 2 +- .../models/ec2_configuration.py | 30 ++++++++++++++++++- ...esponse_container_set_business_function.py | 2 +- 9 files changed, 37 insertions(+), 8 deletions(-) diff --git a/.swagger-codegen/config.json b/.swagger-codegen/config.json index e28c62e4..851b5e6c 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.216.0" + "packageVersion": "2.217.0" } diff --git a/.swagger-codegen/config.jsone b/.swagger-codegen/config.jsone index 4890b6c1..e28c62e4 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.214.0" + "packageVersion": "2.216.0" } diff --git a/README.md b/README.md index 9b4195e6..1daa33de 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.216.0 +- Package version: 2.217.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/docs/EC2Configuration.md b/docs/EC2Configuration.md index 3cd582f6..7d9eaa5e 100644 --- a/docs/EC2Configuration.md +++ b/docs/EC2Configuration.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **base_credentials** | [**AWSBaseCredentials**](AWSBaseCredentials.md) | | [optional] +**custom_namespaces** | **list[str]** | A list of custom namespace that limit what we query from metric plus | [optional] **host_name_tags** | **list[str]** | A list of AWS instance tags that, when found, will be used as the \"source\" name in a series. Default: [\"hostname\", \"host\", \"name\"]. If no tag in this list is found, the series source is set to the instance id. | [optional] **instance_selection_tags_expr** | **str** | A string expressing the allow list of AWS instance tag-value pairs. If the instance's AWS tags match this allow list, data about this instance is ingested from EC2 APIs Multiple entries are OR'ed. Key-value pairs in the string are separated by commas and in the form k=v. Example: \"k1=v1, k1=v2, k3=v3\". | [optional] **metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional] diff --git a/setup.py b/setup.py index b6f64d6d..670f6197 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.216.0" +VERSION = "2.217.0" # 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 c5099002..e6564f72 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.216.0/python' + self.user_agent = 'Swagger-Codegen/2.217.0/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 36bdedba..088426e3 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.216.0".\ + "SDK Package Version: 2.217.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/wavefront_api_client/models/ec2_configuration.py b/wavefront_api_client/models/ec2_configuration.py index 52935c21..fe85f3ce 100644 --- a/wavefront_api_client/models/ec2_configuration.py +++ b/wavefront_api_client/models/ec2_configuration.py @@ -34,6 +34,7 @@ class EC2Configuration(object): """ swagger_types = { 'base_credentials': 'AWSBaseCredentials', + 'custom_namespaces': 'list[str]', 'host_name_tags': 'list[str]', 'instance_selection_tags_expr': 'str', 'metric_filter_regex': 'str', @@ -43,6 +44,7 @@ class EC2Configuration(object): attribute_map = { 'base_credentials': 'baseCredentials', + 'custom_namespaces': 'customNamespaces', 'host_name_tags': 'hostNameTags', 'instance_selection_tags_expr': 'instanceSelectionTagsExpr', 'metric_filter_regex': 'metricFilterRegex', @@ -50,13 +52,14 @@ class EC2Configuration(object): 'volume_selection_tags_expr': 'volumeSelectionTagsExpr' } - def __init__(self, base_credentials=None, host_name_tags=None, instance_selection_tags_expr=None, metric_filter_regex=None, point_tag_filter_regex=None, volume_selection_tags_expr=None, _configuration=None): # noqa: E501 + def __init__(self, base_credentials=None, custom_namespaces=None, host_name_tags=None, instance_selection_tags_expr=None, metric_filter_regex=None, point_tag_filter_regex=None, volume_selection_tags_expr=None, _configuration=None): # noqa: E501 """EC2Configuration - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._base_credentials = None + self._custom_namespaces = None self._host_name_tags = None self._instance_selection_tags_expr = None self._metric_filter_regex = None @@ -66,6 +69,8 @@ def __init__(self, base_credentials=None, host_name_tags=None, instance_selectio if base_credentials is not None: self.base_credentials = base_credentials + if custom_namespaces is not None: + self.custom_namespaces = custom_namespaces if host_name_tags is not None: self.host_name_tags = host_name_tags if instance_selection_tags_expr is not None: @@ -98,6 +103,29 @@ def base_credentials(self, base_credentials): self._base_credentials = base_credentials + @property + def custom_namespaces(self): + """Gets the custom_namespaces of this EC2Configuration. # noqa: E501 + + A list of custom namespace that limit what we query from metric plus # noqa: E501 + + :return: The custom_namespaces of this EC2Configuration. # noqa: E501 + :rtype: list[str] + """ + return self._custom_namespaces + + @custom_namespaces.setter + def custom_namespaces(self, custom_namespaces): + """Sets the custom_namespaces of this EC2Configuration. + + A list of custom namespace that limit what we query from metric plus # noqa: E501 + + :param custom_namespaces: The custom_namespaces of this EC2Configuration. # noqa: E501 + :type: list[str] + """ + + self._custom_namespaces = custom_namespaces + @property def host_name_tags(self): """Gets the host_name_tags of this EC2Configuration. # noqa: E501 diff --git a/wavefront_api_client/models/response_container_set_business_function.py b/wavefront_api_client/models/response_container_set_business_function.py index e6521d9a..19b87be9 100644 --- a/wavefront_api_client/models/response_container_set_business_function.py +++ b/wavefront_api_client/models/response_container_set_business_function.py @@ -100,7 +100,7 @@ def response(self, response): :param response: The response of this ResponseContainerSetBusinessFunction. # noqa: E501 :type: list[str] """ - allowed_values = ["VIEW_MONITORED_APPLICATION_SERVICE", "VIEW_MONITORED_CLUSTER", "VIEW_MONITORED_CLUSTER_TAGS", "VIEW_DASHBOARDS", "VIEW_DASHBOARDS_TAGS", "VIEW_METRIC_TIMESERIES", "VIEW_HOSTS", "VIEW_HOST_TAGS", "VIEW_AGENT_TAGS", "VIEW_EVENTS", "VIEW_EVENT_TAGS", "VIEW_ALERTS", "VIEW_ALERT_TAGS", "VIEW_REGISTERED_QUERIES", "VIEW_REGISTERED_QUERY_TAGS", "VIEW_MAINTENANCE_WINDOWS", "VIEW_NOTIFICANTS", "VIEW_CUSTOM_METRICS", "VIEW_TARGETS", "VIEW_AGENTS", "VIEW_SSH_CONFIGS", "VIEW_EXTERNAL_SERVICES", "VIEW_EXTERNAL_SERVICES_TAGS", "VIEW_EXTERNAL_LINKS", "VIEW_EXTERNAL_LINK_DIGESTS", "VIEW_EXTERNAL_LINK_TAGS", "VIEW_LOGS", "VIEW_SLOW_QUERY_PAGE", "VIEW_SAVED_SEARCHES", "VIEW_MY_MESSAGES", "VIEW_APPLICATIONS", "VIEW_ANOMALY", "SPY_ON_POINTS", "SPY_ON_ID_CREATIONS", "SPY_UNUSED_METRICS", "VIEW_SAML_SSO_SETTINGS", "VIEW_INGESTION_POLICY", "VIEW_CLUSTER_INFO", "MODIFY_MONITORED_APPLICATION_SERVICE", "MODIFY_MONITORED_CLUSTER", "MODIFY_MONITORED_CLUSTER_TAGS", "MODIFY_PRIVATE_TAGS", "MODIFY_CUSTOM_METRICS", "MODIFY_DASHBOARDS", "MODIFY_EVENTS", "MODIFY_EVENT_TAGS", "MODIFY_AGENTS", "MODIFY_AGENT_TAGS", "MODIFY_HOSTS", "MODIFY_HOST_TAGS", "MODIFY_MACHINES", "MODIFY_SSH_CONFIGS", "MODIFY_ALERTS", "MODIFY_ALERT_TAGS", "MODIFY_REGISTERED_QUERIES", "MODIFY_REGISTERED_QUERY_TAGS", "MODIFY_MAINTENANCE_WINDOWS", "MODIFY_NOTIFICANTS", "MODIFY_DASHBOARD_TAGS", "MODIFY_TARGETS", "MODIFY_EXTERNAL_SERVICES", "MODIFY_EXTERNAL_SERVICES_TAGS", "CREATE_EMBEDDED_CHARTS", "MODIFY_METRIC_VISIBILITY", "MODIFY_EXTERNAL_LINKS", "MODIFY_EXTERNAL_LINK_TAGS", "MODIFY_SAVED_SEARCHES", "MODIFY_SAVED_TRACES_SEARCH", "MODIFY_OWN_ONBOARDING_STATE", "MODIFY_APPLICATIONS", "INGESTION_POLICY_MANAGEMENT", "SECURITY_POLICY_MANAGEMENT", "MODIFY_SAML_SSO_SETTINGS", "METRIC_INGESTION", "METRIC_INGESTION_LISTENER", "LOGIN", "LOGOUT", "CHANGE_PASSWORD", "SEND_FORGOTTEN_PASSWORD_EMAILS", "CHANGE_USER_PREFERENCE", "CREATE_TOKEN", "REVOKE_ALL_SESSIONS", "REVOKE_ALL_TOKENS", "REVOKE_TOKEN", "GET_TOKENS", "GET_ALL_ACCOUNTS", "GET_ALL_USERS", "GET_ALL_SERVICE_ACCOUNTS", "ADMINISTER_GROUPS", "DELETE_ACCOUNT", "INVITE_USER", "ADMINISTER_SERVICE_ACCOUNTS", "NO_REAUTH_INVITE_USER", "ADMINISTER_USER_GROUPS", "ADMINISTER_ALL_TOKENS", "ADMINISTER_CUSTOMER_PREFERENCES", "ROLES_MANAGEMENT", "VIEW_CUSTOMERS", "MODIFY_CUSTOMER", "DELETE_CUSTOMER", "SEND_UI_METRICS", "UPGRADE_CUSTOMER", "TOKEN"] # noqa: E501 + allowed_values = ["VIEW_MONITORED_APPLICATION_SERVICE", "VIEW_MONITORED_CLUSTER", "VIEW_MONITORED_CLUSTER_TAGS", "VIEW_DASHBOARDS", "VIEW_DASHBOARDS_TAGS", "VIEW_METRIC_TIMESERIES", "VIEW_HOSTS", "VIEW_HOST_TAGS", "VIEW_AGENT_TAGS", "VIEW_EVENTS", "VIEW_EVENT_TAGS", "VIEW_ALERTS", "VIEW_ALERT_TAGS", "VIEW_REGISTERED_QUERIES", "VIEW_REGISTERED_QUERY_TAGS", "VIEW_MAINTENANCE_WINDOWS", "VIEW_NOTIFICANTS", "VIEW_CUSTOM_METRICS", "VIEW_TARGETS", "VIEW_AGENTS", "VIEW_SSH_CONFIGS", "VIEW_EXTERNAL_SERVICES", "VIEW_EXTERNAL_SERVICES_TAGS", "VIEW_EXTERNAL_LINKS", "VIEW_EXTERNAL_LINK_DIGESTS", "VIEW_EXTERNAL_LINK_TAGS", "VIEW_LOGS", "VIEW_SLOW_QUERY_PAGE", "VIEW_SAVED_SEARCHES", "VIEW_MY_MESSAGES", "VIEW_APPLICATIONS", "VIEW_ANOMALY", "SPY_ON_POINTS", "SPY_ON_ID_CREATIONS", "SPY_UNUSED_METRICS", "VIEW_SAML_SSO_SETTINGS", "VIEW_INGESTION_POLICY", "VIEW_CLUSTER_INFO", "VIEW_QUERY_FEDERATION", "MODIFY_MONITORED_APPLICATION_SERVICE", "MODIFY_MONITORED_CLUSTER", "MODIFY_MONITORED_CLUSTER_TAGS", "MODIFY_PRIVATE_TAGS", "MODIFY_CUSTOM_METRICS", "MODIFY_DASHBOARDS", "MODIFY_EVENTS", "MODIFY_EVENT_TAGS", "MODIFY_AGENTS", "MODIFY_AGENT_TAGS", "MODIFY_HOSTS", "MODIFY_HOST_TAGS", "MODIFY_MACHINES", "MODIFY_SSH_CONFIGS", "MODIFY_ALERTS", "MODIFY_ALERT_TAGS", "MODIFY_REGISTERED_QUERIES", "MODIFY_REGISTERED_QUERY_TAGS", "MODIFY_MAINTENANCE_WINDOWS", "MODIFY_NOTIFICANTS", "MODIFY_DASHBOARD_TAGS", "MODIFY_TARGETS", "MODIFY_EXTERNAL_SERVICES", "MODIFY_EXTERNAL_SERVICES_TAGS", "CREATE_EMBEDDED_CHARTS", "MODIFY_METRIC_VISIBILITY", "MODIFY_EXTERNAL_LINKS", "MODIFY_EXTERNAL_LINK_TAGS", "MODIFY_SAVED_SEARCHES", "MODIFY_SAVED_TRACES_SEARCH", "MODIFY_OWN_ONBOARDING_STATE", "MODIFY_APPLICATIONS", "INGESTION_POLICY_MANAGEMENT", "SECURITY_POLICY_MANAGEMENT", "MODIFY_SAML_SSO_SETTINGS", "METRIC_INGESTION", "METRIC_INGESTION_LISTENER", "LOGIN", "LOGOUT", "CHANGE_PASSWORD", "SEND_FORGOTTEN_PASSWORD_EMAILS", "CHANGE_USER_PREFERENCE", "CREATE_TOKEN", "REVOKE_ALL_SESSIONS", "REVOKE_ALL_TOKENS", "REVOKE_TOKEN", "GET_TOKENS", "GET_ALL_ACCOUNTS", "GET_ALL_USERS", "GET_ALL_SERVICE_ACCOUNTS", "ADMINISTER_GROUPS", "DELETE_ACCOUNT", "INVITE_USER", "ADMINISTER_SERVICE_ACCOUNTS", "NO_REAUTH_INVITE_USER", "ADMINISTER_USER_GROUPS", "ADMINISTER_ALL_TOKENS", "ADMINISTER_CUSTOMER_PREFERENCES", "ROLES_MANAGEMENT", "VIEW_CUSTOMERS", "MODIFY_CUSTOMER", "DELETE_CUSTOMER", "SEND_UI_METRICS", "UPGRADE_CUSTOMER", "TOKEN"] # noqa: E501 if (self._configuration.client_side_validation and not set(response).issubset(set(allowed_values))): # noqa: E501 raise ValueError(