From a7480d2cccfbf6ce42da58c816f1d0c72d9e5201 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 4 Jul 2025 09:04:47 +0000 Subject: [PATCH] Generate observability --- .../src/stackit/observability/__init__.py | 361 ++++++++++----- .../stackit/observability/api/default_api.py | 426 +++++++++--------- .../src/stackit/observability/api_client.py | 23 +- .../stackit/observability/configuration.py | 44 +- .../src/stackit/observability/exceptions.py | 23 +- .../stackit/observability/models/__init__.py | 2 +- .../src/stackit/observability/models/alert.py | 4 +- .../models/alert_config_receivers_response.py | 4 +- .../models/alert_config_route_response.py | 4 +- .../observability/models/alert_group.py | 4 +- .../models/alert_group_response.py | 4 +- .../models/alert_groups_response.py | 4 +- .../observability/models/alert_rule.py | 4 +- .../observability/models/alert_rule_record.py | 4 +- .../models/alert_rules_response.py | 4 +- .../observability/models/basic_auth.py | 4 +- .../create_alert_config_receiver_payload.py | 4 +- ...ig_receiver_payload_email_configs_inner.py | 4 +- ...receiver_payload_opsgenie_configs_inner.py | 4 +- ...receiver_payload_web_hook_configs_inner.py | 4 +- .../create_alert_config_route_payload.py | 4 +- ...alert_config_route_payload_routes_inner.py | 4 +- .../models/create_alertgroups_payload.py | 4 +- .../models/create_alertrules_payload.py | 4 +- .../models/create_credentials_response.py | 4 +- .../models/create_instance_payload.py | 4 +- .../models/create_instance_response.py | 4 +- .../models/create_logs_alertgroups_payload.py | 4 +- .../models/create_scrape_config_payload.py | 4 +- ...create_scrape_config_payload_basic_auth.py | 4 +- ...pe_config_payload_http_sd_configs_inner.py | 4 +- ...ig_payload_http_sd_configs_inner_oauth2.py | 4 +- ...http_sd_configs_inner_oauth2_tls_config.py | 4 +- ...g_payload_metrics_relabel_configs_inner.py | 4 +- ...ape_config_payload_static_configs_inner.py | 4 +- .../observability/models/credentials.py | 4 +- .../models/credentials_remote_write_config.py | 4 +- ...redentials_remote_write_delete_response.py | 4 +- .../models/delete_scrape_config_response.py | 4 +- .../observability/models/email_config.py | 4 +- .../src/stackit/observability/models/error.py | 4 +- .../models/get_alert_configs_response.py | 4 +- .../models/get_credentials_response.py | 4 +- .../models/get_instance_response.py | 4 +- .../get_metrics_storage_retention_response.py | 4 +- .../models/get_scrape_config_response.py | 4 +- .../observability/models/grafana_configs.py | 4 +- .../observability/models/grafana_oauth.py | 4 +- .../observability/models/http_service_sd.py | 4 +- .../observability/models/inhibit_rules.py | 4 +- .../stackit/observability/models/instance.py | 4 +- .../observability/models/instance_response.py | 4 +- .../models/instance_sensitive_data.py | 4 +- .../src/stackit/observability/models/job.py | 4 +- .../observability/models/list_acl_response.py | 4 +- .../models/list_credentials_response.py | 4 +- .../models/list_instances_response.py | 4 +- .../models/list_scrape_configs_response.py | 4 +- .../stackit/observability/models/message.py | 4 +- .../models/metrics_relabel_config.py | 4 +- .../observability/models/model_global.py | 4 +- .../stackit/observability/models/o_auth2.py | 4 +- .../observability/models/opsgenie_config.py | 4 +- .../observability/models/permission_denied.py | 4 +- .../src/stackit/observability/models/plan.py | 4 +- .../observability/models/plan_model.py | 4 +- .../observability/models/plans_response.py | 4 +- .../models/project_instance_full.py | 4 +- .../stackit/observability/models/receiver.py | 4 +- .../stackit/observability/models/receivers.py | 4 +- .../src/stackit/observability/models/route.py | 4 +- .../observability/models/route_serializer.py | 4 +- .../models/scrape_configs_response.py | 4 +- .../observability/models/service_keys_list.py | 4 +- .../observability/models/static_configs.py | 4 +- .../observability/models/tls_config.py | 4 +- .../models/update_acl_payload.py | 4 +- .../update_alert_config_receiver_payload.py | 4 +- .../update_alert_config_route_payload.py | 4 +- .../models/update_alert_configs_payload.py | 4 +- .../update_alert_configs_payload_global.py | 4 +- ...ate_alert_configs_payload_inhibit_rules.py | 4 +- ...e_alert_configs_payload_receivers_inner.py | 4 +- .../update_alert_configs_payload_route.py | 4 +- .../models/update_alert_configs_response.py | 4 +- .../models/update_alertgroup_payload.py | 4 +- .../update_alertgroups_request_inner.py | 4 +- ...e_alertgroups_request_inner_rules_inner.py | 4 +- ...credentials_remote_write_config_payload.py | 4 +- .../models/update_grafana_configs_payload.py | 4 +- ...e_grafana_configs_payload_generic_oauth.py | 4 +- .../models/update_instance_payload.py | 4 +- .../models/update_logs_alertgroup_payload.py | 4 +- ...pdate_metrics_storage_retention_payload.py | 4 +- .../models/update_scrape_config_payload.py | 4 +- ...ape_config_payload_static_configs_inner.py | 4 +- .../stackit/observability/models/web_hook.py | 4 +- .../src/stackit/observability/rest.py | 4 +- 98 files changed, 724 insertions(+), 523 deletions(-) diff --git a/services/observability/src/stackit/observability/__init__.py b/services/observability/src/stackit/observability/__init__.py index 07c3569b..2c06e2ca 100644 --- a/services/observability/src/stackit/observability/__init__.py +++ b/services/observability/src/stackit/observability/__init__.py @@ -12,206 +12,353 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 __version__ = "1.0.0" +# Define package exports +__all__ = [ + "DefaultApi", + "ApiResponse", + "ApiClient", + "HostConfiguration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "Alert", + "AlertConfigReceiversResponse", + "AlertConfigRouteResponse", + "AlertGroup", + "AlertGroupResponse", + "AlertGroupsResponse", + "AlertRule", + "AlertRuleRecord", + "AlertRulesResponse", + "BasicAuth", + "CreateAlertConfigReceiverPayload", + "CreateAlertConfigReceiverPayloadEmailConfigsInner", + "CreateAlertConfigReceiverPayloadOpsgenieConfigsInner", + "CreateAlertConfigReceiverPayloadWebHookConfigsInner", + "CreateAlertConfigRoutePayload", + "CreateAlertConfigRoutePayloadRoutesInner", + "CreateAlertgroupsPayload", + "CreateAlertrulesPayload", + "CreateCredentialsResponse", + "CreateInstancePayload", + "CreateInstanceResponse", + "CreateLogsAlertgroupsPayload", + "CreateScrapeConfigPayload", + "CreateScrapeConfigPayloadBasicAuth", + "CreateScrapeConfigPayloadHttpSdConfigsInner", + "CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2", + "CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig", + "CreateScrapeConfigPayloadMetricsRelabelConfigsInner", + "CreateScrapeConfigPayloadStaticConfigsInner", + "Credentials", + "CredentialsRemoteWriteConfig", + "CredentialsRemoteWriteDeleteResponse", + "DeleteScrapeConfigResponse", + "EmailConfig", + "Error", + "GetAlertConfigsResponse", + "GetCredentialsResponse", + "GetInstanceResponse", + "GetMetricsStorageRetentionResponse", + "GetScrapeConfigResponse", + "GrafanaConfigs", + "GrafanaOauth", + "HTTPServiceSD", + "InhibitRules", + "Instance", + "InstanceResponse", + "InstanceSensitiveData", + "Job", + "ListACLResponse", + "ListCredentialsResponse", + "ListInstancesResponse", + "ListScrapeConfigsResponse", + "Message", + "MetricsRelabelConfig", + "ModelGlobal", + "OAuth2", + "OpsgenieConfig", + "PermissionDenied", + "Plan", + "PlanModel", + "PlansResponse", + "ProjectInstanceFull", + "Receiver", + "Receivers", + "Route", + "RouteSerializer", + "ScrapeConfigsResponse", + "ServiceKeysList", + "StaticConfigs", + "TLSConfig", + "UpdateACLPayload", + "UpdateAlertConfigReceiverPayload", + "UpdateAlertConfigRoutePayload", + "UpdateAlertConfigsPayload", + "UpdateAlertConfigsPayloadGlobal", + "UpdateAlertConfigsPayloadInhibitRules", + "UpdateAlertConfigsPayloadReceiversInner", + "UpdateAlertConfigsPayloadRoute", + "UpdateAlertConfigsResponse", + "UpdateAlertgroupPayload", + "UpdateAlertgroupsRequestInner", + "UpdateAlertgroupsRequestInnerRulesInner", + "UpdateCredentialsRemoteWriteConfigPayload", + "UpdateGrafanaConfigsPayload", + "UpdateGrafanaConfigsPayloadGenericOauth", + "UpdateInstancePayload", + "UpdateLogsAlertgroupPayload", + "UpdateMetricsStorageRetentionPayload", + "UpdateScrapeConfigPayload", + "UpdateScrapeConfigPayloadStaticConfigsInner", + "WebHook", +] + # import apis into sdk package -from stackit.observability.api.default_api import DefaultApi -from stackit.observability.api_client import ApiClient +from stackit.observability.api.default_api import DefaultApi as DefaultApi +from stackit.observability.api_client import ApiClient as ApiClient # import ApiClient -from stackit.observability.api_response import ApiResponse -from stackit.observability.configuration import HostConfiguration -from stackit.observability.exceptions import ( - ApiAttributeError, - ApiException, - ApiKeyError, - ApiTypeError, - ApiValueError, - OpenApiException, -) +from stackit.observability.api_response import ApiResponse as ApiResponse +from stackit.observability.configuration import HostConfiguration as HostConfiguration +from stackit.observability.exceptions import ApiAttributeError as ApiAttributeError +from stackit.observability.exceptions import ApiException as ApiException +from stackit.observability.exceptions import ApiKeyError as ApiKeyError +from stackit.observability.exceptions import ApiTypeError as ApiTypeError +from stackit.observability.exceptions import ApiValueError as ApiValueError +from stackit.observability.exceptions import OpenApiException as OpenApiException # import models into sdk package -from stackit.observability.models.alert import Alert +from stackit.observability.models.alert import Alert as Alert from stackit.observability.models.alert_config_receivers_response import ( - AlertConfigReceiversResponse, + AlertConfigReceiversResponse as AlertConfigReceiversResponse, ) from stackit.observability.models.alert_config_route_response import ( - AlertConfigRouteResponse, -) -from stackit.observability.models.alert_group import AlertGroup -from stackit.observability.models.alert_group_response import AlertGroupResponse -from stackit.observability.models.alert_groups_response import AlertGroupsResponse -from stackit.observability.models.alert_rule import AlertRule -from stackit.observability.models.alert_rule_record import AlertRuleRecord -from stackit.observability.models.alert_rules_response import AlertRulesResponse -from stackit.observability.models.basic_auth import BasicAuth + AlertConfigRouteResponse as AlertConfigRouteResponse, +) +from stackit.observability.models.alert_group import AlertGroup as AlertGroup +from stackit.observability.models.alert_group_response import ( + AlertGroupResponse as AlertGroupResponse, +) +from stackit.observability.models.alert_groups_response import ( + AlertGroupsResponse as AlertGroupsResponse, +) +from stackit.observability.models.alert_rule import AlertRule as AlertRule +from stackit.observability.models.alert_rule_record import ( + AlertRuleRecord as AlertRuleRecord, +) +from stackit.observability.models.alert_rules_response import ( + AlertRulesResponse as AlertRulesResponse, +) +from stackit.observability.models.basic_auth import BasicAuth as BasicAuth from stackit.observability.models.create_alert_config_receiver_payload import ( - CreateAlertConfigReceiverPayload, + CreateAlertConfigReceiverPayload as CreateAlertConfigReceiverPayload, ) from stackit.observability.models.create_alert_config_receiver_payload_email_configs_inner import ( - CreateAlertConfigReceiverPayloadEmailConfigsInner, + CreateAlertConfigReceiverPayloadEmailConfigsInner as CreateAlertConfigReceiverPayloadEmailConfigsInner, ) from stackit.observability.models.create_alert_config_receiver_payload_opsgenie_configs_inner import ( - CreateAlertConfigReceiverPayloadOpsgenieConfigsInner, + CreateAlertConfigReceiverPayloadOpsgenieConfigsInner as CreateAlertConfigReceiverPayloadOpsgenieConfigsInner, ) from stackit.observability.models.create_alert_config_receiver_payload_web_hook_configs_inner import ( - CreateAlertConfigReceiverPayloadWebHookConfigsInner, + CreateAlertConfigReceiverPayloadWebHookConfigsInner as CreateAlertConfigReceiverPayloadWebHookConfigsInner, ) from stackit.observability.models.create_alert_config_route_payload import ( - CreateAlertConfigRoutePayload, + CreateAlertConfigRoutePayload as CreateAlertConfigRoutePayload, ) from stackit.observability.models.create_alert_config_route_payload_routes_inner import ( - CreateAlertConfigRoutePayloadRoutesInner, + CreateAlertConfigRoutePayloadRoutesInner as CreateAlertConfigRoutePayloadRoutesInner, ) from stackit.observability.models.create_alertgroups_payload import ( - CreateAlertgroupsPayload, + CreateAlertgroupsPayload as CreateAlertgroupsPayload, ) from stackit.observability.models.create_alertrules_payload import ( - CreateAlertrulesPayload, + CreateAlertrulesPayload as CreateAlertrulesPayload, ) from stackit.observability.models.create_credentials_response import ( - CreateCredentialsResponse, + CreateCredentialsResponse as CreateCredentialsResponse, +) +from stackit.observability.models.create_instance_payload import ( + CreateInstancePayload as CreateInstancePayload, +) +from stackit.observability.models.create_instance_response import ( + CreateInstanceResponse as CreateInstanceResponse, ) -from stackit.observability.models.create_instance_payload import CreateInstancePayload -from stackit.observability.models.create_instance_response import CreateInstanceResponse from stackit.observability.models.create_logs_alertgroups_payload import ( - CreateLogsAlertgroupsPayload, + CreateLogsAlertgroupsPayload as CreateLogsAlertgroupsPayload, ) from stackit.observability.models.create_scrape_config_payload import ( - CreateScrapeConfigPayload, + CreateScrapeConfigPayload as CreateScrapeConfigPayload, ) from stackit.observability.models.create_scrape_config_payload_basic_auth import ( - CreateScrapeConfigPayloadBasicAuth, + CreateScrapeConfigPayloadBasicAuth as CreateScrapeConfigPayloadBasicAuth, ) from stackit.observability.models.create_scrape_config_payload_http_sd_configs_inner import ( - CreateScrapeConfigPayloadHttpSdConfigsInner, + CreateScrapeConfigPayloadHttpSdConfigsInner as CreateScrapeConfigPayloadHttpSdConfigsInner, ) from stackit.observability.models.create_scrape_config_payload_http_sd_configs_inner_oauth2 import ( - CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2, + CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2 as CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2, ) from stackit.observability.models.create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config import ( - CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig, + CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig as CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig, ) from stackit.observability.models.create_scrape_config_payload_metrics_relabel_configs_inner import ( - CreateScrapeConfigPayloadMetricsRelabelConfigsInner, + CreateScrapeConfigPayloadMetricsRelabelConfigsInner as CreateScrapeConfigPayloadMetricsRelabelConfigsInner, ) from stackit.observability.models.create_scrape_config_payload_static_configs_inner import ( - CreateScrapeConfigPayloadStaticConfigsInner, + CreateScrapeConfigPayloadStaticConfigsInner as CreateScrapeConfigPayloadStaticConfigsInner, ) -from stackit.observability.models.credentials import Credentials +from stackit.observability.models.credentials import Credentials as Credentials from stackit.observability.models.credentials_remote_write_config import ( - CredentialsRemoteWriteConfig, + CredentialsRemoteWriteConfig as CredentialsRemoteWriteConfig, ) from stackit.observability.models.credentials_remote_write_delete_response import ( - CredentialsRemoteWriteDeleteResponse, + CredentialsRemoteWriteDeleteResponse as CredentialsRemoteWriteDeleteResponse, ) from stackit.observability.models.delete_scrape_config_response import ( - DeleteScrapeConfigResponse, + DeleteScrapeConfigResponse as DeleteScrapeConfigResponse, ) -from stackit.observability.models.email_config import EmailConfig -from stackit.observability.models.error import Error +from stackit.observability.models.email_config import EmailConfig as EmailConfig +from stackit.observability.models.error import Error as Error from stackit.observability.models.get_alert_configs_response import ( - GetAlertConfigsResponse, + GetAlertConfigsResponse as GetAlertConfigsResponse, +) +from stackit.observability.models.get_credentials_response import ( + GetCredentialsResponse as GetCredentialsResponse, +) +from stackit.observability.models.get_instance_response import ( + GetInstanceResponse as GetInstanceResponse, ) -from stackit.observability.models.get_credentials_response import GetCredentialsResponse -from stackit.observability.models.get_instance_response import GetInstanceResponse from stackit.observability.models.get_metrics_storage_retention_response import ( - GetMetricsStorageRetentionResponse, + GetMetricsStorageRetentionResponse as GetMetricsStorageRetentionResponse, ) from stackit.observability.models.get_scrape_config_response import ( - GetScrapeConfigResponse, -) -from stackit.observability.models.grafana_configs import GrafanaConfigs -from stackit.observability.models.grafana_oauth import GrafanaOauth -from stackit.observability.models.http_service_sd import HTTPServiceSD -from stackit.observability.models.inhibit_rules import InhibitRules -from stackit.observability.models.instance import Instance -from stackit.observability.models.instance_response import InstanceResponse -from stackit.observability.models.instance_sensitive_data import InstanceSensitiveData -from stackit.observability.models.job import Job -from stackit.observability.models.list_acl_response import ListACLResponse + GetScrapeConfigResponse as GetScrapeConfigResponse, +) +from stackit.observability.models.grafana_configs import ( + GrafanaConfigs as GrafanaConfigs, +) +from stackit.observability.models.grafana_oauth import GrafanaOauth as GrafanaOauth +from stackit.observability.models.http_service_sd import HTTPServiceSD as HTTPServiceSD +from stackit.observability.models.inhibit_rules import InhibitRules as InhibitRules +from stackit.observability.models.instance import Instance as Instance +from stackit.observability.models.instance_response import ( + InstanceResponse as InstanceResponse, +) +from stackit.observability.models.instance_sensitive_data import ( + InstanceSensitiveData as InstanceSensitiveData, +) +from stackit.observability.models.job import Job as Job +from stackit.observability.models.list_acl_response import ( + ListACLResponse as ListACLResponse, +) from stackit.observability.models.list_credentials_response import ( - ListCredentialsResponse, + ListCredentialsResponse as ListCredentialsResponse, +) +from stackit.observability.models.list_instances_response import ( + ListInstancesResponse as ListInstancesResponse, ) -from stackit.observability.models.list_instances_response import ListInstancesResponse from stackit.observability.models.list_scrape_configs_response import ( - ListScrapeConfigsResponse, -) -from stackit.observability.models.message import Message -from stackit.observability.models.metrics_relabel_config import MetricsRelabelConfig -from stackit.observability.models.model_global import ModelGlobal -from stackit.observability.models.o_auth2 import OAuth2 -from stackit.observability.models.opsgenie_config import OpsgenieConfig -from stackit.observability.models.permission_denied import PermissionDenied -from stackit.observability.models.plan import Plan -from stackit.observability.models.plan_model import PlanModel -from stackit.observability.models.plans_response import PlansResponse -from stackit.observability.models.project_instance_full import ProjectInstanceFull -from stackit.observability.models.receiver import Receiver -from stackit.observability.models.receivers import Receivers -from stackit.observability.models.route import Route -from stackit.observability.models.route_serializer import RouteSerializer -from stackit.observability.models.scrape_configs_response import ScrapeConfigsResponse -from stackit.observability.models.service_keys_list import ServiceKeysList -from stackit.observability.models.static_configs import StaticConfigs -from stackit.observability.models.tls_config import TLSConfig -from stackit.observability.models.update_acl_payload import UpdateACLPayload + ListScrapeConfigsResponse as ListScrapeConfigsResponse, +) +from stackit.observability.models.message import Message as Message +from stackit.observability.models.metrics_relabel_config import ( + MetricsRelabelConfig as MetricsRelabelConfig, +) +from stackit.observability.models.model_global import ModelGlobal as ModelGlobal +from stackit.observability.models.o_auth2 import OAuth2 as OAuth2 +from stackit.observability.models.opsgenie_config import ( + OpsgenieConfig as OpsgenieConfig, +) +from stackit.observability.models.permission_denied import ( + PermissionDenied as PermissionDenied, +) +from stackit.observability.models.plan import Plan as Plan +from stackit.observability.models.plan_model import PlanModel as PlanModel +from stackit.observability.models.plans_response import PlansResponse as PlansResponse +from stackit.observability.models.project_instance_full import ( + ProjectInstanceFull as ProjectInstanceFull, +) +from stackit.observability.models.receiver import Receiver as Receiver +from stackit.observability.models.receivers import Receivers as Receivers +from stackit.observability.models.route import Route as Route +from stackit.observability.models.route_serializer import ( + RouteSerializer as RouteSerializer, +) +from stackit.observability.models.scrape_configs_response import ( + ScrapeConfigsResponse as ScrapeConfigsResponse, +) +from stackit.observability.models.service_keys_list import ( + ServiceKeysList as ServiceKeysList, +) +from stackit.observability.models.static_configs import StaticConfigs as StaticConfigs +from stackit.observability.models.tls_config import TLSConfig as TLSConfig +from stackit.observability.models.update_acl_payload import ( + UpdateACLPayload as UpdateACLPayload, +) from stackit.observability.models.update_alert_config_receiver_payload import ( - UpdateAlertConfigReceiverPayload, + UpdateAlertConfigReceiverPayload as UpdateAlertConfigReceiverPayload, ) from stackit.observability.models.update_alert_config_route_payload import ( - UpdateAlertConfigRoutePayload, + UpdateAlertConfigRoutePayload as UpdateAlertConfigRoutePayload, ) from stackit.observability.models.update_alert_configs_payload import ( - UpdateAlertConfigsPayload, + UpdateAlertConfigsPayload as UpdateAlertConfigsPayload, ) from stackit.observability.models.update_alert_configs_payload_global import ( - UpdateAlertConfigsPayloadGlobal, + UpdateAlertConfigsPayloadGlobal as UpdateAlertConfigsPayloadGlobal, ) from stackit.observability.models.update_alert_configs_payload_inhibit_rules import ( - UpdateAlertConfigsPayloadInhibitRules, + UpdateAlertConfigsPayloadInhibitRules as UpdateAlertConfigsPayloadInhibitRules, ) from stackit.observability.models.update_alert_configs_payload_receivers_inner import ( - UpdateAlertConfigsPayloadReceiversInner, + UpdateAlertConfigsPayloadReceiversInner as UpdateAlertConfigsPayloadReceiversInner, ) from stackit.observability.models.update_alert_configs_payload_route import ( - UpdateAlertConfigsPayloadRoute, + UpdateAlertConfigsPayloadRoute as UpdateAlertConfigsPayloadRoute, ) from stackit.observability.models.update_alert_configs_response import ( - UpdateAlertConfigsResponse, + UpdateAlertConfigsResponse as UpdateAlertConfigsResponse, ) from stackit.observability.models.update_alertgroup_payload import ( - UpdateAlertgroupPayload, + UpdateAlertgroupPayload as UpdateAlertgroupPayload, ) from stackit.observability.models.update_alertgroups_request_inner import ( - UpdateAlertgroupsRequestInner, + UpdateAlertgroupsRequestInner as UpdateAlertgroupsRequestInner, ) from stackit.observability.models.update_alertgroups_request_inner_rules_inner import ( - UpdateAlertgroupsRequestInnerRulesInner, + UpdateAlertgroupsRequestInnerRulesInner as UpdateAlertgroupsRequestInnerRulesInner, ) from stackit.observability.models.update_credentials_remote_write_config_payload import ( - UpdateCredentialsRemoteWriteConfigPayload, + UpdateCredentialsRemoteWriteConfigPayload as UpdateCredentialsRemoteWriteConfigPayload, ) from stackit.observability.models.update_grafana_configs_payload import ( - UpdateGrafanaConfigsPayload, + UpdateGrafanaConfigsPayload as UpdateGrafanaConfigsPayload, ) from stackit.observability.models.update_grafana_configs_payload_generic_oauth import ( - UpdateGrafanaConfigsPayloadGenericOauth, + UpdateGrafanaConfigsPayloadGenericOauth as UpdateGrafanaConfigsPayloadGenericOauth, +) +from stackit.observability.models.update_instance_payload import ( + UpdateInstancePayload as UpdateInstancePayload, ) -from stackit.observability.models.update_instance_payload import UpdateInstancePayload from stackit.observability.models.update_logs_alertgroup_payload import ( - UpdateLogsAlertgroupPayload, + UpdateLogsAlertgroupPayload as UpdateLogsAlertgroupPayload, ) from stackit.observability.models.update_metrics_storage_retention_payload import ( - UpdateMetricsStorageRetentionPayload, + UpdateMetricsStorageRetentionPayload as UpdateMetricsStorageRetentionPayload, ) from stackit.observability.models.update_scrape_config_payload import ( - UpdateScrapeConfigPayload, + UpdateScrapeConfigPayload as UpdateScrapeConfigPayload, ) from stackit.observability.models.update_scrape_config_payload_static_configs_inner import ( - UpdateScrapeConfigPayloadStaticConfigsInner, + UpdateScrapeConfigPayloadStaticConfigsInner as UpdateScrapeConfigPayloadStaticConfigsInner, ) -from stackit.observability.models.web_hook import WebHook +from stackit.observability.models.web_hook import WebHook as WebHook diff --git a/services/observability/src/stackit/observability/api/default_api.py b/services/observability/src/stackit/observability/api/default_api.py index bffeac75..8ca22fd8 100644 --- a/services/observability/src/stackit/observability/api/default_api.py +++ b/services/observability/src/stackit/observability/api/default_api.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union @@ -186,7 +186,7 @@ def create_alert_config_receiver( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alert_config_receiver_serialize( instance_id=instance_id, @@ -256,7 +256,7 @@ def create_alert_config_receiver_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alert_config_receiver_serialize( instance_id=instance_id, @@ -326,7 +326,7 @@ def create_alert_config_receiver_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alert_config_receiver_serialize( instance_id=instance_id, @@ -365,7 +365,7 @@ def _create_alert_config_receiver_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -456,7 +456,7 @@ def create_alert_config_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alert_config_route_serialize( instance_id=instance_id, @@ -526,7 +526,7 @@ def create_alert_config_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alert_config_route_serialize( instance_id=instance_id, @@ -596,7 +596,7 @@ def create_alert_config_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alert_config_route_serialize( instance_id=instance_id, @@ -635,7 +635,7 @@ def _create_alert_config_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -726,7 +726,7 @@ def create_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alertgroups_serialize( instance_id=instance_id, @@ -796,7 +796,7 @@ def create_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alertgroups_serialize( instance_id=instance_id, @@ -866,7 +866,7 @@ def create_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alertgroups_serialize( instance_id=instance_id, @@ -905,7 +905,7 @@ def _create_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -999,7 +999,7 @@ def create_alertrules( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alertrules_serialize( group_name=group_name, @@ -1073,7 +1073,7 @@ def create_alertrules_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alertrules_serialize( group_name=group_name, @@ -1147,7 +1147,7 @@ def create_alertrules_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_alertrules_serialize( group_name=group_name, @@ -1188,7 +1188,7 @@ def _create_alertrules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1278,7 +1278,7 @@ def create_credentials( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_credentials_serialize( instance_id=instance_id, @@ -1343,7 +1343,7 @@ def create_credentials_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_credentials_serialize( instance_id=instance_id, @@ -1408,7 +1408,7 @@ def create_credentials_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_credentials_serialize( instance_id=instance_id, @@ -1444,7 +1444,7 @@ def _create_credentials_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1522,7 +1522,7 @@ def create_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, @@ -1588,7 +1588,7 @@ def create_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, @@ -1654,7 +1654,7 @@ def create_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, @@ -1691,7 +1691,7 @@ def _create_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1780,7 +1780,7 @@ def create_logs_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_logs_alertgroups_serialize( instance_id=instance_id, @@ -1850,7 +1850,7 @@ def create_logs_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_logs_alertgroups_serialize( instance_id=instance_id, @@ -1920,7 +1920,7 @@ def create_logs_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_logs_alertgroups_serialize( instance_id=instance_id, @@ -1959,7 +1959,7 @@ def _create_logs_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2050,7 +2050,7 @@ def create_scrape_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_scrape_config_serialize( instance_id=instance_id, @@ -2120,7 +2120,7 @@ def create_scrape_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_scrape_config_serialize( instance_id=instance_id, @@ -2190,7 +2190,7 @@ def create_scrape_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_scrape_config_serialize( instance_id=instance_id, @@ -2229,7 +2229,7 @@ def _create_scrape_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2320,7 +2320,7 @@ def delete_alert_config_receiver( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alert_config_receiver_serialize( instance_id=instance_id, @@ -2390,7 +2390,7 @@ def delete_alert_config_receiver_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alert_config_receiver_serialize( instance_id=instance_id, @@ -2460,7 +2460,7 @@ def delete_alert_config_receiver_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alert_config_receiver_serialize( instance_id=instance_id, @@ -2499,7 +2499,7 @@ def _delete_alert_config_receiver_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2582,7 +2582,7 @@ def delete_alert_config_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alert_config_route_serialize( instance_id=instance_id, @@ -2652,7 +2652,7 @@ def delete_alert_config_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alert_config_route_serialize( instance_id=instance_id, @@ -2722,7 +2722,7 @@ def delete_alert_config_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alert_config_route_serialize( instance_id=instance_id, @@ -2761,7 +2761,7 @@ def _delete_alert_config_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2844,7 +2844,7 @@ def delete_alertgroup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertgroup_serialize( group_name=group_name, @@ -2915,7 +2915,7 @@ def delete_alertgroup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertgroup_serialize( group_name=group_name, @@ -2986,7 +2986,7 @@ def delete_alertgroup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertgroup_serialize( group_name=group_name, @@ -3026,7 +3026,7 @@ def _delete_alertgroup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3109,7 +3109,7 @@ def delete_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertgroups_serialize( instance_id=instance_id, @@ -3178,7 +3178,7 @@ def delete_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertgroups_serialize( instance_id=instance_id, @@ -3247,7 +3247,7 @@ def delete_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertgroups_serialize( instance_id=instance_id, @@ -3287,7 +3287,7 @@ def _delete_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3375,7 +3375,7 @@ def delete_alertrules( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertrules_serialize( group_name=group_name, @@ -3448,7 +3448,7 @@ def delete_alertrules_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertrules_serialize( group_name=group_name, @@ -3521,7 +3521,7 @@ def delete_alertrules_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_alertrules_serialize( group_name=group_name, @@ -3563,7 +3563,7 @@ def _delete_alertrules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3650,7 +3650,7 @@ def delete_credentials( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_credentials_serialize( instance_id=instance_id, @@ -3721,7 +3721,7 @@ def delete_credentials_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_credentials_serialize( instance_id=instance_id, @@ -3792,7 +3792,7 @@ def delete_credentials_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_credentials_serialize( instance_id=instance_id, @@ -3832,7 +3832,7 @@ def _delete_credentials_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3915,7 +3915,7 @@ def delete_credentials_remote_write_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -3987,7 +3987,7 @@ def delete_credentials_remote_write_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -4059,7 +4059,7 @@ def delete_credentials_remote_write_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -4100,7 +4100,7 @@ def _delete_credentials_remote_write_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4180,7 +4180,7 @@ def delete_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( instance_id=instance_id, @@ -4245,7 +4245,7 @@ def delete_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( instance_id=instance_id, @@ -4310,7 +4310,7 @@ def delete_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( instance_id=instance_id, @@ -4346,7 +4346,7 @@ def _delete_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4427,7 +4427,7 @@ def delete_logs_alertgroup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_logs_alertgroup_serialize( group_name=group_name, @@ -4498,7 +4498,7 @@ def delete_logs_alertgroup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_logs_alertgroup_serialize( group_name=group_name, @@ -4569,7 +4569,7 @@ def delete_logs_alertgroup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_logs_alertgroup_serialize( group_name=group_name, @@ -4609,7 +4609,7 @@ def _delete_logs_alertgroup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4692,7 +4692,7 @@ def delete_scrape_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_scrape_config_serialize( instance_id=instance_id, @@ -4762,7 +4762,7 @@ def delete_scrape_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_scrape_config_serialize( instance_id=instance_id, @@ -4832,7 +4832,7 @@ def delete_scrape_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_scrape_config_serialize( instance_id=instance_id, @@ -4871,7 +4871,7 @@ def _delete_scrape_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4954,7 +4954,7 @@ def get_alert_config_receiver( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_config_receiver_serialize( instance_id=instance_id, @@ -5024,7 +5024,7 @@ def get_alert_config_receiver_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_config_receiver_serialize( instance_id=instance_id, @@ -5094,7 +5094,7 @@ def get_alert_config_receiver_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_config_receiver_serialize( instance_id=instance_id, @@ -5133,7 +5133,7 @@ def _get_alert_config_receiver_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5216,7 +5216,7 @@ def get_alert_config_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_config_route_serialize( instance_id=instance_id, @@ -5285,7 +5285,7 @@ def get_alert_config_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_config_route_serialize( instance_id=instance_id, @@ -5354,7 +5354,7 @@ def get_alert_config_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_config_route_serialize( instance_id=instance_id, @@ -5392,7 +5392,7 @@ def _get_alert_config_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5472,7 +5472,7 @@ def get_alert_configs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_configs_serialize( instance_id=instance_id, @@ -5537,7 +5537,7 @@ def get_alert_configs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_configs_serialize( instance_id=instance_id, @@ -5602,7 +5602,7 @@ def get_alert_configs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alert_configs_serialize( instance_id=instance_id, @@ -5638,7 +5638,7 @@ def _get_alert_configs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5719,7 +5719,7 @@ def get_alertgroup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alertgroup_serialize( group_name=group_name, @@ -5790,7 +5790,7 @@ def get_alertgroup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alertgroup_serialize( group_name=group_name, @@ -5861,7 +5861,7 @@ def get_alertgroup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_alertgroup_serialize( group_name=group_name, @@ -5901,7 +5901,7 @@ def _get_alertgroup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5984,7 +5984,7 @@ def get_credentials( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_credentials_serialize( instance_id=instance_id, @@ -6054,7 +6054,7 @@ def get_credentials_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_credentials_serialize( instance_id=instance_id, @@ -6124,7 +6124,7 @@ def get_credentials_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_credentials_serialize( instance_id=instance_id, @@ -6163,7 +6163,7 @@ def _get_credentials_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6246,7 +6246,7 @@ def get_credentials_remote_write_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -6317,7 +6317,7 @@ def get_credentials_remote_write_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -6388,7 +6388,7 @@ def get_credentials_remote_write_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -6428,7 +6428,7 @@ def _get_credentials_remote_write_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6508,7 +6508,7 @@ def get_grafana_configs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_grafana_configs_serialize( instance_id=instance_id, @@ -6573,7 +6573,7 @@ def get_grafana_configs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_grafana_configs_serialize( instance_id=instance_id, @@ -6638,7 +6638,7 @@ def get_grafana_configs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_grafana_configs_serialize( instance_id=instance_id, @@ -6674,7 +6674,7 @@ def _get_grafana_configs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6752,7 +6752,7 @@ def get_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( instance_id=instance_id, @@ -6817,7 +6817,7 @@ def get_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( instance_id=instance_id, @@ -6882,7 +6882,7 @@ def get_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( instance_id=instance_id, @@ -6918,7 +6918,7 @@ def _get_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6999,7 +6999,7 @@ def get_logs_alertgroup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_logs_alertgroup_serialize( group_name=group_name, @@ -7070,7 +7070,7 @@ def get_logs_alertgroup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_logs_alertgroup_serialize( group_name=group_name, @@ -7141,7 +7141,7 @@ def get_logs_alertgroup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_logs_alertgroup_serialize( group_name=group_name, @@ -7181,7 +7181,7 @@ def _get_logs_alertgroup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7261,7 +7261,7 @@ def get_metrics_storage_retention( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_metrics_storage_retention_serialize( instance_id=instance_id, @@ -7326,7 +7326,7 @@ def get_metrics_storage_retention_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_metrics_storage_retention_serialize( instance_id=instance_id, @@ -7391,7 +7391,7 @@ def get_metrics_storage_retention_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_metrics_storage_retention_serialize( instance_id=instance_id, @@ -7427,7 +7427,7 @@ def _get_metrics_storage_retention_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7508,7 +7508,7 @@ def get_scrape_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_scrape_config_serialize( instance_id=instance_id, @@ -7577,7 +7577,7 @@ def get_scrape_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_scrape_config_serialize( instance_id=instance_id, @@ -7646,7 +7646,7 @@ def get_scrape_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_scrape_config_serialize( instance_id=instance_id, @@ -7684,7 +7684,7 @@ def _get_scrape_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7764,7 +7764,7 @@ def list_acl( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_acl_serialize( instance_id=instance_id, @@ -7829,7 +7829,7 @@ def list_acl_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_acl_serialize( instance_id=instance_id, @@ -7894,7 +7894,7 @@ def list_acl_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_acl_serialize( instance_id=instance_id, @@ -7930,7 +7930,7 @@ def _list_acl_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8008,7 +8008,7 @@ def list_alert_config_receivers( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alert_config_receivers_serialize( instance_id=instance_id, @@ -8073,7 +8073,7 @@ def list_alert_config_receivers_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alert_config_receivers_serialize( instance_id=instance_id, @@ -8138,7 +8138,7 @@ def list_alert_config_receivers_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alert_config_receivers_serialize( instance_id=instance_id, @@ -8174,7 +8174,7 @@ def _list_alert_config_receivers_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8252,7 +8252,7 @@ def list_alert_config_routes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alert_config_routes_serialize( instance_id=instance_id, @@ -8317,7 +8317,7 @@ def list_alert_config_routes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alert_config_routes_serialize( instance_id=instance_id, @@ -8382,7 +8382,7 @@ def list_alert_config_routes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alert_config_routes_serialize( instance_id=instance_id, @@ -8418,7 +8418,7 @@ def _list_alert_config_routes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8496,7 +8496,7 @@ def list_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alertgroups_serialize( instance_id=instance_id, @@ -8562,7 +8562,7 @@ def list_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alertgroups_serialize( instance_id=instance_id, @@ -8628,7 +8628,7 @@ def list_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alertgroups_serialize( instance_id=instance_id, @@ -8665,7 +8665,7 @@ def _list_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8746,7 +8746,7 @@ def list_alertrules( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alertrules_serialize( group_name=group_name, @@ -8815,7 +8815,7 @@ def list_alertrules_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alertrules_serialize( group_name=group_name, @@ -8884,7 +8884,7 @@ def list_alertrules_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_alertrules_serialize( group_name=group_name, @@ -8922,7 +8922,7 @@ def _list_alertrules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9002,7 +9002,7 @@ def list_credentials( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_credentials_serialize( instance_id=instance_id, @@ -9067,7 +9067,7 @@ def list_credentials_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_credentials_serialize( instance_id=instance_id, @@ -9132,7 +9132,7 @@ def list_credentials_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_credentials_serialize( instance_id=instance_id, @@ -9168,7 +9168,7 @@ def _list_credentials_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9243,7 +9243,7 @@ def list_instances( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, @@ -9304,7 +9304,7 @@ def list_instances_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, @@ -9365,7 +9365,7 @@ def list_instances_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, @@ -9399,7 +9399,7 @@ def _list_instances_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9475,7 +9475,7 @@ def list_logs_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_logs_alertgroups_serialize( instance_id=instance_id, @@ -9541,7 +9541,7 @@ def list_logs_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_logs_alertgroups_serialize( instance_id=instance_id, @@ -9607,7 +9607,7 @@ def list_logs_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_logs_alertgroups_serialize( instance_id=instance_id, @@ -9644,7 +9644,7 @@ def _list_logs_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9719,7 +9719,7 @@ def list_plans( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_plans_serialize( project_id=project_id, @@ -9780,7 +9780,7 @@ def list_plans_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_plans_serialize( project_id=project_id, @@ -9841,7 +9841,7 @@ def list_plans_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_plans_serialize( project_id=project_id, @@ -9875,7 +9875,7 @@ def _list_plans_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9951,7 +9951,7 @@ def list_scrape_configs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_scrape_configs_serialize( instance_id=instance_id, @@ -10016,7 +10016,7 @@ def list_scrape_configs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_scrape_configs_serialize( instance_id=instance_id, @@ -10081,7 +10081,7 @@ def list_scrape_configs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_scrape_configs_serialize( instance_id=instance_id, @@ -10117,7 +10117,7 @@ def _list_scrape_configs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10198,7 +10198,7 @@ def partial_update_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_alertgroups_serialize( instance_id=instance_id, @@ -10268,7 +10268,7 @@ def partial_update_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_alertgroups_serialize( instance_id=instance_id, @@ -10338,7 +10338,7 @@ def partial_update_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_alertgroups_serialize( instance_id=instance_id, @@ -10379,7 +10379,7 @@ def _partial_update_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10473,7 +10473,7 @@ def partial_update_alertrules( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_alertrules_serialize( group_name=group_name, @@ -10547,7 +10547,7 @@ def partial_update_alertrules_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_alertrules_serialize( group_name=group_name, @@ -10621,7 +10621,7 @@ def partial_update_alertrules_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_alertrules_serialize( group_name=group_name, @@ -10664,7 +10664,7 @@ def _partial_update_alertrules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10757,7 +10757,7 @@ def update_acl( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_acl_serialize( instance_id=instance_id, @@ -10827,7 +10827,7 @@ def update_acl_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_acl_serialize( instance_id=instance_id, @@ -10897,7 +10897,7 @@ def update_acl_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_acl_serialize( instance_id=instance_id, @@ -10936,7 +10936,7 @@ def _update_acl_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11030,7 +11030,7 @@ def update_alert_config_receiver( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_config_receiver_serialize( instance_id=instance_id, @@ -11105,7 +11105,7 @@ def update_alert_config_receiver_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_config_receiver_serialize( instance_id=instance_id, @@ -11180,7 +11180,7 @@ def update_alert_config_receiver_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_config_receiver_serialize( instance_id=instance_id, @@ -11222,7 +11222,7 @@ def _update_alert_config_receiver_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11318,7 +11318,7 @@ def update_alert_config_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_config_route_serialize( instance_id=instance_id, @@ -11393,7 +11393,7 @@ def update_alert_config_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_config_route_serialize( instance_id=instance_id, @@ -11468,7 +11468,7 @@ def update_alert_config_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_config_route_serialize( instance_id=instance_id, @@ -11510,7 +11510,7 @@ def _update_alert_config_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11603,7 +11603,7 @@ def update_alert_configs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_configs_serialize( instance_id=instance_id, @@ -11673,7 +11673,7 @@ def update_alert_configs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_configs_serialize( instance_id=instance_id, @@ -11743,7 +11743,7 @@ def update_alert_configs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alert_configs_serialize( instance_id=instance_id, @@ -11782,7 +11782,7 @@ def _update_alert_configs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11876,7 +11876,7 @@ def update_alertgroup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alertgroup_serialize( group_name=group_name, @@ -11951,7 +11951,7 @@ def update_alertgroup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alertgroup_serialize( group_name=group_name, @@ -12026,7 +12026,7 @@ def update_alertgroup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alertgroup_serialize( group_name=group_name, @@ -12068,7 +12068,7 @@ def _update_alertgroup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12161,7 +12161,7 @@ def update_alertgroups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alertgroups_serialize( instance_id=instance_id, @@ -12231,7 +12231,7 @@ def update_alertgroups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alertgroups_serialize( instance_id=instance_id, @@ -12301,7 +12301,7 @@ def update_alertgroups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_alertgroups_serialize( instance_id=instance_id, @@ -12342,7 +12342,7 @@ def _update_alertgroups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12436,7 +12436,7 @@ def update_credentials_remote_write_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -12512,7 +12512,7 @@ def update_credentials_remote_write_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -12588,7 +12588,7 @@ def update_credentials_remote_write_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_credentials_remote_write_config_serialize( instance_id=instance_id, @@ -12631,7 +12631,7 @@ def _update_credentials_remote_write_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12724,7 +12724,7 @@ def update_grafana_configs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_grafana_configs_serialize( instance_id=instance_id, @@ -12794,7 +12794,7 @@ def update_grafana_configs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_grafana_configs_serialize( instance_id=instance_id, @@ -12864,7 +12864,7 @@ def update_grafana_configs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_grafana_configs_serialize( instance_id=instance_id, @@ -12903,7 +12903,7 @@ def _update_grafana_configs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12994,7 +12994,7 @@ def update_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( instance_id=instance_id, @@ -13064,7 +13064,7 @@ def update_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( instance_id=instance_id, @@ -13134,7 +13134,7 @@ def update_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( instance_id=instance_id, @@ -13173,7 +13173,7 @@ def _update_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13267,7 +13267,7 @@ def update_logs_alertgroup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_logs_alertgroup_serialize( group_name=group_name, @@ -13342,7 +13342,7 @@ def update_logs_alertgroup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_logs_alertgroup_serialize( group_name=group_name, @@ -13417,7 +13417,7 @@ def update_logs_alertgroup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_logs_alertgroup_serialize( group_name=group_name, @@ -13459,7 +13459,7 @@ def _update_logs_alertgroup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13552,7 +13552,7 @@ def update_metrics_storage_retention( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_metrics_storage_retention_serialize( instance_id=instance_id, @@ -13622,7 +13622,7 @@ def update_metrics_storage_retention_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_metrics_storage_retention_serialize( instance_id=instance_id, @@ -13692,7 +13692,7 @@ def update_metrics_storage_retention_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_metrics_storage_retention_serialize( instance_id=instance_id, @@ -13731,7 +13731,7 @@ def _update_metrics_storage_retention_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13825,7 +13825,7 @@ def update_scrape_config( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_scrape_config_serialize( instance_id=instance_id, @@ -13900,7 +13900,7 @@ def update_scrape_config_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_scrape_config_serialize( instance_id=instance_id, @@ -13975,7 +13975,7 @@ def update_scrape_config_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_scrape_config_serialize( instance_id=instance_id, @@ -14017,7 +14017,7 @@ def _update_scrape_config_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/services/observability/src/stackit/observability/api_client.py b/services/observability/src/stackit/observability/api_client.py index ac39e080..baeed1c8 100644 --- a/services/observability/src/stackit/observability/api_client.py +++ b/services/observability/src/stackit/observability/api_client.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import datetime import json @@ -332,6 +332,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()} def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): @@ -351,12 +355,12 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif content_type.startswith("application/json"): + elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif content_type.startswith("text/plain"): + elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): data = response_text else: raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type)) @@ -458,7 +462,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == "multi": - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == "ssv": delimiter = " " @@ -474,7 +478,10 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files: Dict[str, Union[str, bytes]]): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """Builds form parameters. :param files: File parameters. @@ -489,6 +496,12 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): elif isinstance(v, bytes): filename = k filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue else: raise ValueError("Unsupported file value") mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" diff --git a/services/observability/src/stackit/observability/configuration.py b/services/observability/src/stackit/observability/configuration.py index 56e9755a..28e0f2f5 100644 --- a/services/observability/src/stackit/observability/configuration.py +++ b/services/observability/src/stackit/observability/configuration.py @@ -1,10 +1,5 @@ # coding: utf-8 -import sys - -import os - - """ STACKIT Observability API @@ -15,7 +10,29 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 + +import sys +from typing import Dict, List, Optional, TypedDict + +from typing_extensions import NotRequired + +import os + + +ServerVariablesT = Dict[str, str] + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] class HostConfiguration: @@ -54,7 +71,7 @@ def __init__( """Ignore operation servers """ - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -73,7 +90,12 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT] = None, + servers: Optional[List[HostSetting]] = None, + ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value @@ -113,7 +135,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): and variables.get(variable_name) is not None ): raise ValueError( - "this API does not support setting a region in the the client configuration, " + "this API does not support setting a region in the client configuration, " "please check if the region can be specified as a function parameter" ) used_value = variables.get(variable_name, variable["default_value"]) @@ -132,12 +154,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/services/observability/src/stackit/observability/exceptions.py b/services/observability/src/stackit/observability/exceptions.py index 447a22d6..b671cf6e 100644 --- a/services/observability/src/stackit/observability/exceptions.py +++ b/services/observability/src/stackit/observability/exceptions.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Optional @@ -128,7 +128,7 @@ def __init__( if self.body is None: try: self.body = http_resp.data.decode("utf-8") - except Exception: # noqa: S110 + except Exception: pass self.headers = http_resp.getheaders() @@ -152,6 +152,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,18 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/services/observability/src/stackit/observability/models/__init__.py b/services/observability/src/stackit/observability/models/__init__.py index 2b1497a5..88dc8726 100644 --- a/services/observability/src/stackit/observability/models/__init__.py +++ b/services/observability/src/stackit/observability/models/__init__.py @@ -11,7 +11,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 # import models into model package diff --git a/services/observability/src/stackit/observability/models/alert.py b/services/observability/src/stackit/observability/models/alert.py index 815d73ec..a4f3c72b 100644 --- a/services/observability/src/stackit/observability/models/alert.py +++ b/services/observability/src/stackit/observability/models/alert.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -30,7 +30,7 @@ class Alert(BaseModel): """ Alert - """ + """ # noqa: E501 var_global: Optional[ModelGlobal] = Field(default=None, alias="global") inhibit_rules: Optional[List[InhibitRules]] = Field(default=None, alias="inhibitRules") diff --git a/services/observability/src/stackit/observability/models/alert_config_receivers_response.py b/services/observability/src/stackit/observability/models/alert_config_receivers_response.py index 8d8b2b86..995e7632 100644 --- a/services/observability/src/stackit/observability/models/alert_config_receivers_response.py +++ b/services/observability/src/stackit/observability/models/alert_config_receivers_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AlertConfigReceiversResponse(BaseModel): """ AlertConfigReceiversResponse - """ + """ # noqa: E501 data: List[Receivers] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/alert_config_route_response.py b/services/observability/src/stackit/observability/models/alert_config_route_response.py index 2798ab77..2e5eceec 100644 --- a/services/observability/src/stackit/observability/models/alert_config_route_response.py +++ b/services/observability/src/stackit/observability/models/alert_config_route_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AlertConfigRouteResponse(BaseModel): """ AlertConfigRouteResponse - """ + """ # noqa: E501 data: Route message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/alert_group.py b/services/observability/src/stackit/observability/models/alert_group.py index 78f21fbd..9405e4c3 100644 --- a/services/observability/src/stackit/observability/models/alert_group.py +++ b/services/observability/src/stackit/observability/models/alert_group.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AlertGroup(BaseModel): """ AlertGroup - """ + """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = "60s" name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] diff --git a/services/observability/src/stackit/observability/models/alert_group_response.py b/services/observability/src/stackit/observability/models/alert_group_response.py index 39af35bd..f2069074 100644 --- a/services/observability/src/stackit/observability/models/alert_group_response.py +++ b/services/observability/src/stackit/observability/models/alert_group_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AlertGroupResponse(BaseModel): """ AlertGroupResponse - """ + """ # noqa: E501 data: AlertGroup message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/alert_groups_response.py b/services/observability/src/stackit/observability/models/alert_groups_response.py index 0dcd4210..5d94921c 100644 --- a/services/observability/src/stackit/observability/models/alert_groups_response.py +++ b/services/observability/src/stackit/observability/models/alert_groups_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AlertGroupsResponse(BaseModel): """ AlertGroupsResponse - """ + """ # noqa: E501 data: List[AlertGroup] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/alert_rule.py b/services/observability/src/stackit/observability/models/alert_rule.py index fbd889d4..0a1d6549 100644 --- a/services/observability/src/stackit/observability/models/alert_rule.py +++ b/services/observability/src/stackit/observability/models/alert_rule.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class AlertRule(BaseModel): """ AlertRule - """ + """ # noqa: E501 alert: Annotated[str, Field(min_length=1, strict=True, max_length=200)] annotations: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True)]]] = None diff --git a/services/observability/src/stackit/observability/models/alert_rule_record.py b/services/observability/src/stackit/observability/models/alert_rule_record.py index b250147b..ac186ee0 100644 --- a/services/observability/src/stackit/observability/models/alert_rule_record.py +++ b/services/observability/src/stackit/observability/models/alert_rule_record.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class AlertRuleRecord(BaseModel): """ AlertRuleRecord - """ + """ # noqa: E501 alert: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = None annotations: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True)]]] = None diff --git a/services/observability/src/stackit/observability/models/alert_rules_response.py b/services/observability/src/stackit/observability/models/alert_rules_response.py index 35af04a3..ab300a81 100644 --- a/services/observability/src/stackit/observability/models/alert_rules_response.py +++ b/services/observability/src/stackit/observability/models/alert_rules_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AlertRulesResponse(BaseModel): """ AlertRulesResponse - """ + """ # noqa: E501 data: List[AlertRule] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/basic_auth.py b/services/observability/src/stackit/observability/models/basic_auth.py index bfd03e1f..1462ce81 100644 --- a/services/observability/src/stackit/observability/models/basic_auth.py +++ b/services/observability/src/stackit/observability/models/basic_auth.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class BasicAuth(BaseModel): """ BasicAuth - """ + """ # noqa: E501 password: Annotated[str, Field(min_length=1, strict=True, max_length=200)] username: Annotated[str, Field(min_length=1, strict=True, max_length=200)] diff --git a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload.py b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload.py index 3a4b9755..e7a18bd0 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -35,7 +35,7 @@ class CreateAlertConfigReceiverPayload(BaseModel): """ Receivers - """ + """ # noqa: E501 email_configs: Optional[List[CreateAlertConfigReceiverPayloadEmailConfigsInner]] = Field( default=None, description="Email configurations", alias="emailConfigs" diff --git a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_email_configs_inner.py b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_email_configs_inner.py index 02278ed1..42d527e9 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_email_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_email_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateAlertConfigReceiverPayloadEmailConfigsInner(BaseModel): """ CreateAlertConfigReceiverPayloadEmailConfigsInner - """ + """ # noqa: E501 auth_identity: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_opsgenie_configs_inner.py b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_opsgenie_configs_inner.py index d97c9c29..704cdf28 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_opsgenie_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_opsgenie_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateAlertConfigReceiverPayloadOpsgenieConfigsInner(BaseModel): """ CreateAlertConfigReceiverPayloadOpsgenieConfigsInner - """ + """ # noqa: E501 api_key: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py index 9409f802..79a0f412 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel): """ CreateAlertConfigReceiverPayloadWebHookConfigsInner - """ + """ # noqa: E501 ms_teams: Optional[StrictBool] = Field( default=False, diff --git a/services/observability/src/stackit/observability/models/create_alert_config_route_payload.py b/services/observability/src/stackit/observability/models/create_alert_config_route_payload.py index c3c63d00..477e05b8 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_route_payload.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_route_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class CreateAlertConfigRoutePayload(BaseModel): """ The root node of the routing tree. - """ + """ # noqa: E501 var_continue: Optional[StrictBool] = Field( default=False, diff --git a/services/observability/src/stackit/observability/models/create_alert_config_route_payload_routes_inner.py b/services/observability/src/stackit/observability/models/create_alert_config_route_payload_routes_inner.py index 502e8aab..d3b97c16 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_route_payload_routes_inner.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_route_payload_routes_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateAlertConfigRoutePayloadRoutesInner(BaseModel): """ As in one level above - """ + """ # noqa: E501 var_continue: Optional[StrictBool] = Field(default=False, description="As in one level above", alias="continue") group_by: Optional[List[Annotated[str, Field(min_length=1, strict=True, max_length=200)]]] = Field( diff --git a/services/observability/src/stackit/observability/models/create_alertgroups_payload.py b/services/observability/src/stackit/observability/models/create_alertgroups_payload.py index 5e6d5c34..a6ffa1a4 100644 --- a/services/observability/src/stackit/observability/models/create_alertgroups_payload.py +++ b/services/observability/src/stackit/observability/models/create_alertgroups_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class CreateAlertgroupsPayload(BaseModel): """ Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="60s", diff --git a/services/observability/src/stackit/observability/models/create_alertrules_payload.py b/services/observability/src/stackit/observability/models/create_alertrules_payload.py index 94cd5cba..aa659be1 100644 --- a/services/observability/src/stackit/observability/models/create_alertrules_payload.py +++ b/services/observability/src/stackit/observability/models/create_alertrules_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateAlertrulesPayload(BaseModel): """ Alert rule. `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 alert: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field( description="The name of the alert. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9-" diff --git a/services/observability/src/stackit/observability/models/create_credentials_response.py b/services/observability/src/stackit/observability/models/create_credentials_response.py index 40ffabd5..f13ac87d 100644 --- a/services/observability/src/stackit/observability/models/create_credentials_response.py +++ b/services/observability/src/stackit/observability/models/create_credentials_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateCredentialsResponse(BaseModel): """ CreateCredentialsResponse - """ + """ # noqa: E501 credentials: Credentials message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/create_instance_payload.py b/services/observability/src/stackit/observability/models/create_instance_payload.py index 27ad320b..bdd0df64 100644 --- a/services/observability/src/stackit/observability/models/create_instance_payload.py +++ b/services/observability/src/stackit/observability/models/create_instance_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateInstancePayload(BaseModel): """ Create update instance body. - """ + """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, description="Name of the service" diff --git a/services/observability/src/stackit/observability/models/create_instance_response.py b/services/observability/src/stackit/observability/models/create_instance_response.py index f1da7c3d..1b42eda4 100644 --- a/services/observability/src/stackit/observability/models/create_instance_response.py +++ b/services/observability/src/stackit/observability/models/create_instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateInstanceResponse(BaseModel): """ CreateInstanceResponse - """ + """ # noqa: E501 dashboard_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="dashboardUrl") instance_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="instanceId") diff --git a/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py b/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py index 3ab22d6c..d620dc33 100644 --- a/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py +++ b/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class CreateLogsAlertgroupsPayload(BaseModel): """ Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="60s", diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload.py index 03bce281..1c652980 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -53,7 +53,7 @@ class CreateScrapeConfigPayload(BaseModel): """ CreateScrapeConfigPayload - """ + """ # noqa: E501 basic_auth: Optional[CreateScrapeConfigPayloadBasicAuth] = Field(default=None, alias="basicAuth") bearer_token: Optional[StrictStr] = Field( diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload_basic_auth.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload_basic_auth.py index 1c1aec98..0bbeb8b4 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload_basic_auth.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload_basic_auth.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateScrapeConfigPayloadBasicAuth(BaseModel): """ Sets the 'Authorization' header on every scrape request with the configured username and password. `Additional Validators:` * if basicAuth is in the body no other authentication method should be in the body - """ + """ # noqa: E501 password: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, description="password" diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner.py index 0f8e84b4..191d7491 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -35,7 +35,7 @@ class CreateScrapeConfigPayloadHttpSdConfigsInner(BaseModel): """ CreateScrapeConfigPayloadHttpSdConfigsInner - """ + """ # noqa: E501 basic_auth: Optional[CreateScrapeConfigPayloadBasicAuth] = Field(default=None, alias="basicAuth") oauth2: Optional[CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2] = None diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2.py index 6f421889..c1270e5c 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2(BaseModel): """ OAuth 2.0 authentication using the client credentials grant type. Prometheus fetches an access token from the specified endpoint with the given client access and secret keys. `Additional Validators:` * if oauth2 is in the body no other authentication method should be in the body - """ + """ # noqa: E501 client_id: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field( description="clientId", alias="clientId" diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.py index e36ffd5b..9b62fd40 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig(BaseModel): """ Configures the scrape request's TLS settings. - """ + """ # noqa: E501 insecure_skip_verify: Optional[StrictBool] = Field( default=False, description="Disable validation of the server certificate.", alias="insecureSkipVerify" diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload_metrics_relabel_configs_inner.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload_metrics_relabel_configs_inner.py index f74de164..fda5b94f 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload_metrics_relabel_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload_metrics_relabel_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -33,7 +33,7 @@ class CreateScrapeConfigPayloadMetricsRelabelConfigsInner(BaseModel): """ CreateScrapeConfigPayloadMetricsRelabelConfigsInner - """ + """ # noqa: E501 action: Optional[StrictStr] = Field( default="replace", diff --git a/services/observability/src/stackit/observability/models/create_scrape_config_payload_static_configs_inner.py b/services/observability/src/stackit/observability/models/create_scrape_config_payload_static_configs_inner.py index ca376f39..d99dbddb 100644 --- a/services/observability/src/stackit/observability/models/create_scrape_config_payload_static_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_scrape_config_payload_static_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateScrapeConfigPayloadStaticConfigsInner(BaseModel): """ CreateScrapeConfigPayloadStaticConfigsInner - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/credentials.py b/services/observability/src/stackit/observability/models/credentials.py index f5781b10..5836e646 100644 --- a/services/observability/src/stackit/observability/models/credentials.py +++ b/services/observability/src/stackit/observability/models/credentials.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Credentials(BaseModel): """ Credentials - """ + """ # noqa: E501 password: Annotated[str, Field(min_length=1, strict=True)] username: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/credentials_remote_write_config.py b/services/observability/src/stackit/observability/models/credentials_remote_write_config.py index 325b22ec..ac47031f 100644 --- a/services/observability/src/stackit/observability/models/credentials_remote_write_config.py +++ b/services/observability/src/stackit/observability/models/credentials_remote_write_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CredentialsRemoteWriteConfig(BaseModel): """ CredentialsRemoteWriteConfig - """ + """ # noqa: E501 credentials_max_limit: Annotated[int, Field(le=6000000, strict=True, ge=0)] = Field(alias="credentialsMaxLimit") max_limit: Annotated[int, Field(le=6000000, strict=True, ge=0)] = Field(alias="maxLimit") diff --git a/services/observability/src/stackit/observability/models/credentials_remote_write_delete_response.py b/services/observability/src/stackit/observability/models/credentials_remote_write_delete_response.py index 41946631..5f314dfa 100644 --- a/services/observability/src/stackit/observability/models/credentials_remote_write_delete_response.py +++ b/services/observability/src/stackit/observability/models/credentials_remote_write_delete_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CredentialsRemoteWriteDeleteResponse(BaseModel): """ CredentialsRemoteWriteDeleteResponse - """ + """ # noqa: E501 max_limit: Annotated[int, Field(le=6000000, strict=True, ge=0)] = Field(alias="maxLimit") message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/delete_scrape_config_response.py b/services/observability/src/stackit/observability/models/delete_scrape_config_response.py index bb58f8fe..dd800abb 100644 --- a/services/observability/src/stackit/observability/models/delete_scrape_config_response.py +++ b/services/observability/src/stackit/observability/models/delete_scrape_config_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class DeleteScrapeConfigResponse(BaseModel): """ DeleteScrapeConfigResponse - """ + """ # noqa: E501 data: List[Job] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/email_config.py b/services/observability/src/stackit/observability/models/email_config.py index 55abd07c..dca92e68 100644 --- a/services/observability/src/stackit/observability/models/email_config.py +++ b/services/observability/src/stackit/observability/models/email_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class EmailConfig(BaseModel): """ EmailConfig - """ + """ # noqa: E501 auth_identity: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, alias="authIdentity" diff --git a/services/observability/src/stackit/observability/models/error.py b/services/observability/src/stackit/observability/models/error.py index 3c5bb9d7..8f04197f 100644 --- a/services/observability/src/stackit/observability/models/error.py +++ b/services/observability/src/stackit/observability/models/error.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Error(BaseModel): """ Error - """ + """ # noqa: E501 errors: Optional[List[Dict[str, Optional[StrictStr]]]] = None message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/get_alert_configs_response.py b/services/observability/src/stackit/observability/models/get_alert_configs_response.py index 6900d868..8534b2f0 100644 --- a/services/observability/src/stackit/observability/models/get_alert_configs_response.py +++ b/services/observability/src/stackit/observability/models/get_alert_configs_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GetAlertConfigsResponse(BaseModel): """ GetAlertConfigsResponse - """ + """ # noqa: E501 data: Alert message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/get_credentials_response.py b/services/observability/src/stackit/observability/models/get_credentials_response.py index b9af79e8..a53cb023 100644 --- a/services/observability/src/stackit/observability/models/get_credentials_response.py +++ b/services/observability/src/stackit/observability/models/get_credentials_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class GetCredentialsResponse(BaseModel): """ GetCredentialsResponse - """ + """ # noqa: E501 credentials_info: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, alias="credentialsInfo") id: Annotated[str, Field(min_length=1, strict=True, max_length=200)] diff --git a/services/observability/src/stackit/observability/models/get_instance_response.py b/services/observability/src/stackit/observability/models/get_instance_response.py index 02fad79d..86c55e67 100644 --- a/services/observability/src/stackit/observability/models/get_instance_response.py +++ b/services/observability/src/stackit/observability/models/get_instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -34,7 +34,7 @@ class GetInstanceResponse(BaseModel): """ GetInstanceResponse - """ + """ # noqa: E501 dashboard_url: Annotated[str, Field(min_length=1, strict=True, max_length=500)] = Field(alias="dashboardUrl") error: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = None diff --git a/services/observability/src/stackit/observability/models/get_metrics_storage_retention_response.py b/services/observability/src/stackit/observability/models/get_metrics_storage_retention_response.py index 1862e457..933549f9 100644 --- a/services/observability/src/stackit/observability/models/get_metrics_storage_retention_response.py +++ b/services/observability/src/stackit/observability/models/get_metrics_storage_retention_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class GetMetricsStorageRetentionResponse(BaseModel): """ GetMetricsStorageRetentionResponse - """ + """ # noqa: E501 message: Annotated[str, Field(min_length=1, strict=True)] metrics_retention_time1h: Annotated[str, Field(min_length=2, strict=True, max_length=8)] = Field( diff --git a/services/observability/src/stackit/observability/models/get_scrape_config_response.py b/services/observability/src/stackit/observability/models/get_scrape_config_response.py index 35b8a844..a79389e5 100644 --- a/services/observability/src/stackit/observability/models/get_scrape_config_response.py +++ b/services/observability/src/stackit/observability/models/get_scrape_config_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GetScrapeConfigResponse(BaseModel): """ GetScrapeConfigResponse - """ + """ # noqa: E501 data: Job message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/grafana_configs.py b/services/observability/src/stackit/observability/models/grafana_configs.py index 0852d08e..7dce48af 100644 --- a/services/observability/src/stackit/observability/models/grafana_configs.py +++ b/services/observability/src/stackit/observability/models/grafana_configs.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GrafanaConfigs(BaseModel): """ GrafanaConfigs - """ + """ # noqa: E501 generic_oauth: Optional[GrafanaOauth] = Field(default=None, alias="genericOauth") message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/grafana_oauth.py b/services/observability/src/stackit/observability/models/grafana_oauth.py index 2f647993..2513d97f 100644 --- a/services/observability/src/stackit/observability/models/grafana_oauth.py +++ b/services/observability/src/stackit/observability/models/grafana_oauth.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class GrafanaOauth(BaseModel): """ GrafanaOauth - """ + """ # noqa: E501 api_url: Annotated[str, Field(min_length=1, strict=True, max_length=300)] = Field(alias="apiUrl") auth_url: Annotated[str, Field(min_length=1, strict=True, max_length=300)] = Field(alias="authUrl") diff --git a/services/observability/src/stackit/observability/models/http_service_sd.py b/services/observability/src/stackit/observability/models/http_service_sd.py index 548938f1..6a6d4e27 100644 --- a/services/observability/src/stackit/observability/models/http_service_sd.py +++ b/services/observability/src/stackit/observability/models/http_service_sd.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class HTTPServiceSD(BaseModel): """ HTTPServiceSD - """ + """ # noqa: E501 basic_auth: Optional[BasicAuth] = Field(default=None, alias="basicAuth") oauth2: Optional[OAuth2] = None diff --git a/services/observability/src/stackit/observability/models/inhibit_rules.py b/services/observability/src/stackit/observability/models/inhibit_rules.py index 593b1218..3be92229 100644 --- a/services/observability/src/stackit/observability/models/inhibit_rules.py +++ b/services/observability/src/stackit/observability/models/inhibit_rules.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InhibitRules(BaseModel): """ InhibitRules - """ + """ # noqa: E501 equal: Optional[ Annotated[List[Annotated[str, Field(min_length=1, strict=True, max_length=200)]], Field(max_length=10)] diff --git a/services/observability/src/stackit/observability/models/instance.py b/services/observability/src/stackit/observability/models/instance.py index 85baa055..e5f08d90 100644 --- a/services/observability/src/stackit/observability/models/instance.py +++ b/services/observability/src/stackit/observability/models/instance.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -34,7 +34,7 @@ class Instance(BaseModel): """ Instance - """ + """ # noqa: E501 cluster: Annotated[str, Field(min_length=1, strict=True, max_length=63)] grafana_public_read_access: StrictBool = Field(alias="grafanaPublicReadAccess") diff --git a/services/observability/src/stackit/observability/models/instance_response.py b/services/observability/src/stackit/observability/models/instance_response.py index 276eb515..f7835c99 100644 --- a/services/observability/src/stackit/observability/models/instance_response.py +++ b/services/observability/src/stackit/observability/models/instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceResponse(BaseModel): """ InstanceResponse - """ + """ # noqa: E501 message: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["message"] diff --git a/services/observability/src/stackit/observability/models/instance_sensitive_data.py b/services/observability/src/stackit/observability/models/instance_sensitive_data.py index 1f4ff9d0..b56588ac 100644 --- a/services/observability/src/stackit/observability/models/instance_sensitive_data.py +++ b/services/observability/src/stackit/observability/models/instance_sensitive_data.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class InstanceSensitiveData(BaseModel): """ InstanceSensitiveData - """ + """ # noqa: E501 alerting_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="alertingUrl") cluster: Annotated[str, Field(min_length=1, strict=True, max_length=63)] diff --git a/services/observability/src/stackit/observability/models/job.py b/services/observability/src/stackit/observability/models/job.py index fca091d1..0a8956ec 100644 --- a/services/observability/src/stackit/observability/models/job.py +++ b/services/observability/src/stackit/observability/models/job.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -39,7 +39,7 @@ class Job(BaseModel): """ Job - """ + """ # noqa: E501 basic_auth: Optional[BasicAuth] = Field(default=None, alias="basicAuth") bearer_token: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, alias="bearerToken") diff --git a/services/observability/src/stackit/observability/models/list_acl_response.py b/services/observability/src/stackit/observability/models/list_acl_response.py index e0994ef9..c977d3ce 100644 --- a/services/observability/src/stackit/observability/models/list_acl_response.py +++ b/services/observability/src/stackit/observability/models/list_acl_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ListACLResponse(BaseModel): """ ListACLResponse - """ + """ # noqa: E501 acl: List[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/list_credentials_response.py b/services/observability/src/stackit/observability/models/list_credentials_response.py index 99a6e9d5..7f11beb9 100644 --- a/services/observability/src/stackit/observability/models/list_credentials_response.py +++ b/services/observability/src/stackit/observability/models/list_credentials_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListCredentialsResponse(BaseModel): """ ListCredentialsResponse - """ + """ # noqa: E501 credentials: List[ServiceKeysList] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/list_instances_response.py b/services/observability/src/stackit/observability/models/list_instances_response.py index 165824b5..8d1081a1 100644 --- a/services/observability/src/stackit/observability/models/list_instances_response.py +++ b/services/observability/src/stackit/observability/models/list_instances_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListInstancesResponse(BaseModel): """ ListInstancesResponse - """ + """ # noqa: E501 instances: List[ProjectInstanceFull] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/list_scrape_configs_response.py b/services/observability/src/stackit/observability/models/list_scrape_configs_response.py index 18dc422e..a39f1ccd 100644 --- a/services/observability/src/stackit/observability/models/list_scrape_configs_response.py +++ b/services/observability/src/stackit/observability/models/list_scrape_configs_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListScrapeConfigsResponse(BaseModel): """ ListScrapeConfigsResponse - """ + """ # noqa: E501 data: List[Job] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/message.py b/services/observability/src/stackit/observability/models/message.py index 809fa782..4bdc419d 100644 --- a/services/observability/src/stackit/observability/models/message.py +++ b/services/observability/src/stackit/observability/models/message.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Message(BaseModel): """ Message - """ + """ # noqa: E501 message: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["message"] diff --git a/services/observability/src/stackit/observability/models/metrics_relabel_config.py b/services/observability/src/stackit/observability/models/metrics_relabel_config.py index 3a3360aa..3349fa34 100644 --- a/services/observability/src/stackit/observability/models/metrics_relabel_config.py +++ b/services/observability/src/stackit/observability/models/metrics_relabel_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class MetricsRelabelConfig(BaseModel): """ MetricsRelabelConfig - """ + """ # noqa: E501 action: Optional[StrictStr] = "replace" modulus: Optional[Annotated[int, Field(le=200, strict=True)]] = None diff --git a/services/observability/src/stackit/observability/models/model_global.py b/services/observability/src/stackit/observability/models/model_global.py index 2bda3b22..9ddb3746 100644 --- a/services/observability/src/stackit/observability/models/model_global.py +++ b/services/observability/src/stackit/observability/models/model_global.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ModelGlobal(BaseModel): """ ModelGlobal - """ + """ # noqa: E501 opsgenie_api_key: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, alias="opsgenieApiKey" diff --git a/services/observability/src/stackit/observability/models/o_auth2.py b/services/observability/src/stackit/observability/models/o_auth2.py index 7c4241f9..4adec4cb 100644 --- a/services/observability/src/stackit/observability/models/o_auth2.py +++ b/services/observability/src/stackit/observability/models/o_auth2.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class OAuth2(BaseModel): """ OAuth2 - """ + """ # noqa: E501 client_id: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(alias="clientId") client_secret: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field(alias="clientSecret") diff --git a/services/observability/src/stackit/observability/models/opsgenie_config.py b/services/observability/src/stackit/observability/models/opsgenie_config.py index 97c34b5f..0fcc786f 100644 --- a/services/observability/src/stackit/observability/models/opsgenie_config.py +++ b/services/observability/src/stackit/observability/models/opsgenie_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class OpsgenieConfig(BaseModel): """ OpsgenieConfig - """ + """ # noqa: E501 api_key: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, alias="apiKey" diff --git a/services/observability/src/stackit/observability/models/permission_denied.py b/services/observability/src/stackit/observability/models/permission_denied.py index 642f3814..71dc55d6 100644 --- a/services/observability/src/stackit/observability/models/permission_denied.py +++ b/services/observability/src/stackit/observability/models/permission_denied.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class PermissionDenied(BaseModel): """ PermissionDenied - """ + """ # noqa: E501 detail: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["detail"] diff --git a/services/observability/src/stackit/observability/models/plan.py b/services/observability/src/stackit/observability/models/plan.py index 1571c62b..08b99c3a 100644 --- a/services/observability/src/stackit/observability/models/plan.py +++ b/services/observability/src/stackit/observability/models/plan.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Plan(BaseModel): """ Plan - """ + """ # noqa: E501 alert_matchers: StrictInt = Field(alias="alertMatchers") alert_receivers: StrictInt = Field(alias="alertReceivers") diff --git a/services/observability/src/stackit/observability/models/plan_model.py b/services/observability/src/stackit/observability/models/plan_model.py index 96312320..80637429 100644 --- a/services/observability/src/stackit/observability/models/plan_model.py +++ b/services/observability/src/stackit/observability/models/plan_model.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class PlanModel(BaseModel): """ PlanModel - """ + """ # noqa: E501 alert_matchers: StrictInt = Field(alias="alertMatchers") alert_receivers: StrictInt = Field(alias="alertReceivers") diff --git a/services/observability/src/stackit/observability/models/plans_response.py b/services/observability/src/stackit/observability/models/plans_response.py index 2e968685..e65a6c08 100644 --- a/services/observability/src/stackit/observability/models/plans_response.py +++ b/services/observability/src/stackit/observability/models/plans_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class PlansResponse(BaseModel): """ PlansResponse - """ + """ # noqa: E501 message: Annotated[str, Field(min_length=1, strict=True)] plans: List[Plan] diff --git a/services/observability/src/stackit/observability/models/project_instance_full.py b/services/observability/src/stackit/observability/models/project_instance_full.py index 0c2713e5..28ec205f 100644 --- a/services/observability/src/stackit/observability/models/project_instance_full.py +++ b/services/observability/src/stackit/observability/models/project_instance_full.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ProjectInstanceFull(BaseModel): """ ProjectInstanceFull - """ + """ # noqa: E501 error: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = None id: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/receiver.py b/services/observability/src/stackit/observability/models/receiver.py index 060e6077..28ed13c2 100644 --- a/services/observability/src/stackit/observability/models/receiver.py +++ b/services/observability/src/stackit/observability/models/receiver.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class Receiver(BaseModel): """ Receiver - """ + """ # noqa: E501 data: Receivers message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/receivers.py b/services/observability/src/stackit/observability/models/receivers.py index c75dc8ab..419d97fa 100644 --- a/services/observability/src/stackit/observability/models/receivers.py +++ b/services/observability/src/stackit/observability/models/receivers.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class Receivers(BaseModel): """ Receivers - """ + """ # noqa: E501 email_configs: Optional[List[EmailConfig]] = Field(default=None, alias="emailConfigs") name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] diff --git a/services/observability/src/stackit/observability/models/route.py b/services/observability/src/stackit/observability/models/route.py index 098b369e..765eacdd 100644 --- a/services/observability/src/stackit/observability/models/route.py +++ b/services/observability/src/stackit/observability/models/route.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class Route(BaseModel): """ Route - """ + """ # noqa: E501 var_continue: Optional[StrictBool] = Field(default=False, alias="continue") group_by: Optional[ diff --git a/services/observability/src/stackit/observability/models/route_serializer.py b/services/observability/src/stackit/observability/models/route_serializer.py index 93f25b22..e6abf232 100644 --- a/services/observability/src/stackit/observability/models/route_serializer.py +++ b/services/observability/src/stackit/observability/models/route_serializer.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class RouteSerializer(BaseModel): """ RouteSerializer - """ + """ # noqa: E501 var_continue: Optional[StrictBool] = Field(default=False, alias="continue") group_by: Optional[ diff --git a/services/observability/src/stackit/observability/models/scrape_configs_response.py b/services/observability/src/stackit/observability/models/scrape_configs_response.py index 5f12f852..b9fd95b9 100644 --- a/services/observability/src/stackit/observability/models/scrape_configs_response.py +++ b/services/observability/src/stackit/observability/models/scrape_configs_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ScrapeConfigsResponse(BaseModel): """ ScrapeConfigsResponse - """ + """ # noqa: E501 data: List[Job] message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/service_keys_list.py b/services/observability/src/stackit/observability/models/service_keys_list.py index 3c5fe3b9..bad3ed68 100644 --- a/services/observability/src/stackit/observability/models/service_keys_list.py +++ b/services/observability/src/stackit/observability/models/service_keys_list.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ServiceKeysList(BaseModel): """ ServiceKeysList - """ + """ # noqa: E501 credentials_info: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, alias="credentialsInfo") id: Annotated[str, Field(min_length=1, strict=True, max_length=200)] diff --git a/services/observability/src/stackit/observability/models/static_configs.py b/services/observability/src/stackit/observability/models/static_configs.py index 97ddb520..1e7fe41d 100644 --- a/services/observability/src/stackit/observability/models/static_configs.py +++ b/services/observability/src/stackit/observability/models/static_configs.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class StaticConfigs(BaseModel): """ StaticConfigs - """ + """ # noqa: E501 labels: Optional[Dict[str, Annotated[str, Field(min_length=1, strict=True)]]] = None targets: List[Annotated[str, Field(min_length=1, strict=True, max_length=400)]] diff --git a/services/observability/src/stackit/observability/models/tls_config.py b/services/observability/src/stackit/observability/models/tls_config.py index de424ece..f65a9a07 100644 --- a/services/observability/src/stackit/observability/models/tls_config.py +++ b/services/observability/src/stackit/observability/models/tls_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class TLSConfig(BaseModel): """ TLSConfig - """ + """ # noqa: E501 insecure_skip_verify: Optional[StrictBool] = Field(default=False, alias="insecureSkipVerify") __properties: ClassVar[List[str]] = ["insecureSkipVerify"] diff --git a/services/observability/src/stackit/observability/models/update_acl_payload.py b/services/observability/src/stackit/observability/models/update_acl_payload.py index f1572474..aacccfc1 100644 --- a/services/observability/src/stackit/observability/models/update_acl_payload.py +++ b/services/observability/src/stackit/observability/models/update_acl_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateACLPayload(BaseModel): """ List of cidr. Send empty string to remove acl. - """ + """ # noqa: E501 acl: List[Annotated[str, Field(strict=True, max_length=100)]] = Field(description="list of cidr") __properties: ClassVar[List[str]] = ["acl"] diff --git a/services/observability/src/stackit/observability/models/update_alert_config_receiver_payload.py b/services/observability/src/stackit/observability/models/update_alert_config_receiver_payload.py index c1ecff13..a545fd2c 100644 --- a/services/observability/src/stackit/observability/models/update_alert_config_receiver_payload.py +++ b/services/observability/src/stackit/observability/models/update_alert_config_receiver_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -35,7 +35,7 @@ class UpdateAlertConfigReceiverPayload(BaseModel): """ Receivers - """ + """ # noqa: E501 email_configs: Optional[List[CreateAlertConfigReceiverPayloadEmailConfigsInner]] = Field( default=None, description="Email configurations", alias="emailConfigs" diff --git a/services/observability/src/stackit/observability/models/update_alert_config_route_payload.py b/services/observability/src/stackit/observability/models/update_alert_config_route_payload.py index f6785939..bc06d189 100644 --- a/services/observability/src/stackit/observability/models/update_alert_config_route_payload.py +++ b/services/observability/src/stackit/observability/models/update_alert_config_route_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class UpdateAlertConfigRoutePayload(BaseModel): """ The root node of the routing tree. - """ + """ # noqa: E501 var_continue: Optional[StrictBool] = Field( default=False, diff --git a/services/observability/src/stackit/observability/models/update_alert_configs_payload.py b/services/observability/src/stackit/observability/models/update_alert_configs_payload.py index 73861b46..e7047205 100644 --- a/services/observability/src/stackit/observability/models/update_alert_configs_payload.py +++ b/services/observability/src/stackit/observability/models/update_alert_configs_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -38,7 +38,7 @@ class UpdateAlertConfigsPayload(BaseModel): """ Alert config - """ + """ # noqa: E501 var_global: Optional[UpdateAlertConfigsPayloadGlobal] = Field(default=None, alias="global") inhibit_rules: Optional[UpdateAlertConfigsPayloadInhibitRules] = Field(default=None, alias="inhibitRules") diff --git a/services/observability/src/stackit/observability/models/update_alert_configs_payload_global.py b/services/observability/src/stackit/observability/models/update_alert_configs_payload_global.py index b001f804..fd2bff10 100644 --- a/services/observability/src/stackit/observability/models/update_alert_configs_payload_global.py +++ b/services/observability/src/stackit/observability/models/update_alert_configs_payload_global.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateAlertConfigsPayloadGlobal(BaseModel): """ Global config. If nothing passed the default argus config will be used. - """ + """ # noqa: E501 opsgenie_api_key: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/update_alert_configs_payload_inhibit_rules.py b/services/observability/src/stackit/observability/models/update_alert_configs_payload_inhibit_rules.py index e94cea13..f8e22046 100644 --- a/services/observability/src/stackit/observability/models/update_alert_configs_payload_inhibit_rules.py +++ b/services/observability/src/stackit/observability/models/update_alert_configs_payload_inhibit_rules.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateAlertConfigsPayloadInhibitRules(BaseModel): """ A list of inhibition rules. - """ + """ # noqa: E501 equal: Optional[List[Annotated[str, Field(min_length=1, strict=True, max_length=200)]]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/update_alert_configs_payload_receivers_inner.py b/services/observability/src/stackit/observability/models/update_alert_configs_payload_receivers_inner.py index 3c097250..bd5ab5a5 100644 --- a/services/observability/src/stackit/observability/models/update_alert_configs_payload_receivers_inner.py +++ b/services/observability/src/stackit/observability/models/update_alert_configs_payload_receivers_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -35,7 +35,7 @@ class UpdateAlertConfigsPayloadReceiversInner(BaseModel): """ Receivers - """ + """ # noqa: E501 email_configs: Optional[List[CreateAlertConfigReceiverPayloadEmailConfigsInner]] = Field( default=None, description="Email configurations", alias="emailConfigs" diff --git a/services/observability/src/stackit/observability/models/update_alert_configs_payload_route.py b/services/observability/src/stackit/observability/models/update_alert_configs_payload_route.py index 132a4903..fa3616e2 100644 --- a/services/observability/src/stackit/observability/models/update_alert_configs_payload_route.py +++ b/services/observability/src/stackit/observability/models/update_alert_configs_payload_route.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class UpdateAlertConfigsPayloadRoute(BaseModel): """ The root node of the routing tree. - """ + """ # noqa: E501 var_continue: Optional[StrictBool] = Field( default=False, diff --git a/services/observability/src/stackit/observability/models/update_alert_configs_response.py b/services/observability/src/stackit/observability/models/update_alert_configs_response.py index de8f1610..9d955fca 100644 --- a/services/observability/src/stackit/observability/models/update_alert_configs_response.py +++ b/services/observability/src/stackit/observability/models/update_alert_configs_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class UpdateAlertConfigsResponse(BaseModel): """ UpdateAlertConfigsResponse - """ + """ # noqa: E501 data: Alert message: Annotated[str, Field(min_length=1, strict=True)] diff --git a/services/observability/src/stackit/observability/models/update_alertgroup_payload.py b/services/observability/src/stackit/observability/models/update_alertgroup_payload.py index b387f61f..8a74a297 100644 --- a/services/observability/src/stackit/observability/models/update_alertgroup_payload.py +++ b/services/observability/src/stackit/observability/models/update_alertgroup_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class UpdateAlertgroupPayload(BaseModel): """ Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="60s", diff --git a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py index 7ee1ed1e..0fd8000b 100644 --- a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py +++ b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class UpdateAlertgroupsRequestInner(BaseModel): """ Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="60s", diff --git a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py index 0c0796cf..97c6ad3a 100644 --- a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py +++ b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateAlertgroupsRequestInnerRulesInner(BaseModel): """ Alert rule. `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 alert: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field( description="The name of the alert. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9-" diff --git a/services/observability/src/stackit/observability/models/update_credentials_remote_write_config_payload.py b/services/observability/src/stackit/observability/models/update_credentials_remote_write_config_payload.py index bbd61177..c2827dec 100644 --- a/services/observability/src/stackit/observability/models/update_credentials_remote_write_config_payload.py +++ b/services/observability/src/stackit/observability/models/update_credentials_remote_write_config_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateCredentialsRemoteWriteConfigPayload(BaseModel): """ Remote write limit config. - """ + """ # noqa: E501 max_limit: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/update_grafana_configs_payload.py b/services/observability/src/stackit/observability/models/update_grafana_configs_payload.py index d7fd370b..3dba7b3f 100644 --- a/services/observability/src/stackit/observability/models/update_grafana_configs_payload.py +++ b/services/observability/src/stackit/observability/models/update_grafana_configs_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class UpdateGrafanaConfigsPayload(BaseModel): """ Sending any of the attributes results in a set of the attribute and overwrites any previous configuration. - """ + """ # noqa: E501 generic_oauth: Optional[UpdateGrafanaConfigsPayloadGenericOauth] = Field(default=None, alias="genericOauth") public_read_access: Optional[StrictBool] = Field( diff --git a/services/observability/src/stackit/observability/models/update_grafana_configs_payload_generic_oauth.py b/services/observability/src/stackit/observability/models/update_grafana_configs_payload_generic_oauth.py index b0e8b9ae..fdb02e5f 100644 --- a/services/observability/src/stackit/observability/models/update_grafana_configs_payload_generic_oauth.py +++ b/services/observability/src/stackit/observability/models/update_grafana_configs_payload_generic_oauth.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateGrafanaConfigsPayloadGenericOauth(BaseModel): """ UpdateGrafanaConfigsPayloadGenericOauth - """ + """ # noqa: E501 api_url: StrictStr = Field( description="Set api_url to the resource that returns OpenID UserInfo compatible information.", alias="apiUrl" diff --git a/services/observability/src/stackit/observability/models/update_instance_payload.py b/services/observability/src/stackit/observability/models/update_instance_payload.py index ba6e26b2..eb13a810 100644 --- a/services/observability/src/stackit/observability/models/update_instance_payload.py +++ b/services/observability/src/stackit/observability/models/update_instance_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateInstancePayload(BaseModel): """ Create update instance body. - """ + """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( default=None, description="Name of the service" diff --git a/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py b/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py index e7b9b823..5971c7e5 100644 --- a/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py +++ b/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class UpdateLogsAlertgroupPayload(BaseModel): """ Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. - """ + """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="60s", diff --git a/services/observability/src/stackit/observability/models/update_metrics_storage_retention_payload.py b/services/observability/src/stackit/observability/models/update_metrics_storage_retention_payload.py index 765b723d..589a4327 100644 --- a/services/observability/src/stackit/observability/models/update_metrics_storage_retention_payload.py +++ b/services/observability/src/stackit/observability/models/update_metrics_storage_retention_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateMetricsStorageRetentionPayload(BaseModel): """ UpdateMetricsStorageRetentionPayload - """ + """ # noqa: E501 metrics_retention_time1h: Annotated[str, Field(min_length=2, strict=True, max_length=8)] = Field( description="Retention time of longtime storage of 1h sampled data. After that time the data will be deleted permanently. `Additional Validators:` * Should be a valid time string * Should not be bigger than metricsRetentionTime5m", diff --git a/services/observability/src/stackit/observability/models/update_scrape_config_payload.py b/services/observability/src/stackit/observability/models/update_scrape_config_payload.py index 8879f2fa..7ef271f4 100644 --- a/services/observability/src/stackit/observability/models/update_scrape_config_payload.py +++ b/services/observability/src/stackit/observability/models/update_scrape_config_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -47,7 +47,7 @@ class UpdateScrapeConfigPayload(BaseModel): """ UpdateScrapeConfigPayload - """ + """ # noqa: E501 basic_auth: Optional[CreateScrapeConfigPayloadBasicAuth] = Field(default=None, alias="basicAuth") bearer_token: Optional[StrictStr] = Field( diff --git a/services/observability/src/stackit/observability/models/update_scrape_config_payload_static_configs_inner.py b/services/observability/src/stackit/observability/models/update_scrape_config_payload_static_configs_inner.py index 682cdf16..c33363a9 100644 --- a/services/observability/src/stackit/observability/models/update_scrape_config_payload_static_configs_inner.py +++ b/services/observability/src/stackit/observability/models/update_scrape_config_payload_static_configs_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateScrapeConfigPayloadStaticConfigsInner(BaseModel): """ UpdateScrapeConfigPayloadStaticConfigsInner - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/observability/src/stackit/observability/models/web_hook.py b/services/observability/src/stackit/observability/models/web_hook.py index e40457b4..6c3705fd 100644 --- a/services/observability/src/stackit/observability/models/web_hook.py +++ b/services/observability/src/stackit/observability/models/web_hook.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class WebHook(BaseModel): """ WebHook - """ + """ # noqa: E501 ms_teams: Optional[StrictBool] = Field(default=False, alias="msTeams") send_resolved: Optional[StrictBool] = Field(default=True, alias="sendResolved") diff --git a/services/observability/src/stackit/observability/rest.py b/services/observability/src/stackit/observability/rest.py index ed5f0826..f504719e 100644 --- a/services/observability/src/stackit/observability/rest.py +++ b/services/observability/src/stackit/observability/rest.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import io import json @@ -125,7 +125,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque data=body, headers=headers, ) - elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + elif headers["Content-Type"].startswith("text/") and isinstance(body, bool): request_body = "true" if body else "false" r = self.session.request(method, url, data=request_body, headers=headers) else: